View Single Post
  #1  
Old 2nd January 2008, 21:18
UzAkLArDaN's Avatar
UzAkLArDaN UzAkLArDaN is offline
Senior Member
 
Join Date: Nov 2007
Posts: 43
Cool Template Shares v3.1 Nulled
Installing to "localhost" using XAMPP


attention

Attention

Video Tutorial






The people who cannot login into staff panel use the code below:

Copy the code go to "root/admin" folder and edit the "staffpanel.php" by using notepad.
Code:
<?php
$rootpath = "./../";
include($rootpath . 'include/bittorrent.php');
gzip();
dbconn();
loggedinorreturn();
maxsysop();

if ($usergroups['canstaffpanel'] == 'no' OR $usergroups['canstaffpanel'] != 'yes') {
        print_no_permission(true);
        exit;
}

$action = isset($_POST['action']) ? htmlspecialchars($_POST['action']) : (isset($_GET['action']) ? htmlspecialchars($_GET['action']) : '');

if (isset($_SESSION["wpincode"]) && $_SESSION["wpincode"] >= 5) {
        sql_query("UPDATE users set enabled = 'no' WHERE id = ".sqlesc($CURUSER['id']));
        stderr("Error","Access Denied! You have been exceed your max pincode attempts therefore we have been disabled your account.");
}
$sql = sql_query("SELECT * FROM pincode WHERE area = 2 LIMIT 1");
$res = mysql_fetch_array($sql);
$sechash = $res['sechash'];
$pincode = $res['pincode'];

if (isset($_SESSION['wpincode']) && $_SESSION['wpincode'] >= 5) {
        sql_query("UPDATE users set enabled = 'no' WHERE id = ".sqlesc($CURUSER['id']));
        stderr("Error", "Access Denied! You have been exceed your max pincode attempts therefore we have been disabled your account.");
        die;
}
$sql = sql_query("SELECT * FROM pincode WHERE area = 1 LIMIT 1");
$res = mysql_fetch_array($sql);
$sechash = $res['sechash'];
$pincode = $res['pincode'];

if ($action == 'checkpincode') {
        $userpincode = trim($_POST['pincode']);
        $userpincode = md5(md5($sechash).md5($userpincode));
        if ($userpincode != $pincode) {
                if (isset($_SESSION['wpincode']))
                        ++$_SESSION['wpincode'];
                else
                {
                        session_register('wpincode');
                        ++$_SESSION['wpincode'];
                }
                stderr('Error','Invalid PINCODE!');
        }
        else {
                unset($_SESSION['wpincode']);
                $_SESSION['pincode_settings'] = $userpincode;
                header('Location: settings.php?action=showmenu');
        }
}
if (empty($_SESSION['pincode_settings']) || $_SESSION['pincode_settings'] != $pincode) {
        stdhead("Website Settings by xam ".S_VERSION." - Pincode");
?>
<form method=post action=staffpanel.php>
<input type=hidden name=action value=checkpincode>
Please Enter Pincode to continue:
<input type=text name=pincode value='' id='specialboxn'>
<input type=submit name=submit value='check pincode' class=btn>
</form>
<?
        stdfoot();
        die;
}
stdhead("Staff Panel");

begin_frame("WELCOME TO ".strtoupper($SITENAME)." - STAFF PANEL");
print("
");
print("<table width=100% border=0 cellspacing=0 cellpadding=2><tr><td align=left>\n");

///////////////////// Remove And Edit Options Sys.Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sure = $_GET['sure'];
if($sure == "yes") {
$delsosadminid = (int)$_GET['delsosadminid'];
$query = "DELETE FROM sysoppanel WHERE id=" .sqlesc($delsosadminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("</table>");
stdfoot();
die();
}
$delsosadminid = (int)$_GET['delsosadminid'];
$name = trim(htmlspecialchars($_GET['mod']));
if($delsosadminid > 0) {
echo("Only Sys.Admin is able to do it 

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($name) ( Yes! / No! )");
}
end_frame();
print("</table>");
stdfoot();
die();
}

$editsosadmin = (int)$_GET['editsosadmin'];
if($editsosadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE sysoppanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<table class=main cellspacing=0 cellpadding=5 width=50%>");
echo("<tr><td><div align='center'>It is successfully changed[ Back ]</div></tr>");
echo("</table>");
}
end_frame();
print("</table>");
stdfoot();
die();
}
}
$editsosadminid = (int)$_GET['editsosadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editsosadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<form name='form1' method='get' action='" . $_SERVER['SCRIPT_NAME'] . "'>");
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<div align='center'><input type='hidden' name='editsosadmin' value='1'>At present you change an option \"$name\"</div>");
echo("
");
echo("<input type='hidden' name='id' value='$editsosadminid'<table class=main cellspacing=0 cellpadding=5 width=50%>");
echo("<tr><td>Option: </td><td align='right'><input type='text' size=50 name='mod_name' value='$name'></td></tr>");
echo("<tr><td>URL-file: </td><td align='right'><input type='text' size=50 name='mod_url' value='$url'></td></tr>");
echo("<tr><td>Info: </td><td align='right'><input type='text' size=50 name='mod_info' value='$info'></td></tr>");
echo("<tr><td></td><td><div align='right'><input type='Submit' value='Change' class=btn></div></td></tr>");
echo("</table></form>");
}
end_frame();
print("</table>");
stdfoot();
die();
}
///////////////////// Remove And Edit Options Admin \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$suree = $_GET['suree'];
if($suree == "yes") {
$deladminid = (int)$_GET['deladminid'];
$query = "DELETE FROM adminpanel WHERE id=" .sqlesc($deladminid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("</table>");
stdfoot();
die();
}
$deladminid = (int)$_GET['deladminid'];
$nameadmin = htmlspecialchars(trim($_GET['admin']));
if($deladminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($nameadmin) ( Yes! / No! )");
}
end_frame();
print("</table>");
stdfoot();
die();
}

$editadmin = (int)$_GET['editadmin'];
if($editadmin == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE adminpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<tr><td><div align='center'>It is successfully changed[ Back ]</div></tr>");
echo("</table>");
}
end_frame();
print("</table>");
stdfoot();
die();
}
}

$editadminid = (int)$_GET['editadminid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editadminid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<form name='form1' method='get' action='" . $_SERVER['SCRIPT_NAME'] . "'>");
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<div align='center'><input type='hidden' name='editadmin' value='1'>At present you change an option \"$name\"</div>");
echo("
");
echo("<input type='hidden' name='id' value='$editadminid'<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<tr><td>Option: </td><td align='right'><input type='text' size=50 name='mod_name' value='$name'></td></tr>");
echo("<tr><td>URL-file: </td><td align='right'><input type='text' size=50 name='mod_url' value='$url'></td></tr>");
echo("<tr><td>Info: </td><td align='right'><input type='text' size=50 name='mod_info' value='$info'></td></tr>");
echo("<tr><td></td><td><div align='right'><input type='Submit' value='Change' class=btn></div></td></tr>");
echo("</table></form>");
}
end_frame();
print("</table>");
stdfoot();
die();
}

///////////////////// Remove And Edit Options Moderator \\\\\\\\\\\\\\\\\\\\\\\\\\\\

$sureee = $_GET['sureee'];
if($sureee == "yes") {
$delmodid = (int)$_GET['delmodid'];
$query = "DELETE FROM modpanel WHERE id=" .sqlesc($delmodid) . " LIMIT 1";
$sql = sql_query($query);
echo("The option is successfully removed![ Back ]");
end_frame();
print("</table>");
stdfoot();
die();
}
$delmodid = (int)$_GET['delmodid'];
$namemod = htmlspecialchars(trim($_GET['mod']));
if($delmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("You and in the truth wish to remove an option? ($namemod) ( Yes! / No! )");
}
end_frame();
print("</table>");
stdfoot();
die();
}

$editmod = (int)$_GET['editmod'];
if($editmod == 1) {
$id = (int)$_GET['id'];
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$query = "UPDATE modpanel SET
name = ".sqlesc($mod_name).",
url = ".sqlesc($mod_url).",
info = ".sqlesc($mod_info)."
WHERE id=".sqlesc($id);
$sql = sql_query($query);
if($sql) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<tr><td><div align='center'>It is successfully changed[ Back ]</div></tr>");
echo("</table>");
}
end_frame();
print("</table>");
stdfoot();
die();
}
}

$editmodid = (int)$_GET['editmodid'];
$name = trim(htmlspecialchars($_GET['name']));
$url = trim(htmlspecialchars($_GET['url']));
$info = trim(htmlspecialchars($_GET['info']));
if($editmodid > 0) {
echo("Only Sys.Admin is able to do it

");
if (get_user_class() >= UC_SYSOP) {
echo("<form name='form1' method='get' action='" . $_SERVER['SCRIPT_NAME'] . "'>");
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<div align='center'><input type='hidden' name='editmod' value='1'>At present you change an option \"$name\"</div>");
echo("
");
echo("<input type='hidden' name='id' value='$editmodid'<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<tr><td>Option: </td><td align='right'><input type='text' size=50 name='mod_name' value='$name'></td></tr>");
echo("<tr><td>URL-file: </td><td align='right'><input type='text' size=50 name='mod_url' value='$url'></td></tr>");
echo("<tr><td>Info: </td><td align='right'><input type='text' size=50 name='mod_info' value='$info'></td></tr>");
echo("<tr><td></td><td><div align='right'><input type='Submit' value='Change' class=btn></div></td></tr>");
echo("</table></form>");
}
end_frame();
print("</table>");
stdfoot();
die();
}


///////////////////// Add new options \\\\\\\\\\\\\\\\\\\\\\\\\\\\
$add = $_GET['add'];
if($add == 'true') {
$mod_name = trim(htmlspecialchars($_GET['mod_name']));
$mod_url = trim(htmlspecialchars($_GET['mod_url']));
$mod_info = trim(htmlspecialchars($_GET['mod_info']));
$cppanel = trim(htmlspecialchars($_GET['cppanel']));
unset($message);
if ($mod_name == '' OR $mod_url == '') {
        $message = 'Don\'t leave any fields blank';
}else{
$query = "INSERT INTO $cppanel SET name = ".sqlesc($mod_name).", url = ".sqlesc($mod_url).", info = ".sqlesc($mod_info);
$sql = sql_query($query);
if($sql) {
        $message = 'New option has been added.';
} else {
        $message = 'Database error.';
}
}
header("Location:  " . $_SERVER['SCRIPT_NAME'] . "?message=".$message);
}
if (get_user_class() >= UC_SYSOP) {
        if ($_GET['message'])
                $msg = "<font color=red>[b]".htmlspecialchars(trim($_GET['message']));
        else
                $msg = "<font color=black>ADD NEW OPTION";
echo $msg."</font>";
print("
");
echo("<form name='form1' method='get' action='" . $_SERVER['SCRIPT_NAME'] . "'>");
echo("<table class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<tr><td>Name: </td><td align='left'><input type='text' size=50 name='mod_name' id=specialboxn></td></tr>");
echo("<tr><td>URL-file: </td><td align='left'><input type='text' size=50 name='mod_url' id=specialboxn></td></tr>");
echo("<tr><td>Info: </td><td align='left'><input type='text' size=50 name='mod_info' id=specialboxn></td></tr>");
echo("<tr><td>Option for: </td><td align='left'><select name='cppanel'><option value='sysoppanel'>SYSOP</option><option value='adminpanel'>ADMINISTRATOR</option><option value='modpanel'>MODERATOR</option></select><input type='hidden' name='add' value='true'> <input value='Add' type='Submit' class=btn></td></tr>");
echo("</table>");
}
echo("
");
echo("</form>");

///////////////////// Sys.Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_SYSOP) {
echo("</center><h2>FOR SYSOP'S ONLY</h2>");
print("<center>");
print("<table border=1 class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<td class=colhead>NAME/URL</td><td class=colhead>INFO</td><td class=colhead align=center>EDIT</td><td class=colhead align=center>DELETE</td>");
$query = "SELECT * FROM sysoppanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);

$info = $row['info'];

echo("<tr><td><a href=$url>$name</a></td> <td>$info</td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."multipage.gif[/img]</div></td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."warned2.gif[/img]</div></td></center>");
}
print("</table>");
print("
");
print("
");
}
///////////////////// Admin Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
if (get_user_class() >= UC_ADMINISTRATOR) {
echo("</center><h2>FOR ADMINISTRATOR'S ONLY</h2>");
print("<center>");
print("<table border=1 class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<td class=colhead>NAME/URL</td><td class=colhead>INFO</td><td class=colhead align=center>EDIT</td><td class=colhead align=center>DELETE</td>");
$query = "SELECT * FROM adminpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("<tr><td><a href=$url>$name</a></td> <td>$info</td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."multipage.gif[/img]</div></td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."warned2.gif[/img]</div></td></center>");
}
print("</table>");
print("
");
print("
");
}
///////////////////// Moderator Only \\\\\\\\\\\\\\\\\\\\\\\\\\\\
echo("</center><h2>FOR MODERATOR'S ONLY</h2>");
print("<center>");
print("<table border=1 class=main cellspacing=0 cellpadding=5 width=100%>");
echo("<td class=colhead>NAME/URL</td><td class=colhead>INFO</td><td class=colhead align=center>EDIT</td><td class=colhead align=center>DELETE</td>");
$query = "SELECT * FROM modpanel WHERE 1=1 ORDER by NAME";
$sql = sql_query($query);
while ($row = mysql_fetch_array($sql)) {
$id = $row['id'];
$name = $row['name'];
$url = str_replace("admin/", "", $row["url"]);
$info = $row['info'];

echo("<tr><td><a href=$url>$name</a></td> <td>$info</td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."multipage.gif[/img]</div></td> <td><div align='center'>[img]$BASEURL/".$pic_base_url."warned2.gif[/img]</div></td></tr></center>");
}
print("</table>");
end_frame();
end_frame();
stdfoot();
?>
Other version of TS SE: v2.5 v3.3 v3.4 v3.5 v4.0 v4.3


Note: These are not nulled!
Attached Files
File Type: rar TS.SE.v3.1.rar (3.52 MB, 1450 views)
File Type: rar TSSpecialEditionByXam.rar (29.18 MB, 985 views)
File Type: rar TS.SE.Tutorial.rar (9.64 MB, 566 views)
Reply With Quote
The Following 5 Users Say Thank You to UzAkLArDaN For This Useful Post:
dan_korn (5th November 2008), Fynnon (21st January 2010), Subzero (7th January 2009), urmazika (11th July 2015), x517530 (30th October 2008)