also best way to have ur tools more secure is to hav a target error msg so that mod cant ban admin or admin cant ban owner etc... jus use the line i put in boot tool 4 rest ya tools trust me it works fine
)
Lavascript Boot Tool
Collapse
X
-
linkrx7 -
Guest
What is that code for?this line goes into modcp under $action=="user"
echo "<a href=\"admproc.php?action=boot&sid=$sid&wh o=$who\">Boot</a>
";
this next code goes into admproc
if($action=="boot")
{
$who = $_GET["who"];
$user = getnick_uid($who);
echo "<card id=\"main\" title=\"Admin Tools\">";
echo "<p align=\"center\">";
$uid = getuid_sid($sid);
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
$trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));
if($trgtperm>$perm){
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
Error!!!
Permission Denied...
";
echo "
U Cannot Boot $user
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
}else{
echo "
";
$res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='boot', details='".getnick_uid(getuid_sid($sid))." booted $user', actdt='".time()."'");
echo "<img src=\"../images/ok.gif\" alt=\"O\"/>$user Booted successfully";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error booting $user";
}
echo "
<a href=\"index.php?action=viewuser&who=$who& sid=$sid\">$user's Profile</a>
";
echo "<a href=\"admincp.php?action=admincp&sid=$sid\">< img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
}
echo "</card>";
}
this will allow a boot tool where mods cannot boot admin but admin can boot mods and same with owner if u hav that level might want to add that part to rest ya tools i redid all mine this way its much more secure[/b]
Comment
-
Just a autoinstal database for Lavalair Download Autoinstall Just need to change info in set.ptp for database user and pass and ckick install..
the default login for Admin will be User:admin and Pass:admin


Comment
-
Guest



Comment