RbCafe

Explode html in themes.php

Posted in Codex by RbCafe on the November 17th, 2005

Hello

Type this code in theme.php :

function themesidebox($title, $content) {
$tmpl_file = “themes/yourthemes/blocks.html”;
$thefile = implode(”", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = “\$r_file=\”".$thefile.”\”;”;
eval($thefile);
print $r_file;
}

Then create a html file called blocks.html in your theme folder… The possibilities of modifications are easier…

See you 8-)

Avoid Attacks with PHP-Nuke

Posted in Codex by RbCafe on the November 17th, 2005

With Php Nuke you can avoid attacks by using this code….:

In the mainfile.php :

define(’typewhatyouwant’, true);

Then copy this code on each phpnuke file at the top :

if(!defined(’typewhatyouwant’))
{
die();
}

before die(); you can put an echo “”; redirecting to the main page

See you 8-)


Page 1 of 512345»