ayhan06
25-01-2008, 3:53
Hide Hack 1.2.12 camper
newreply.php open
trouver
dessous ajouter
search.php open
trouver
dessous ajouter
showthread.php open
trouver
sur ajouter
inc/class_parser.php open
trouver
dessous ajouter
inc/functions.php open
le (la) plus postérieur/e } après
admim control panel / templates /themes/foter open annexer
images
modèle
The respect ayhan06 > Ayhan Bayraktar
newreply.php open
trouver
Code PHP :
$username = htmlspecialchars_uni($mybb->input['username']);
dessous ajouter
Code PHP :
// Hide Hack v1.2.12 by ayhan06
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$post[message] = preg_replace($searcharray, $replacearray, $post[message]);
// Hide Hack End
search.php open
trouver
Code PHP :
if(!$post['subject'])
{
$post['subject'] = $post['message'];
}
if(my_strlen($post['subject']) > 50)
{
$post['subject'] = my_substr($post['subject'], 0, 50)."...";
}
else
{
$post['subject'] = $post['subject'];
}
dessous ajouter
Code PHP :
// Hide Hack v1.2.12 by ayhan06
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" <img src=\"images/gizli1.gif\"/> ";
$post['message'] = preg_replace($searcharray, $replacearray, $post['message']);
// Hide Hack End
showthread.php open
trouver
Code PHP :
// Lets get the pids of the posts on this page.
sur ajouter
Code PHP :
// Hide Hack v1.2.12 by ayhan06
$result = $db->query("SELECT message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='{$mybb->user['uid']}'");
$selfposted = $db->num_rows($result);
// Hide Hack End
inc/class_parser.php open
trouver
Code PHP :
if($options['nl2br'] != "no")
{
$message = nl2br($message);
Code PHP :
// Hide Hack v1.2.12 by ayhan06
$message = hidetags($message);
// Hide Hack End
inc/functions.php open
le (la) plus postérieur/e } après
Code PHP :
function hidetags($message)
{
global $db, $n, $mybb, $selfposted;
// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybb->user[uid] != "0" && $selfposted > "0") || $mybb->usergroup['cancp'] == "yes") {
$search="/\[hide](.*)\[\/hide\]/siU";
$replace="<img src=\"images/gizli1.gif\"><br /> \\1";
$message = preg_replace($search, $replace, $message);
$message = str_replace("\'", "'", $message);
} else {
// sonst nix anzeigen
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="<img src=\"images/gizli.gif\">";
$message = preg_replace($searcharray, $replacearray, $message);
$message = str_replace("\'", "'", $message);
}
return $message;
}
admim control panel / templates /themes/foter open annexer
Code PHP :
<a href="http://www.bayrakforum.com/">Hide by ayhan06 </a>
images
modèle
Code :
www.mybb.fr/images/gizli1.gif
www.mybb.fr/images/gizli.gif
The respect ayhan06 > Ayhan Bayraktar