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

share code shoutbox whit hack reply

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7095"]shoutbox.php[/url]
Sql


ALTER TABLE `groups` ADD `Color` varchar(7) NOT NULL default '#FF0000';



and remplace all this code in admincp


/////////////////////// GROUPS MANAGEMENT ///////////////////////
if ($action=="groups" && $do=="view") {
   stdhead("Groups Management");
   navmenu();

begin_frame(T_("USER_GROUP"));
   
   print("<center><a href=admincp.php?action=groups&do=add>".T_("ADD_NEW_GROUP")."</a></center>n");
   print("<br><br>n<table width=100% align=center border=1 class=table_table>n");
   print("<tr>n");
   print("<td class=table_head>".T_("NAME")."</td>n");
   print("<td class=table_head>Torrents<br>".T_("VIEW_EDIT_DEL")."</td>n");
   print("<td class=table_head>".T_("MEMBERS")."<br>".T_("VIEW_EDIT_DEL")."</td>n");
   print("<td class=table_head>".T_("NEWS")."<br>".T_("VIEW_EDIT_DEL")."</td>n");
   print("<td class=table_head>Forum<br>".T_("VIEW_EDIT_DEL")."</td>n");
   print("<td class=table_head>Upload</td>n");
   print("<td class=table_head>Download</td>n");
   print("<td class=table_head>". T_("VIEW_CP")."</td>n");
   print("<td class=table_head>".T_("DELETE")."</td>n");
   print("</tr>n");

   $getlevel=SQL_Query_exec("SELECT * from groups ORDER BY group_id");
   
while ($level=mysql_fetch_array($getlevel)) {
   print("<tr>n");
   print("<td class=table_col1><a href=admincp.php?action=groups&do=edit&group_id=".$level["group_id"]."><font color="$level[color]">".$level["level"]."</font><a></td>n");
   print("<td class=table_col2>".$level["view_torrents"]."/".$level["edit_torrents"]."/".$level["delete_torrents"]."</td>n");
   print("<td class=table_col1>".$level["view_users"]."/".$level["edit_users"]."/".$level["delete_users"]."</td>n");
   print("<td class=table_col2>".$level["view_news"]."/".$level["edit_news"]."/".$level["delete_news"]."</td>n");
   print("<td class=table_col1>".$level["view_forum"]."/".$level["edit_forum"]."/".$level["delete_forum"]."</td>n");
   print("<td class=table_col2>".$level["can_upload"]."</td>n");
   print("<td class=table_col1>".$level["can_download"]."</td>n");
   print("<td class=table_col2>".$level["control_panel"]."</td>n");
   print("<td class=table_col1><a href=admincp.php?action=groups&do=delete&group_id=".$level["group_id"].">". T_("DEL")."<a></td>n");
   print("</tr>n");
}
   print("</table><br><br>");
   
end_frame();
stdfoot();
}

if ($action=="groups" && $do=="edit") {
   $group_id=intval($_GET["group_id"]);
   $rlevel=SQL_Query_exec("SELECT * FROM groups WHERE group_id=$group_id");
   
if (!$rlevel)
   show_error_msg(T_("ERROR"),T_("NO_ID_GROUP"),1);
   
   $level=mysql_fetch_array($rlevel);

   stdhead("Groups Management");
   navmenu();


begin_frame(T_("EDIT_GROUP"));
?>
   <form action="admincp.php?action=groups&do=update&group_id=<?php echo $level["group_id"]; ?>" name="level" method="post">
   <table width="100%" align="center">
   <tr><td><?php echo T_("NAME")?>:</td><td><input type="text" name="gname" value="<?php echo $level["level"]; ?>" size="40" /></td></tr>
   <tr><td><?php echo T_("COLOR")?>:</td><td><input type="text" name="gcolor" value="<?php echo $level["Color"]; ?>" size="10" /></td></tr>
   <tr><td><?php echo T_("VIEW_TORRENT")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="vtorrent" value="yes" <?php if ($level["view_torrents"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="vtorrent" value="no" <?php if ($level["view_torrents"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("EDIT_TORRENT")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="etorrent" value="yes" <?php if ($level["edit_torrents"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="etorrent" value="no" <?php if ($level["edit_torrents"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("DELETE_TORRENT")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="dtorrent" value="yes" <?php if ($level["delete_torrents"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="dtorrent" value="no" <?php if ($level["delete_torrents"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("VIEW_USERS")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="vuser" value="yes" <?php if ($level["view_users"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="vuser" value="no" <?php if ($level["view_users"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("EDIT_USERS")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="euser" value="yes" <?php if ($level["edit_users"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="euser" value="no" <?php if ($level["edit_users"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("DELETE_USERS")?>:</td><td>  <?php echo T_("YES"); ?> <input type="radio" name="duser" value="yes" <?php if ($level["delete_users"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="duser" value="no" <?php if ($level["delete_users"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("VIEW_NEWS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="vnews" value="yes" <?php if ($level["view_news"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="vnews" value="no" <?php if ($level["view_news"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("EDIT_NEWS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="enews" value="yes" <?php if ($level["edit_news"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="enews" value="no" <?php if ($level["edit_news"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("DELETE_NEWS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="dnews" value="yes" <?php if ($level["delete_news"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="dnews" value="no" <?php if ($level["delete_news"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("VIEW_FORUMS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="vforum" value="yes" <?php if ($level["view_forum"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="vforum" value="no" <?php if ($level["view_forum"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("EDIT_FORUMS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="eforum" value="yes" <?php if ($level["edit_forum"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="eforum" value="no" <?php if ($level["edit_forum"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("DELETE_FORUMS")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="dforum" value="yes" <?php if ($level["delete_forum"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="dforum" value="no" <?php if ($level["delete_forum"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("CAN_UPLOAD")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="upload" value="yes" <?php if ($level["can_upload"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="upload" value="no" <?php if ($level["can_upload"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("CAN_DONWLOAD")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="down" value="yes" <?php if ($level["can_download"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="down" value="no" <?php if ($level["can_download"]=="no") echo "checked" ?> /></td></tr>
   <tr><td><?php echo T_("CAN_VIEW_CP")?>:</td><td> <?php echo T_("YES"); ?> <input type="radio" name="admincp" value="yes" <?php if ($level["control_panel"]=="yes") echo "checked" ?> />&nbsp;&nbsp; <?php echo T_("NO"); ?> <input type="radio" name="admincp" value="no" <?php if ($level["control_panel"]=="no") echo "checked" ?> /></td></tr>

<?php
   print("n<tr><td align=center class=header><input type=submit name=write value="".T_("CONFIRM")."" /></td></tr>");
   print("</table></form><br><br>");
   print("n<td align=center ><a href="admincp.php?action=groups&do=view"><input type=submit value="".T_("BACK")."" /></a></td>");
   
end_frame();
stdfoot();
}

if ($action=="groups" && $do=="update") {
   stdhead("Groups Management");
   navmenu();

begin_frame(T_("UPDATE"));

   $update=array();
   $update[]="level='".mysql_real_escape_string($_POST["gname"])."'";
   $update[]="Color='".$_POST["gcolor"]."'";
   $update[]="view_torrents='".$_POST["vtorrent"]."'";
   $update[]="edit_torrents='".$_POST["etorrent"]."'";
   $update[]="delete_torrents='".$_POST["dtorrent"]."'";
   $update[]="view_users='".$_POST["vuser"]."'";
   $update[]="edit_users='".$_POST["euser"]."'";
   $update[]="delete_users='".$_POST["duser"]."'";
   $update[]="view_news='".$_POST["vnews"]."'";
   $update[]="edit_news='".$_POST["enews"]."'";
   $update[]="delete_news='".$_POST["dnews"]."'";
   $update[]="view_forum='".$_POST["vforum"]."'";
   $update[]="edit_forum='".$_POST["eforum"]."'";
   $update[]="delete_forum='".$_POST["dforum"]."'";
   $update[]="can_upload='".$_POST["upload"]."'";
   $update[]="can_download='".$_POST["down"]."'";
   $update[]="control_panel='".$_POST["admincp"]."'";
   $strupdate=implode(",",$update);

   $group_id=intval($_GET["group_id"]);
   SQL_Query_exec("UPDATE groups SET $strupdate WHERE group_id=$group_id") or die(mysql_error());

   echo "<br><center><b>".T_("UPDATED")."</b></center><br>";
       
end_frame();
stdfoot();    
}

if ($action=="groups" && $do=="delete") {
   //Needs to be secured!!!!
   $group_id=intval($_GET["group_id"]);
       
if (($group_id=="1") || ($group_id=="7"))
   show_error_msg("ERROR","You cannot delete this group!",1);

   stdhead("Groups Management");
   navmenu();

begin_frame(T_("DELETE_GROUPS"));
   
   SQL_Query_exec("DELETE FROM groups WHERE group_id=$group_id") or die(mysql_error());
   
   echo "<br><center><b>".T_("DELECTED_OK")."</b></center><br>";
       
end_frame();
stdfoot();    
}

if ($action=="groups" && $do=="add") {
   stdhead("Groups Management");
   navmenu();

begin_frame(T_("ADD_NEW_GROUP"));

?>
   <form action="admincp.php?action=groups&do=addnew" name="level" method="post">
   <table width="100%" align="center">
   <tr><td><?php echo T_("GROUP_NAME")?>:</td><td><input type="text" name="gname" value="" size="40" /></td></tr>
   <tr><td><?php echo T_("GROUP_COLOR")?>:</td>
   <td><input type="text" name="gcolor" value="" size="10" /></td></tr>
   <tr><td><?php echo T_("GROUP_COPY")?>:</td><td><select name="getlevel" size="1">
<?php
   $rlevel=SQL_Query_exec("SELECT DISTINCT group_id, level FROM groups ORDER BY group_id");

while($level=mysql_fetch_array($rlevel)) {
   print("n<option value=".$level["group_id"].">".$level["level"]."</option>");
}
   print("n</select></td></tr>");
   print("n<tr><td align=center class=header><input type=submit name=confirm value="".T_("CONFIRM")."" /></td></tr>");
   print("</table></form><br><br>");
   
end_frame();
stdfoot();    
}

if ($action=="groups" && $do=="addnew") {
   stdhead("Groups Management");
   navmenu();

begin_frame(T_("ADD_NEW_GROUP"));

   $group_id=intval($_POST["getlevel"]);
   $rlevel=SQL_Query_exec("SELECT * FROM groups WHERE group_id=$group_id") or die(mysql_error());
   $level=mysql_fetch_array($rlevel);
   
if (!$level)
   show_error_msg("Error","Invalid ID",1);

   $update=array();
   $update[]="level='".mysql_real_escape_string($_POST["gname"])."'";
   $update[]="Color='".$level["gcolor"]."'";
   $update[]="view_torrents='".$level["view_torrents"]."'";
   $update[]="edit_torrents='".$level["edit_torrents"]."'";
   $update[]="delete_torrents='".$level["delete_torrents"]."'";
   $update[]="view_users='".$level["view_users"]."'";
   $update[]="edit_users='".$level["edit_users"]."'";
   $update[]="delete_users='".$level["delete_users"]."'";
   $update[]="view_news='".$level["view_news"]."'";
   $update[]="edit_news='".$level["edit_news"]."'";
   $update[]="delete_news='".$level["delete_news"]."'";
   $update[]="view_forum='".$level["view_forum"]."'";
   $update[]="edit_forum='".$level["edit_forum"]."'";
   $update[]="delete_forum='".$level["delete_forum"]."'";
   $update[]="can_upload='".$level["can_upload"]."'";
   $update[]="can_download='".$level["can_download"]."'";
   $update[]="control_panel='".$level["control_panel"]."'";
   $strupdate=implode(",",$update);
   $group_id=intval($_GET["group_id"]);
   SQL_Query_exec("INSERT INTO groups SET $strupdate") or die(mysql_error());

   echo "<br><center><b>".T_("ADDED_OK")."</b></center><br>";
   
end_frame();
stdfoot();    
}

if (!$action) {
   stdhead(T_("ADMIN_CP"));
   navmenu();
   
stdfoot();
}
#===============================#
#    Theme Management            #
#===============================#

mm small error


href="#" class="showHide" id="b-bdbd344c50c8fd9473a4175ffcc1552da61c3f61">-</a></div>



change to


<a href="countuser_block.php" class="showHide" id="b-bdbd344c50c8fd9473a4175ffcc1552da61c3f61">-</a></div>


[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7094"]countuser_block.php[/url]
thank luis  ;)
mmmm small error

at the end <bodu>

<body>
shoutbox banned — 2014-09-15 19:45:43 in v2.08 Mods Completed
account-details


print("<tr><td>".T_("SHOUTBOX_BANNED").": </td><td align='left'><input name='hideshoutbox' value='yes' type='radio' ".($user['hideshoutbox'] == 'yes' ? 'checked="checked"' : ""). " />Oui <input name='hideshoutbox' value='no' type='radio' " . (!$hideshoutbox ? " checked='checked'" : "") . " />Non</td></tr>n");

best regard

[php]
<!-- START NAVIGATION -->

<?php if ($CURUSER) { ?>
<table width="100%"><div class='navigation'>
<div class='menu'>
<ul id='nav-one' class='dropmenu'>
   <li><a href="index.php"><?php echo T_("HOME");?></a></li>
   <li><a href="forums.php"><?php echo T_("FORUMS");?></a></li>
   <li><a href="torrents-upload.php"><?php echo T_("UPLOAD_TORRENT");?></a></li>
   <li><a href="torrents.php"><?php echo T_("BROWSE_TORRENTS");?></a></li>
   <li><a href="torrents-today.php"><?php echo T_("TODAYS_TORRENTS");?></a></li>
   <li><a href="torrents-search.php"><?php echo T_("SEARCH_TORRENTS");?></a></li>
</ul>
</div>
</div>
<?php } ?>
<!-- END NAVIGATION -->
[/php]

and change into function.php

[php]
function loggedinonly() {
global $CURUSER;

if (!$CURUSER) {
header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));
exit();
}
}
[/php]

change to

[php]
function loggedinonly($nowarn = false) {
global $CURUSER;

$warn = null;
if ($nowarn)
$warn = "&nowarn=1";

if (!$CURUSER) {
header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "$warn");
exit();
}
}
[/php]
"Movie-Torrentz, post: 86998":

Hi guys

i have been asked a few times now for this mod so instead of sending it to people one by one by pm, im posting it here for anyone thats looking for our version of the QapTcha login mod, you will have to change it to suit your site but here it is..



open header.php

find this line: (will be different for your theme)

<link rel="stylesheet" type="text/css" href="<?php echo $site_config["SITEURL"]; ?>/themes/M-Torrentz/theme.css" />

add underneath



<link rel="stylesheet" href="<?php echo $site_config["SITEURL"]; ?>/jquery/QapTcha.jquery.css" type="text/css" />

this is my account-login.php


<form method="post" action="account-login.php">
<table border="0" cellpadding="3" align="center">
    <tr><td class="coins" align="center"><b><?php echo T_("USERNAME"); ?>:</b> <input type="text" size="40" name="username" /></td></tr>
    <tr><td class="coins" align="center"><b><?php echo T_("PASSWORD"); ?>:</b> <input type="password" size="40" name="password" /></td></tr>

<br /><br />

    <tr><td align="left"><b><?php echo T_("YOU_ARE_HUMANS"); ?>: ? </b><div class="clr"></div><div id="QapTcha"></div></td></tr>
    <tr><td colspan="2" align="center"><input type="submit" value="<?php echo T_("LOGIN"); ?>" /><br /><br /><i><?php echo T_("COOKIES"); ?></i></td></tr>
</table>

<?php
if ( ! empty($_REQUEST["returnto"]) ) {
    print("<input type=\"hidden\" name=\"returnto\" value=\"" . cleanstr($_REQUEST["returnto"]) . "\" />\n");
}
?>
</form>

<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.ui.touch.js"></script>
<script type="text/javascript" src="js/jquery.ui.touch-punch.js"></script>
<script type="text/javascript" src="js/QapTcha.jquery.js"></script>
<!-- JS -->

<script type="text/javascript">
$(document).ready(function() {
$('#QapTcha').QapTcha({disabledSubmit:true});
});
</script>

<p align="center"><a href="account-signup.php"><?php echo T_("SIGNUP"); ?></a> | <a href="account-recover.php"><?php echo T_("RECOVER_ACCOUNT"); ?></a></p>

<?php
end_frame();
stdfoot();
?>

account-signup.php

<?php
//
//  TorrentTrader v2.x
// $LastChangedDate: 2011-11-11 01:47:12 +0000 (Fri, 11 Nov 2011) $
//  $LastChangedBy: dj-howarth1 $, PureEvil
//
// http://www.torrenttrader.org
//
//
require_once("backend/functions.php");
dbconn();

$username_min_length = 3;
$username_length = 15; // Max username length. You shouldn't set this higher without editing the database first
$password_minlength = 6;
$password_maxlength = 40;
// Disable checks if we're signing up with an invite
if (!is_valid_id($_REQUEST["invite"]) || strlen($_REQUEST["secret"]) != 32) {
//invite only check
if ($site_config["INVITEONLY"]) {
 show_error_msg(T_("INVITE_ONLY"), "<br /><br /><center>".T_("INVITE_ONLY_MSG")."<br /><br /></center>",1);
}

//get max members, and check how many users there is
$numsitemembers = get_row_count("users");
if ($numsitemembers >= $site_config["maxusers"])
 show_error_msg(T_("SORRY")."...", T_("SITE_FULL_LIMIT_MSG") . number_format($site_config["maxusers"])." ".T_("SITE_FULL_LIMIT_REACHED_MSG")." ".number_format($numsitemembers)." members",1);
} else {
$res = SQL_Query_exec("SELECT id FROM users WHERE id = $_REQUEST[invite] AND MD5(secret) = ".sqlesc($_REQUEST["secret"]));
$invite_row = mysql_fetch_array($res);
if (!$invite_row) {
 show_error_msg(T_("ERROR"), T_("INVITE_ONLY_NOT_FOUND")." ".($site_config['signup_timeout']/86400)." days.", 1);
}
}

if ($_GET["takesignup"] == "1") {

//check if IP is already a peer
if ($site_config["ipcheck"] && $site_config["accountmax"] > "0") {
$ip = $_SERVER['REMOTE_ADDR'];
$ipc = mysql_query("SELECT COUNT(ip) FROM users WHERE ip = '$ip'") or die (mysql_error());
$ipq = mysql_result($ipc, 0);
if ($ipq >= $site_config["accountmax"])
show_error_msg("Error","$site_config[SITENAME] only allows $site_config[accountmax] account per IP. If you would like to create a new account, please contact a staff member via PM or IRC.<br><br> The error was: <font color=red>maximum account count($site_config[accountmax]) exceeded for $ip($ipq), cannot proceed with signup.</font>",1);
}
$message == "";
function validusername($username) {
 $allowedchars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
 for ($i = 0; $i < strlen($username); ++$i)
  if (strpos($allowedchars, $username[$i]) === false)
  return false;
 return true;
}
$wantusername = $_POST["wantusername"];
$email = $_POST["email"];
$wantpassword = $_POST["wantpassword"];
$passagain = $_POST["passagain"];
$country = $_POST["country"];
$gender = $_POST["gender"];
$client = $_POST["client"];

$wherefrom = $_POST["wherefrom"];
$age = (int) $_POST["age"];

 if (empty($wantpassword) || (empty($email) && !$invite_row) || empty($wantusername))
$message = T_("DONT_LEAVE_ANY_FIELD_BLANK");

elseif (strlen($wantusername) < $username_min_length)
$message = sprintf(T_("USERNAME_TOO_SHORT"), $username_length);
 elseif (strlen($wantusername) > $username_length)
$message = sprintf(T_("USERNAME_TOO_LONG"), $username_length);
 elseif ($wantpassword != $passagain)
$message = T_("PASSWORDS_NOT_MATCH");
 elseif (strlen($wantpassword) < $password_minlength)
$message = sprintf(T_("PASS_TOO_SHORT_2"), $password_minlength);
 elseif (strlen($wantpassword) > $password_maxlength)
$message = sprintf(T_("PASS_TOO_LONG_2"), $password_maxlength);
 elseif ($wantpassword == $wantusername)
 $message = T_("PASS_CANT_MATCH_USERNAME");
 elseif (!validusername($wantusername))
$message = "Invalid username.";
 elseif (!$invite_row && !validemail($email))
 $message = "That doesn't look like a valid email address.";

if ($message == "") {
 // Certain checks must be skipped for invites
 if (!$invite_row) {
  //check email isnt banned
  $maildomain = (substr($email, strpos($email, "@") + 1));
  $a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'")));
  if ($a[0] != 0)
   $message = sprintf(T_("EMAIL_ADDRESS_BANNED_S"), $email);
  $a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$maildomain'")));
  if ($a[0] != 0)
   $message = sprintf(T_("EMAIL_ADDRESS_BANNED_S"), $email);
   // check if email addy is already in use
   $a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where email='$email'")));
   if ($a[0] != 0)
  $message = sprintf(T_("EMAIL_ADDRESS_INUSE_S"), $email);
 }
   //check username isnt in use
  $a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where username='$wantusername'")));
  if ($a[0] != 0)
 $message = sprintf(T_("USERNAME_INUSE_S"), $wantusername);

  $secret = mksecret(); //generate secret field

  $wantpassword = passhash($wantpassword);// hash the password
}
if ($message != "")
 show_error_msg(T_("SIGNUP_FAILED"), $message, 1);

 if ($message == "") {
 if ($invite_row) {
  SQL_Query_exec("UPDATE users SET username=".sqlesc($wantusername).", password=".sqlesc($wantpassword).", secret=".sqlesc($secret).", status='confirmed', added='".get_date_time()."' WHERE id=$invite_row[id]");
  //send pm to new user
  if ($site_config["WELCOMEPMON"]){
   $dt = sqlesc(get_date_time());
   $msg = sqlesc($site_config["WELCOMEPMMSG"]);
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $invite_row[id], $dt, $msg, 0)");
  }
  header("Refresh: 0; url=account-confirm-ok.php?type=confirm");
  die;
 }
if ($site_config["CONFIRMEMAIL"]) { //req confirm email true/false
 $status = "pending";
}else{
 $status = "confirmed";
}
//make first member admin
if ($numsitemembers == '0')
 $signupclass = '7';
else
 $signupclass = '1';
  $ret = SQL_Query_exec("INSERT INTO users (username, password, secret, email, status, added, age, country, gender, client, wherefrom, stylesheet, language, class, ip) VALUES (" .
  implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), $age, $country, $gender, $client, $wherefrom, $site_config["default_theme"], $site_config["default_language"], $signupclass, getip()))).")");

   $id = mysql_insert_id();

   $psecret = md5($secret);
   $thishost = $_SERVER["HTTP_HOST"];
   $thisdomain = preg_replace('/^www./is', "", $thishost);

//ADMIN CONFIRM
if ($site_config["ACONFIRM"]) {
 $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_CREATED_YOU_WILL_HAVE_TO_WAIT")."nn".$site_config['SITENAME']." ".T_("ADMIN");
}else{//NO ADMIN CONFIRM, BUT EMAIL CONFIRM
 $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_APPROVED_EMAIL")."nn ".$site_config['SITEURL']."/account-confirm.php?id=$id&secret=$psecretnn".T_("HAS_BEEN_APPROVED_EMAIL_AFTER")."nn ".T_("HAS_BEEN_APPROVED_EMAIL_DELETED")."nn".$site_config['SITENAME']." ".T_("ADMIN");
}
if ($site_config["CONFIRMEMAIL"]){ //email confirmation is on
 sendmail($email, "Your $site_config[SITENAME] User Account", $body, "", "-f$site_config[SITEEMAIL]");
 header("Refresh: 0; url=account-confirm-ok.php?type=signup&email=" . urlencode($email));
}else{ //email confirmation is off
 header("Refresh: 0; url=account-confirm-ok.php?type=noconf");
}
//send pm to new user
if ($site_config["WELCOMEPMON"]){
 $dt = sqlesc(get_date_time());
 $msg = sqlesc($site_config["WELCOMEPMMSG"]);
 SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $id, $dt, $msg, 0)");
}

   die;
 }
}//end takesignup

stdhead(T_("SIGNUP"));
begin_frame(T_("SIGNUP"));
?>
<?php echo T_("COOKIES"); ?>

<form method="post" action="account-signup.php?takesignup=1">
<?php if ($invite_row) { ?>
<input type="hidden" name="invite" value="<?php echo $_GET["invite"]; ?>" >
<input type="hidden" name="secret" value="<?php echo $_GET["secret"]; ?>" >
<?php } ?>
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
   <td><?php echo T_("USERNAME"); ?>: <font class="small" color="#ff0000">*</font></td>
   <td><input type="text" size="40" name="wantusername" ></td>
  </tr>
  <tr>
   <td><?php echo T_("PASSWORD"); ?>: <font class="small" color="#ff0000">*</font></td>
   <td><input type="password" size="40" name="wantpassword" ></td>
  </tr>
  <tr>
   <td><?php echo T_("CONFIRM"); ?>: <font class="small" color="#ff0000">*</font></td>
   <td><input type="password" size="40" name="passagain" ></td>
  </tr>
  <?php if (!$invite_row) {?>
  <tr>
   <td><?php echo T_("EMAIL"); ?>: <font class="small" color="#ff0000">*</font></td>
   <td><input type="text" size="40" name="email" ></td>
  </tr>
  <?php } ?>
  <tr>
   <td><?php echo T_("AGE"); ?>:</td>
   <td><input type="text" size="40" name="age" maxlength="3" ></td>
  </tr>
  <tr>
   <td><?php echo T_("COUNTRY"); ?>:</td>
   <td>
<select name="country" size="1">
 <?php
 $countries = "<option value="0">---- ".T_("NONE_SELECTED")." ----</option>n";
 $ct_r = SQL_Query_exec("SELECT id,name,domain from countries ORDER BY name");
 while ($ct_a = mysql_fetch_array($ct_r)) {
  $countries .= "<option value="$ct_a[id]">$ct_a[name]</option>n";
 }
 ?>
 <?php echo $countries; ?>
</select>
   </td>
  </tr>
  <tr>
   <td><?php echo T_("GENDER"); ?>:</td>
   <td>
<input type="radio" name="gender" value="Male" ><?php echo T_("MALE"); ?>
&nbsp;&nbsp;
<input type="radio" name="gender" value="Female" ><?php echo T_("FEMALE"); ?>
   </td>
  </tr>
  <tr>
   <td><?php echo T_("PREF_BITTORRENT_CLIENT"); ?>:</td>
   <td><input type="text" size="40" name="client"  maxlength="20" ></td>
  </tr>
 
  <tr>
   <td><?php echo T_("HOW_DID_YOU_FIND_US"); ?>:</td>
   <td><input type="text" size="40" name="wherefrom"  maxlength="20" ></td>
  </tr>
   <tr>
 <td><b>Humans:</b></td>
 <td><div class="clr"></div><div id="QapTcha"></div></td>
   </tr>
  <tr>
   <td align="center" colspan="2">
   <input type="submit" value="<?php echo T_("SIGNUP"); ?>" >
  </tr>
</table>
 </td>
<td><b>GMAIL, LIVE, YAHOO PLEASE CHECK SPAM FOR CONFIRMATION EMAIL</b></td>
</form>
   <script type="text/javascript" src="jquery/jquery.js"></script>
   <script type="text/javascript" src="jquery/jquery-ui.js"></script>
   <script type="text/javascript" src="jquery/QapTcha.jquery.js"></script>
<!-- JS -->
<script type="text/javascript">
 $(document).ready(function(){
   $('#QapTcha').QapTcha({disabledSubmit:true});
 });
</script>
<?php
end_frame();
stdfoot();
?>



upload the files in the zip to your root dir

I have added our old sprites image and our new one to match our theme, i have also included the .psd to you can tweak your slider..

hope this helps regards
 
#===============================================================#
# Warned Users - Updated by BigMax (25-Mar-2013)                                             #
#===============================================================#
if ($action == "warned") {

if ($do == "delete") {

if ($_POST["removeall"]) {
   $res = SQL_Query_exec("SELECT `id` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `warned` = 'yes'");

while ($row = mysql_fetch_assoc($res)) {
   SQL_Query_exec("DELETE FROM `warnings` WHERE `active` = 'yes' AND `userid` = '$row[id]'");
   SQL_Query_exec("UPDATE `users` SET `warned` = 'no' WHERE `id` = '$row[id]'");
}
} else {

if (!@count($_POST['warned'])) show_error_msg("Error", "Nothing selected", 1);
   $ids = array_map("intval", $_POST["warned"]);
   $ids = implode(", ", $ids);
           
   SQL_Query_exec("DELETE FROM `warnings` WHERE `active` = 'yes' AND `userid` IN ($ids)");
   SQL_Query_exec("UPDATE `users` SET `warned` = 'no' WHERE `id` IN ($ids)");
}
   autolink("admincp.php?action=warned", "Entries Confirmed");
}
   $perpage = 50;
   $count = get_row_count("users", "WHERE enabled = 'yes' AND status = 'confirmed' AND warned = 'yes'");
   
   list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, 'admincp.php?action=warned&amp;');

   $res = SQL_Query_exec("SELECT `id`, `username`, `class`, `added`, `last_access`, `downloaded`, `uploaded` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `warned` = 'yes' ORDER BY `added` DESC $limit");

stdhead("Warned Users");
navmenu();

begin_frame("Warned Users");

   $warnedusers = number_format($count);
?>

   <div style="margin-top:10px; margin-bottom:10px" align="center"><font size="2">
       This page displays all users which are enabled and have active warnings<? if (get_user_class() == 10) { ?>, they can be mass deleted or deleted per user<br />
       Please note that if you delete a warning which was for poor ratio, then this is extending the time user has left to expire<? } ?>
   <div style="margin-top:10px" align="center">We have <font color="#FF2200"><b><?php echo $warnedusers; ?></b></font> warned user<?php echo ($warnedusers != 1 ? "s" : ""); ?></div></font></div>

<?php
if ($count > $perpage) {
   print($pagertop);
}
?>
<?php if ($count > 0): ?>
   <form id="warned" method="post" action="admincp.php?action=warned&amp;do=delete">
   <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center" class="table_table">
<tr>
   <th class="table_head" align="left">Username</th>
   <th class="table_head" align="left">Class</th>
   <th class="table_head" align="left">Uploaded</th>
   <th class="table_head" align="left">Downloaded</th>
   <th class="table_head" align="left">Ratio</th>
   <th class="table_head">Ajouter</th>
   <th class="table_head">Last Access</th>
   <th class="table_head">Warnings</th>
<th class="table_head"><font color="#FF2200"><b>Hit</b><small>&</small><b>Run</b></font></th>
<?php
if (get_user_class() >= 6) {
?>
   <th class="table_head"><input type="checkbox" name="checkall" onclick="checkAll(this.form.id);" /></th>
<?php } ?>
</tr>

<?php
while ($row = mysql_fetch_assoc($res)):
   $qry = SQL_Query_exec("SELECT COUNT(`hnr`) FROM `snatched` WHERE `uid` = '".$row["id"]."' AND `hnr` = 'yes'");
   $res2 = mysql_fetch_row($qry);

if ($res2[0] > 0) {
   $hnr = "<font style=background-color:B50000 color=#FEFEFE><b>&nbsp; ".$res2[0]." &nbsp;</b></font>";
}
   else { $hnr = "<font color=limegreen><b>Non</b></font>"; }
   
   $addeded = date("d-M-Y H:i", utc_to_tz_time($row["added"]));
   $joined = ("".get_elapsed_time(sql_timestamp_to_unix_timestamp($row["added"]))." ago");
   $lastaccess = (($row["last_access"] == "0000-00-00 00:00:00") ? "Never logged" : "".date("d-M-Y H:i", utc_to_tz_time($row["last_access"]))."");
   $lastseen = (($row["last_access"] == "0000-00-00 00:00:00") ? "---" : "".get_elapsed_time(sql_timestamp_to_unix_timestamp($row["last_access"]))." ago" );
   $downloaded = "<font color=#FF2200><b>".mksize($row["downloaded"])."</b></font>";
   $uploaded = "<font color=limegreen><b>".mksize($row["uploaded"])."</b></font>";

if($row["downloaded"] != 0){ $ratio = number_format($row["uploaded"] / $row["downloaded"], 2); } else { $ratio = "---"; }
   $ratio = "<font color=".get_ratio_color($ratio)."><b>$ratio</b></font>";
?>

<tr>
   <td class="table_col1"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><b><?php echo class_user($row["username"]); ?></b></a></td>
   <td class="table_col2"><?php echo get_user_class_name($row["class"]); ?></td>
   <td class="table_col1"><?php echo $uploaded; ?></td>
   <td class="table_col2"><?php echo $downloaded; ?></td>
   <td class="table_col1"><?php echo $ratio; ?></td>
   <td class="table_col2" align="center"><?php echo "".$addeded."<br />".$joined.""; ?></td>
   <td class="table_col1" align="center"><?php echo "".$lastaccess."<br />".$lastseen.""; ?></td>
   <td class="table_col1" align="center"><font color="#FF2200"><b>Active</b></font>: &nbsp;&nbsp; [<a href="account-details.php?id=<?php echo $row["id"]; ?>#warnings"><b><?php echo number_format(get_row_count("warnings", "WHERE userid = '$row[id]' AND active = 'yes'")); ?></b></a>]
<div style="margin-top:4px"><font color="limegreen"><b>Expired</b></font>: &nbsp;[<a href="account-details.php?id=<?php echo $row["id"]; ?>#warnings"><b><?php echo number_format(get_row_count("warnings", "WHERE userid = '$row[id]' AND active != 'yes'")); ?></b></a>]</div></td>
    <td class="table_col1" align="center"><?php echo $hnr; ?></td>
<?php
if (get_user_class() >= 6) {
?>
<td class="table_col2" align="center"><input type="checkbox" name="warned[]" value="<?php echo $row["id"]; ?>" /></td>
<?php } ?>
</tr>
<?php endwhile; ?>
<?php
if (get_user_class() >= 6) {
?>
<tr>
   <td colspan="10" align="right">
   <input type="submit" value="Remove Checked" />
   <input type="submit" name="removeall" value="Remove All" />
</td>
</tr>
<?php } ?>
</table>        
</form>
<?php else: ?>
<center><font size="2"><b>No Warned Users!</b></font></center>
<?php
endif;

if ($count > $perpage) {
   print($pagerbottom);
} else {
   print("<br />");
}

end_frame();
stdfoot();
}

#===================================================#
#    End Warned Users - Updated by BigMax                                   #
#===================================================#
Upload Activity — 2014-05-24 08:49:31 in v2.08 Mods Completed
hello everybody

I have a problem



$timenow = gmtime();
   
   SQL_Query_exec("UPDATE snatched SET hnr = 'yes' WHERE completed = '1' AND hnr = 'no' AND uload < dload AND $timenow - $site_config[hnr_deadline] > stime AND $site_config[hnr_seedtime] > ltime");
   SQL_Query_exec("UPDATE `snatched` SET `hnr` = 'no' WHERE `hnr` = 'yes' AND uload >= dload");
   SQL_Query_exec("UPDATE `snatched` SET `hnr` = 'no' WHERE `hnr` = 'yes' AND ltime >= $site_config[hnr_seedtime]");
   
   $a = SQL_Query_exec("SELECT DISTINCT uid FROM snatched WHERE hnr = 'yes'");


yes off course ArticWolf  B)

thank you for topic

I'm not glassis  :lol:
lolll "as you can prob tell its for 2.08 lol, i dont touche any version below 2.08"  :lol:

ArticWolf in account.php


<b><?php echo T_("DATE_OF_BIRTHDAY"); ?>:</b> <?php echo $CURUSER["BIRTHDAY"];
    list($year,$month,$day) = explode('-',$CURUSER["dob"]);
    print(" ".$year."-".$month."-".$day); ?><br>


good also ?  :P

good good day ArticWolf  B)
not work lol


echo "<td><b><font color=FF0000>" .T_("DATE_OF_BIRTHDAY"). ": </font><font color='red' class="required">*</font></b></td><td valign="top" align=left>";


probality class=required  B)

take your code ArticWolf #6

thank you
ArticWolf why in this code "age" delete?

account-signup.php


$ret = mysql_query("INSERT INTO users (username, password, secret, email, status, added, dob, country, gender, client, stylesheet, language, class) VALUES (" .
    implode(",", array_map("sqlesc", array($wantusername, $wantpassword, $secret, $email, $status, get_date_time(), $dob, $country, $gender, $client, $site_config["default_theme"], $site_config["default_language"], $signupclass))).")");

if you want this code,but pb


<?php
   echo "<tr><td><b><font color=FF0000>" .T_("DATE_OF_BIRTHDAY"). ": </font><font color='red' class="required">*</font></b></td><td valign="top" align=left>";
                       
   list($day,$month,$year) = explode('-',$CURUSER['dob']);
                   
   echo "<select name='day'>n";
   echo "<option value='0'>--</option>n";
                       
for ($d=1;$d<=31;$d++) {
   $s = $d == $day ? 'selected' : '';
   
   echo "<option value='$d' $s>$d</option>n";
}
   echo "</select>n";
   echo "<select name='month'>n";
   echo "<option value='0'>--</option>n";
                       
for ($m=1;$m<=12;$m++) {
   $s = ($m == $month ? 'selected' : '');
   printf("<option value='$m' $s>%s</option>n",date("F", mktime(0,0,0,$m,1,1970)));
}
   echo "</select>n";
   echo "<select name='year'>n";
   echo "<option value='0'>--</option>n";
                       
for ($y=1930;$y<=date('Y');$y++) {
   $s = $y == $year ? 'selected' : '';
                           
   echo "<option value='$y' $s>$y</option>n";
}
   echo "</select></td></tr>";
   
?>



I have not resolded this code,it's possible help?


echo "<tr><td><b><font color=FF0000>" .T_("DATE_OF_BIRTHDAY"). ": </font><font color='red' class="required">*</font></b></td><td valign="top" align=left>";

a little  of color  :P

in account


    print ("<tr><td align=right class=table_col2><b>Account Parked:</b> </td><td class=table_col2><input type=radio name=parked" . ($CURUSER["parked"] == "yes" ? " checked" : "") . " value=yes><font color=#FF0000><b>Yes</b></font> <input type=radio name=parked" .  ($CURUSER["parked"] == "no" ? " checked" : "") . " value=no><font color=#00FF00><b>No</b></font><br><i>You can park your account to prevent it from being deleted because of inactivity if you go away on for example a vacation. When the account has been parked limits are put on the account, for example you cannot use the tracker and browse some of the pages.</i></td></tr>");

why not

i do  :rolleyes:

je vais faire c'est pas gagné  :D
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