Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

admin.cp



if ($action == "shoutannouncecreate")

{

    if ($_SERVER['REQUEST_METHOD'] == 'POST')

    {

        if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

            show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shoutannouncecreate'>return</a>?", 1);

        SQL_Query_exec("INSERT INTO `shoutannounce` (`title`, `descr`, `added`, `time`) VALUES ('" . $_POST['title'] . "', '" . $_POST['descr'] . "', '" . get_date_time() . "', '" . $_POST['time'] . "')");

        show_error_msg("Success", "Announcement Created. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

    }



    stdhead("Create New Announcement");

    navmenu();



    begin_frame("Create New Announcement");

    echo("<form name='shoutannouncecreate' method='post' action='admincp.php?action=shoutannouncecreate'>");

    echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

    echo("<tr>");

    echo("<th><strong>Title:</strong></td>");

    echo("<th><input type='text' name='title' size='30' /></td>");

    echo("</tr>");

    echo("<tr>");

    echo("<th><strong>Time:</strong></td>");

    echo("<th><select name='time'><option value='1800'>30 Mins</option><option value='3600'>1 Hour</option></select></td>");

    echo("</tr>");

    echo("</table>");

    require_once("backend/bbcode.php");

    echo(textbbcode("shoutannouncecreate","descr","$descr"));

    echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

    echo("</form>");



    end_frame();

    stdfoot();

}

if ($action == 'shouteditannounce')

{

    $id = isset($_GET['id']) ? $_GET['id'] : '';



    if (!is_valid_id($id))

         show_error_msg("Error", "Thats an Invalid ID O_o", 1);



    $sql = SQL_Query_exec("SELECT * FROM `shoutannounce` WHERE `id` = $id");

    $row = mysql_fetch_array($sql);



    if (!$row)

         show_error_msg("Error", "Invalid ID.", 1);



    if ($_SERVER["REQUEST_METHOD"] == "POST")

    {

        if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

            show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shouteditannounce&amp;id=$id'>return</a>?", 1);

        SQL_Query_exec("UPDATE `shoutannounce` SET `title` = '" . $_POST['title'] . "', `descr` = '" . $_POST['descr'] . "', `time` = '" . $_POST['time'] . "', `active` = '" . $_POST['active'] . "' WHERE `id` = $id");      

        show_error_msg("Success", "Announcement edited. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

   }



    stdhead("Edit Announcement");

    navmenu();



    begin_frame("Edit Announcement");



    echo("<form name='shouteditcreate' method='post' action='admincp.php?action=shouteditannounce&amp;id=$id'>");

    echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

    echo("<tr>");

    echo("<th><strong>Title:</strong></td>");

    echo("<th><input type='text' name='title' size='30' value='" . htmlspecialchars($row['title']) . "' /></td>");

    echo("</tr>");

    echo("<tr>");

    echo("<th><strong>Time:</strong></td>");

    echo("<th><select name='time'><option value='1800' " . ($row['time'] == '1800' ? 'selected="selected"' : '' ). ">30 Mins</option><option value='3600' " . ($row['time'] == '3600' ? 'selected="selected"' : ''). ">1 Hour</option></select></td>");

    echo("</tr>");

    echo("<tr>");

    echo("<th><strong>Enabled:</strong></td>");

    echo("<th><select name='active'><option value='yes' " . ($row['active'] == 'yes' ? 'selected="selected"' : '' ). ">Yes</option><option value='no' " . ($row['active'] == 'no' ? 'selected="selected"' : ''). ">No</option></select></td>");

    echo("</tr>");

    echo("</table>");

    require_once("backend/bbcode.php");

    echo(textbbcode("shouteditcreate","descr", $row['descr']));

    echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

    echo("</form>");

    end_frame();

    stdfoot();

}



if ($action == "shoutannounce")

{

if (@count($_POST['id'])) {

 

$ids = implode(',', array_map('intval', $_POST['id']));

 SQL_Query_exec("DELETE FROM `shoutannounce` WHERE `id` IN ($ids)");

}

 

show_error_msg("Success", "Announcement Removed.", 1);

}

 

stdhead("Shoutbox Announce");

navmenu();

 

begin_frame("Shoutbox Announce");

 

echo("<center>[<a href='admincp.php?action=shoutannouncecreate'>Create Announcement</a>]</center><br />");

 

$sql = SQL_Query_exec("SELECT * FROM `shoutannounce` ORDER BY `id` DESC");

 

if (mysql_num_rows($sql) > 0)

{

echo("<form method='post' action='admincp.php?action=shoutannounce'>");

echo("<table border='0' cellpadding='5' cellspacing='3' align='center' width='100%' class='table_table'>");

echo("<tr>");

echo("<td class='table_head'><strong>Title</strong></td>");

echo("<td class='table_head'><strong>Message</strong></td>");

echo("<td class='table_head'><strong>Added</strong></td>");

echo("<td class='table_head'><strong>Run at</strong></td>");

echo("<td class='table_head'><strong>Last Run</strong></td>");

echo("<td class='table_head'><strong>Enabled</strong></td>");

echo("<td class='table_head'><strong>Delete</strong></td>");

echo("</tr>");

 

while ($row = mysql_fetch_array($sql))

{

echo("<tr>");

echo("<td class='table_col1' align='center'><a href='admincp.php?action=shouteditannounce&id=" . $row['id'] . "'>" . htmlspecialchars($row['title']) . "</a></td>");

echo("<td class='table_col2' align='center'>" . format_comment($row['descr']) . "</td>");

echo("<td class='table_col1' align='center'>" . utc_to_tz($row['added']) . "</td>");

echo("<td class='table_col1' align='center'>" . $row['time'] . "</td>");

echo("<td class='table_col2' align='center'>" . utc_to_tz(date('Y-m-d H:i:s', $row['last_time'])) . "</td>");

echo("<td class='table_col1' align='center'>" . htmlspecialchars($row['active']) . "</td>");

echo("<td class='table_col2' align='center'><input type='checkbox' name='id[]' value='".$row['id']."'/></td>");

echo("</tr>");

}

 

echo("</table>");

echo("<div align='right'><input type='submit' value='Remove'/></div>");

echo("</form>");

}

else {

echo("<center>No Current announcements.</center>");

}

 

end_frame();

stdfoot();

}

if ($action == "shoutannouncecreate")

{

if ($_SERVER['REQUEST_METHOD'] == 'POST')

{

if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shoutannouncecreate'>return</a>?", 1);

 

SQL_Query_exec("INSERT INTO `shoutannounce` (`title`, `descr`, `added`, `time`) VALUES (" . sqlesc($_POST['title']) . ", " . sqlesc($_POST['descr']) . ", " . sqlesc(get_date_time()) . ", " . sqlesc($_POST['time']) . ")");

 

show_error_msg("Success", "Announcement Created. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

}

 

stdhead("Create New Announcement");

navmenu();

 

begin_frame("Create New Announcement");

 

echo("<form name='shoutannouncecreate' method='post' action='admincp.php?action=shoutannouncecreate'>");

echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

echo("<tr>");

echo("<th><strong>Title:</strong></td>");

echo("<th><input type='text' name='title' size='30' /></td>");

echo("</tr>");

echo("<tr>");

echo("<th><strong>Time:</strong></td>");

echo("<th><select name='time'><option value='1800'>30 Mins</option><option value='3600'>1 Hour</option></select></td>");

echo("</tr>");

echo("</table>");

 

require_once("backend/bbcode.php");

echo(textbbcode("shoutannouncecreate","descr","$descr"));

echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

echo("</form>");

 

end_frame();

stdfoot();

}

if ($action == 'shouteditannounce')

 {

$id = isset($_GET['id']) ? $_GET['id'] : '';

 

if (!is_valid_id($id))

show_error_msg("Error", "Thats an Invalid ID O_o", 1);

 

$sql = SQL_Query_exec("SELECT * FROM `shoutannounce` WHERE `id` = $id");

$row = mysql_fetch_array($sql);

 

if (!$row)

show_error_msg("Error", "Invalid ID.", 1);

 

if ($_SERVER["REQUEST_METHOD"] == "POST")

{

if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shouteditannounce&id=$id'>return</a>?", 1);

SQL_Query_exec("UPDATE `shoutannounce` SET `title` = " . sqlesc($_POST['title']) . ", `descr` = " . sqlesc($_POST['descr']) . ", `time` = " . sqlesc($_POST['time']) . ", `active` = " . sqlesc($_POST['active']) . " WHERE `id` = $id");

show_error_msg("Success", "Announcement edited. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

}

 

stdhead("Edit Announcement");

navmenu();

 

begin_frame("Edit Announcement");

 

echo("<form name='shouteditcreate' method='post' action='admincp.php?action=shouteditannounce&id=$id'>");

echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

echo("<tr>");

echo("<th><strong>Title:</strong></td>");

echo("<th><input type='text' name='title' size='30' value='" . htmlspecialchars($row['title']) . "' /></td>");

echo("</tr>");

echo("<tr>");

echo("<th><strong>Time:</strong></td>");

echo("<th><select name='time'><option value='1800' " . ($row['time'] == '1800' ? 'selected="selected"' : '' ). ">30 Mins</option><option value='3600' " . ($row['time'] == '3600' ? 'selected="selected"' : ''). ">1 Hour</option></select></td>");

echo("</tr>");

echo("<tr>");

echo("<th><strong>Enabled:</strong></td>");

echo("<th><select name='active'><option value='yes' " . ($row['active'] == 'yes' ? 'selected="selected"' : '' ). ">Yes</option><option value='no' " . ($row['active'] == 'no' ? 'selected="selected"' : ''). ">No</option></select></td>");

echo("</tr>");

echo("</table>");

 

require_once("backend/bbcode.php");

echo(textbbcode("shouteditcreate","descr", $row['descr']));

echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

echo("</form>");

 

end_frame();

stdfoot();

}

yes i agree with you ill do it


}

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;

}else{

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';

}



add below



if ($CURUSER) {

//check for new pm's

$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");

$arr = mysql_fetch_row($res);

$unreadmail = $arr[0];

if ($unreadmail)

print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}

New topsite torrent — 2012-10-11 23:04:47 in General Chat
crap trackers
backend/smilies

NOT  been tested let me know if working



////////////////// badwords //////////////////

$badwords = array(

"bastard" => "<img src=images/censored.png>",

"dickhead" => "<img src=images/censored.png>",

"cunt" => "<img src=images/censored.png>",

"pissoff" => "<img src=images/censored.png>",

"retard" => "<img src=images/censored.png>",

"wanker" => "<img src=images/censored.png>",

"fuck" => "<img src=images/censored.png>",

"weed" => "<img src=images/censored.png>",

"idiot" => "<img src=images/censored.png>",

"asshole" => "<img src=images/censored.png>",

"bollocks" => "<img src=images/censored.png>",

"bullshit" => "<img src=images/censored.png>",

"cock" => "<img src=images/censored.png>",

"Breast" => "<img src=images/censored.png>",

"dyke" => "<img src=images/censored.png>",

"assface" => "<img src=images/censored.png>",

"blowjob" => "<img src=images/censored.png>",

"beaner" => "<img src=images/censored.png>",

"bollox" => "<img src=images/censored.png>",

"cockjockey" => "<img src=images/censored.png>",

"dumbfuck" => "<img src=images/censored.png>",

"bitch" => "<img src=images/censored.png>",

"bitchtits" => "<img src=images/censored.png>",

"pirate" => "<img src=images/censored.png>",

"buttfucker" => "<img src=images/censored.png>",

"bitchass" => "<img src=images/censored.png>",

"cockmonkey" => "<img src=images/censored.png>",



//////////// badwords ////////////

);




reset($badwords);

while (list($code, $url) = each($badwords))

$s = str_replace($code, "$url", $s);




function format_comment($text, $strip_html = true)

{

global $smilies, $privatesmilies, $badwords;

$s = $text;


Premium mods — 2012-10-07 20:42:13 in General Chat
no thax ill do them for free pm me
coder for hire — 2012-10-06 09:59:33 in General Chat
lol
Mood mod — 2012-10-05 21:42:08 in v2 Only Mods Complete
[url="http://devscorner.xyz/index.php?/topic/17143-addon-members-moods/"]http://devscorner.xyz/index.php?/topic/17143-addon-members-moods/[/url]

re edit to your needs
@ your block------->login_block  at the bottom ending tag



?>



<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a> <br />

<?php if ($CURUSER["control_panel"]=="yes") {print("<a href="admincp.php">".T_("STAFFCP")."</a>");}?>

<? if($CURUSER["level"]=="Super Moderator") {print("<a href=modocp.php>S/Moderator Tools</a>");}?>

<? if($CURUSER["level"]=="Moderator") {print("<a href=modcp.php>Moderator Tools</a>");}?>

</center>

<?php

end_block();

}

?>








@languages add to the languages ------->english

SEARCH languages------->english

$LANG["ADMIN_CP"] = "Admin CP";







$LANG["ADMIN_CP"] = "Admin CP";



$LANG["MOD_CP"] = "Mod CP";

$LANG["MODO_CP"] = "Modo CP";

coder for hire — 2012-10-05 17:32:16 in General Chat
ok not a prob to do for a start im  en not french and im not going to use gooles translate all the time sorry
coder for hire — 2012-10-05 15:55:47 in General Chat
lol
coder for hire — 2012-10-05 10:14:34 in General Chat
lol
coder for hire — 2012-10-04 20:46:54 in General Chat
coder for hire

Pm me for details
ok very nice of you add to the 208 post

[url="http://www.torrenttrader.org/user/69200-mostvotedplaya/"]mostvotedplaya[/url]
not tested let me know if working or not


$query = SQL_Query_exec("SELECT `id`, `descr`, `time`, `last_time` FROM `shoutannounce` WHERE `active` = 'yes'");

while ($row = mysql_fetch_array($query)) {



if ($row['last_time'] + $row['time'] > gmtime())

continue;



SQL_Query_exec("INSERT INTO `shoutbox` (`user`, `message`, `date`, `userid`) VALUES ('System', " . sqlesc($row['descr']) . ", '" . get_date_time() . "', '0')");

SQL_Query_exec("UPDATE `shoutannounce` SET `last_time` = '" . gmtime() . "' WHERE `id` = " . $row['id'] . "");

}

208



if ($action == "shoutannounce")

{

if (@count($_POST['id'])) {



$ids = implode(',', array_map('intval', $_POST['id']));

 SQL_Query_exec("DELETE FROM `shoutannounce` WHERE `id` IN ($ids)");



}



show_error_msg("Success", "Announcement Removed.", 1);

}



stdhead("Shoutbox Announce");

navmenu();



begin_frame("Shoutbox Announce");



echo("<center>[<a href='admincp.php?action=shoutannouncecreate'>Create Announcement</a>]</center><br />");



$sql = SQL_Query_exec("SELECT * FROM `shoutannounce` ORDER BY `id` DESC");



if (mysql_num_rows($sql) > 0)

{

echo("<form method='post' action='admincp.php?action=shoutannounce'>");

echo("<table border='0' cellpadding='5' cellspacing='3' align='center' width='100%' class='ttable_headinner'>");

echo("<tr>");

echo("<td class='ttable_head'><strong>Title</strong></td>");

echo("<td class='ttable_head'><strong>Message</strong></td>");

echo("<td class='ttable_head'><strong>Added</strong></td>");

echo("<td class='ttable_head'><strong>Run at</strong></td>");

echo("<td class='ttable_head'><strong>Last Run</strong></td>");

echo("<td class='ttable_head'><strong>Enabled</strong></td>");

echo("<td class='ttable_head'><strong>Delete</strong></td>");

echo("</tr>");



while ($row = mysql_fetch_array($sql))

{

echo("<tr>");

echo("<td class='ttable_col1' align='center'><a href='admincp.php?action=shouteditannounce&id=" . $row['id'] . "'>" . htmlspecialchars($row['title']) . "</a></td>");

echo("<td class='ttable_col2' align='center'>" . format_comment($row['descr']) . "</td>");

echo("<td class='ttable_col1' align='center'>" . utc_to_tz($row['added']) . "</td>");

echo("<td class='ttable_col1' align='center'>" . $row['time'] . "</td>");

echo("<td class='ttable_col2' align='center'>" . utc_to_tz(date('Y-m-d H:i:s', $row['last_time'])) . "</td>");

echo("<td class='ttable_col1' align='center'>" . htmlspecialchars($row['active']) . "</td>");

echo("<td class='ttable_col2' align='center'><input type='checkbox' name='id[]' value='".$row['id']."'/></td>");

echo("</tr>");

}



echo("</table>");

echo("<div align='right'><input type='submit' value='Remove'/></div>");

echo("</form>");

}

else {

echo("<center>No Current announcements.</center>");

}



end_frame();

stdfoot();

}

if ($action == "shoutannouncecreate")

{

if ($_SERVER['REQUEST_METHOD'] == 'POST')

{

if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shoutannouncecreate'>return</a>?", 1);



SQL_Query_exec("INSERT INTO `shoutannounce` (`title`, `descr`, `added`, `time`) VALUES (" . sqlesc($_POST['title']) . ", " . sqlesc($_POST['descr']) . ", " . sqlesc(get_date_time()) . ", " . sqlesc($_POST['time']) . ")");



show_error_msg("Success", "Announcement Created. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

}



stdhead("Create New Announcement");

navmenu();



begin_frame("Create New Announcement");



echo("<form name='shoutannouncecreate' method='post' action='admincp.php?action=shoutannouncecreate'>");

echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

echo("<tr>");

echo("<td><strong>Title:</strong></td>");

echo("<td><input type='text' name='title' size='30' /></td>");

echo("</tr>");

echo("<tr>");

echo("<td><strong>Time:</strong></td>");

echo("<td><select name='time'><option value='1800'>30 Mins</option><option value='3600'>1 Hour</option></select></td>");

echo("</tr>");

echo("</table>");



require_once("backend/bbcode.php");

echo(textbbcode("shoutannouncecreate","descr","$descr"));

echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

echo("</form>");



end_frame();

stdfoot();

}

if ($action == 'shouteditannounce')

{

$id = isset($_GET['id']) ? $_GET['id'] : '';



if (!is_valid_id($id))

show_error_msg("Error", "Thats an Invalid ID O_o", 1);



$sql = SQL_Query_exec("SELECT * FROM `shoutannounce` WHERE `id` = $id");

$row = mysql_fetch_array($sql);



if (!$row)

show_error_msg("Error", "Invalid ID.", 1);



if ($_SERVER["REQUEST_METHOD"] == "POST")

{

if (empty($_POST['title']) || empty($_POST['descr']) || !is_valid_id($_POST['time']))

show_error_msg("Error", "Form not completed. <a href='admincp.php?action=shouteditannounce&id=$id'>return</a>?", 1);

SQL_Query_exec("UPDATE `shoutannounce` SET `title` = " . sqlesc($_POST['title']) . ", `descr` = " . sqlesc($_POST['descr']) . ", `time` = " . sqlesc($_POST['time']) . ", `active` = " . sqlesc($_POST['active']) . " WHERE `id` = $id");

show_error_msg("Success", "Announcement edited. <a href='admincp.php?action=shoutannounce'>return</a>?", 1);

}



stdhead("Edit Announcement");

navmenu();



begin_frame("Edit Announcement");



echo("<form name='shouteditcreate' method='post' action='admincp.php?action=shouteditannounce&id=$id'>");

echo("<table border='0' cellpadding='5' cellspacing='0' align='center'>");

echo("<tr>");

echo("<td><strong>Title:</strong></td>");

echo("<td><input type='text' name='title' size='30' value='" . htmlspecialchars($row['title']) . "' /></td>");

echo("</tr>");

echo("<tr>");

echo("<td><strong>Time:</strong></td>");

echo("<td><select name='time'><option value='1800' " . ($row['time'] == '1800' ? 'selected="selected"' : '' ). ">30 Mins</option><option value='3600' " . ($row['time'] == '3600' ? 'selected="selected"' : ''). ">1 Hour</option></select></td>");

echo("</tr>");

echo("<tr>");

echo("<td><strong>Enabled:</strong></td>");

echo("<td><select name='active'><option value='yes' " . ($row['active'] == 'yes' ? 'selected="selected"' : '' ). ">Yes</option><option value='no' " . ($row['active'] == 'no' ? 'selected="selected"' : ''). ">No</option></select></td>");

echo("</tr>");

echo("</table>");



require_once("backend/bbcode.php");

echo(textbbcode("shouteditcreate","descr", $row['descr']));

echo("<input type='reset' value='Reset' /><input type='submit' value='Submit' />");

echo("</form>");



end_frame();

stdfoot();

}



SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', " . sqlesc($row['descr']) . ")");

moving on from tt208 — 2012-09-30 00:05:57 in General Chat
very true and keep the mods that are pay per dls and keep to my sites so no one as them only on pay per mod
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728