<?php
//
// TorrentTrader v2.x
// Created by M@f!eusO http://www.topliens.net
// Modified by Mcgyver http://www.visualtracker.net
// Modified by tiloup http://www.diamondsrooms.com
// http://www.torrenttrader.org
//
//
require_once("backend/functions.php");
require_once("backend/config.php");
dbconn();
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false; # Hide all blocks!
stdhead(T_("WEBMASTER"));
begin_frame(T_("WEBMASTER"));
//Pour tous les paramètres -> 1 = oui ; 0 = non
$sujets = array('Technique','Suggestion','Autre'); // Sujets possibles aux messages (pour en rajouter prenez exemple sur les 3 premiers)
$choix_urgent = 1; // Vous pouvez choisir d'activer ou non la fonction "urgent", ainsi le membre pourra signaler que son mail est urgent ou non
$choix_nom = 1; // Nom obligatoire ?
$votre_mail = 1; // Afficher votre adresse email directement ?
//
// Ne pas modifier ci-dessous
//
if(isset($_POST['envoyer']) && $_POST['envoyer'] == 'ok')
// Si l'on envoye quelque chose
{
$reponse = '<br/>';
$mail = htmlentities($_POST['mail']); // On récupère l'email
$nom = htmlentities($_POST['nom']); // Le nom
$sujet = htmlentities($_POST['sujet']); // Le sujet
$message = nl2br(htmlentities($_POST['message'])); // Le message
$urgent = htmlentities($_POST['urgent']); // On récupère le type du message
if($choix_nom == 1)
// Si le nom est obligatoire
{
if(!empty($nom))
// Si le champ est bien rempli on met 1
{
$Snom = 1;
}
elseif(empty($nom))
// Sinon on met 0
{
$Snom = 0;
}
}
else
// Si le champ n'est pas activé on met 1
{
$Snom = 1;
}
if(!empty($mail) && !empty($message) && $sujet != '' && $Snom == 1)
// On vérifie que l'email, le message et le sujet sont bien présent et on vérifie si tout est correct avec le nom
{
// L'entete du message
$entete = "MIME-Version: 1.0rn";
$entete .= "Content-type: text/html; charset=iso-8859-1rn";
$entete .= "From: <$mail>rn";
$entete .= "Reply-To: $mailrn";
$email = ''; // La variable du message a envoyer
if($urgent == 1) // Si le message est urgent on le signal
$email .= '<strong>Message urgent !!</strong><br />';
if(empty($nom))
$nom = 'NON INDIQUE';
// On créée le message
$email .= 'Vous recevez ce message de votre site <u>' .$site_config['SITENAME']. '</u> pour une raison <strong>' .$sujets[$sujet]. '</strong>.<br />Son email est : ' .$mail. '<br /><br />';
$email .= 'Le message de l'utilisateur <u>' .$nom. '</u> :<br />-----<br />';
$email .= $message;
$email = stripslashes($email);
mail($site_config['SITEEMAIL'], 'Message de ' . $CURUSER["username"] . ': ' .$sujets[$sujet], $email, $entete); // Et on envoye le tout
$reponse .= '' .T_("TRANSFERRED_TO_WEBMASTER"). '<br />'; // on indique que tout s'est bien déroulé.
}
else
{
$reponse .= '' .T_("THANK-YOU_PROPERLY_ALL_FIELDS"). '<br />'; // On indique une erreur
}
}
?>
<form name="form1" method="post" action="">
<p><strong><?php echo $reponse; ?></strong></p>
<fieldset><legend><span style='color:#FFFFFF'><b><i><?php echo T_('CONTACT_SHEET'); ?></i></b></span></legend>
<?php
if($votre_mail == 1)
{
echo '<p>' .T_('EMAIL_WEBMASTER'). ' : <u>' . $site_config['SITEEMAIL'] . '</u></p>';
}
?>
<p><span style='color:#FF0000'>*</span> <label><?php echo T_('YOUR_EMAIL'); ?> : <input type="text" name="mail" value="<? print("" . $CURUSER["email"] . "n");?>"></label></p>
<p><span style='color:#FF0000'>*</span> <label><?php echo T_('YOUR_ACCOUNT_NAME'); ?> : <input type="text" name="nom" value="<? print("" . $CURUSER["username"] . "n");?>"></label></p>
<p><span style='color:#FF0000'>*</span> <?php echo T_('SUBJECT_YOU_MESSAGE'); ?> :
<select name="sujet">
<?php
for($i = 0; $i < count($sujets); $i++)
{
echo '<option value="' .$i. '">' .$sujets[$i]. '</option>';
}
?>
</select>
</p>
<?php
if($choix_urgent == 1)
{
echo '<p>' .T_('YOUR_MESSAGE_IS_IT_URGENT'). ' : ';
echo '<label><input type="radio" name="urgent" value="1"> ' .T_('YES'). '</label> ';
echo '<label><input type="radio" name="urgent" value="0" checked> ' .T_('NO'). '</label>';
echo ' <span style="color:#FF0000">' .T_('PLEASE_ON_NOT_ABUSE_MESSAGE'). '</span></p><br/>';
}
?>
<p><span style='color:#FF0000'>*</span>
<?php echo T_('YOUR_MESSAGE'); ?> : <br/>
<textarea name="message" cols="55" rows="10"></textarea>
</p>
<p>
<input class="btn" type="hidden" name="envoyer" value="ok">
<input class="btn" type="submit" name="Submit" value="SUBMIT / SOUMETTRE" />
<input class="btn" type="reset" name="Submit2" value="RESET / REINITIALISER" />
</p>
<span style="color:#FF0000">*</span> <span style='font-size:medium;'><i><b><?php echo T_('REQUIRED_FIELDS'); ?></b></i></SPAN>
</fieldset>
</form><br/>
<?
end_frame();
stdfoot();
?>
//Contact WebMaster
$LANG["CONTACT_WEBMASTER"] = "Contact Us";
$LANG["WEBMASTER"] = "Contact the webmaster";
$LANG["CONTACT_SHEET"] = "Contact sheet";
$LANG["EMAIL_WEBMASTER"] = "Email the webmaster";
$LANG["YOUR_EMAIL"] = "Your email";
$LANG["YOUR_ACCOUNT_NAME"] = "Your account name";
$LANG["SUBJECT_YOU_MESSAGE"] = "Subject of your message";
$LANG["PLEASE_ON_NOT_ABUSE_MESSAGE"] = "(Please do not abuse the emergency)";
$LANG["YOUR_MESSAGE_IS_IT_URGENT"] = "Your message is it urgent ?";
$LANG["YOUR_MESSAGE"] = "Your message";
$LANG["REQUIRED_FIELDS"] = "Required fields !";
$LANG["TRANSFERRED_TO_WEBMASTER"] = "Your message has been transferred to the webmaster. Thank you.";
$LANG["THANK-YOU_PROPERLY_ALL_FIELDS"] = "Well thank you completed all fields";
//Contact WebMaster
$LANG["CONTACT_WEBMASTER"] = "Contactez-Nous";
$LANG["WEBMASTER"] = "Contacter le webmaster";
$LANG["CONTACT_SHEET"] = "Feuille de contact";
$LANG["EMAIL_WEBMASTER"] = "Adresse email du webmaster";
$LANG["YOUR_EMAIL"] = "Votre email";
$LANG["YOUR_ACCOUNT_NAME"] = "Votre nom complet";
$LANG["SUBJECT_YOU_MESSAGE"] = "Sujet de votre message";
$LANG["PLEASE_ON_NOT_ABUSE_MESSAGE"] = "(Merci de ne pas abuser de l'urgence)";
$LANG["YOUR_MESSAGE_IS_IT_URGENT"] = "Votre message est-il urgent ?";
$LANG["YOUR_MESSAGE"] = "Votre message";
$LANG["REQUIRED_FIELDS"] = "Champs obligatoires !";
$LANG["TRANSFERRED_TO_WEBMASTER"] = "Votre message a bien été transféré au webmaster. Nous vous remercions.";
$LANG["THANK-YOU_PROPERLY_ALL_FIELDS"] = "Merci de bien completer tous les champs.";
<a href="account-recover.php"><?php echo T_("RECOVER_ACCOUNT"); ?></a>| <a href="contact.php"><?php echo T_("CONTACT_WEBMASTER"); ?></a>echo "<li><a href='contact.php'>".T_("CONTACT_WEBMASTER")."</a></li>";print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href=\"torrents.php?cat=" . $row["category"] . "\"><img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" /></td></tr>\n");or subcategory..
print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href=\"torrents.php?cat=" . $row["category"] . "\">" . $row["cat_name"] . " <img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "\" alt=\"" . $row["cat_name"] . "\" /></td></tr>\n");
"AzuriS, post: 85084":change
for
$LANG["EMAIL_BANS_ADD"] = "Email %sbanni %s ajouté par (%s)";
$LANG["EMAIL_BANS_ADD"] = "Email %s banni ajouté par (%s)";
"mostvotedplaya, post: 85076":Show me $LANG["EMAIL_BANS_ADD"];
"mostvotedplaya, post: 85068":whats the contents off
T_("EMAIL_BANS_ADD")
if ($action=="emailbans"){
stdhead(T_("EMAIL_BANS"));
navmenu();
$remove = (int) $_GET['remove'];
if (is_valid_id($remove)){
SQL_Query_exec("DELETE FROM email_bans WHERE id=$remove");
write_log(sprintf(T_("EMAIL_BANS_REM"), $remove, $CURUSER["username"]));
}
if ($_GET["add"] == '1'){
$mail_domain = trim($_POST["mail_domain"]);
$comment = trim($_POST["comment"]);
if (!$mail_domain || !$comment){
show_error_msg(T_("ERROR"), T_("MISSING_FORM_DATA").".",0);
stdfoot();
die;
}
$mail_domain= sqlesc($mail_domain);
$comment = sqlesc($comment);
$added = sqlesc(get_date_time());
SQL_Query_exec("INSERT INTO email_bans (added, addedby, mail_domain, comment) VALUES($added, $CURUSER[id], $mail_domain, $comment)");
write_log(sprintf(T_("EMAIL_BANS_ADD"), $mail_domain, $CURUSER["username"]));
show_error_msg(T_("COMPLETE"), T_("EMAIL_BAN")." Added",0);
stdfoot();
die;
}
begin_frame(T_("EMAILS_OR_DOMAINS_BANS"));
print("You can block specific email addresses or domains from signing up to your tracker<br /><br /><br /><b> Add ".T_("EMAIL")."s OR Domains Ban</b>n");
print("<form method='post' action='admincp.php?action=emailbans&add=1'>n");
print("<table border='0' cellspacing='0' cellpadding='5' align='center'>n");
print("<tr><td align='right'>".T_("EMAIL_ADDRESS")." OR Domain To Ban</td><td><input type='text' name='mail_domain' size='40' /></td></tr>n");
print("<tr><td align='right'>Comment</td><td><input type='text' name='comment' size='40' /></td></tr>n");
print("<tr><td colspan='2' align='center'><input type='submit' value='Add Ban' /></td></tr>n");
print("n</table></form>n<br />");
//}
$res2 = SQL_Query_exec("SELECT count(id) FROM email_bans");
$row = mysql_fetch_array($res2);
$count = $row[0];
$perpage = 40;list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, basename(__FILE__)."?action=emailbans&");
print("<br /><b> Current ".T_("EMAIL")." Bans ($count)</b>n");
if ($count == 0){
print("<p align='center'><b>".T_("NOTHING_FOUND")."</b></p><br />n");
}else{
echo $pagertop;
print("<table border='0' cellspacing='0' cellpadding='5' width='90%' align='center' class='table_table'>n");
print("<tr><th class='table_head'>Added</th><th class='table_head'>Mail Address Or Domain</th><th class='table_head'>Banned By</th><th class='table_head'>Comment</th><th class='table_head'>Remove</th></tr>n");
$res = SQL_Query_exec("SELECT * FROM email_bans ORDER BY added DESC $limit");
while ($arr = mysql_fetch_assoc($res)){
$r2 = SQL_Query_exec("SELECT username FROM users WHERE id=$arr[userid]");
$a2 = mysql_fetch_assoc($r2);
$r4 = SQL_Query_exec("SELECT username,id FROM users WHERE id=$arr[addedby]");
$a4 = mysql_fetch_assoc($r4);
print("<tr><td class='table_col1'>".utc_to_tz($arr['added'])."</td><td align='left' class='table_col2'>$arr[mail_domain]</td><td align='left' class='table_col1'><a href='account-details.php?id=$a4[id]'>$a4[username]"."</a></td><td align='left' class='table_col2'>$arr[comment]</td><td class='table_col1'><a href='admincp.php?action=emailbans&remove=$arr[id]'>Remove</a></td></tr>n");
}
print("</table>n");
echo $pagerbottom;
echo "<br />";
}
end_frame();
stdfoot();
} write_log(sprintf(T_("EMAIL_BANS_ADD"), $mail_domain, $CURUSER["username"]));
<b>Titre original</b><br /> <?php echo $_data->titre_original ?><br /><br />
<b>Date de sortie</b><br /> <?php echo $_data->date_sortie; ?><br /><br />
<b><?php echo T_("ANNEE_PROD"); ?></b><br /> <?php echo $_data->annee_prod; ?><br /><br />
<b>Genre</b><br /> <?php echo $_data->genre; ?><br /><br />
<b>Origine</b><br /> <?php echo $_data->pays; ?><br /><br />
<b>Acteurs</b><br /> <?php echo $_data->acteurs; ?><br /><br />
<b>Synopsis</b><br /> <?php echo $_data->synopsis; ?><br /><br />
Changé pour <b><?php echo T_("ALLOCINE_ALIAS"); ?></b><br /> <?php echo $_data->titre_original ?><br /><br />
<b><?php echo T_("ALLOCINE_RELEASED"); ?></b><br /> <?php echo $_data->date_sortie; ?><br /><br />
<b><?php echo T_("ALLOCINE_PROD"); ?></b><br /> <?php echo $_data->annee_prod; ?><br /><br />
<b><?php echo T_("ALLOCINE_GENRE"); ?></b><br /> <?php echo $_data->genre; ?><br /><br />
<b><?php echo T_("ALLOCINE_COUNTRY"); ?></b><br /> <?php echo $_data->pays; ?><br /><br />
<b><?php echo T_("ALLOCINE_ACTORS"); ?></b><br /> <?php echo $_data->acteurs; ?><br /><br />
<b><?php echo T_("ALLOCINE_PLOT"); ?></b><br /> <?php echo $_data->synopsis; ?><br /><br />
"MicroMonkey, post: 84841":I can give you good file, but I can do better for you! sorry ...I understand the user class part, but it still dont do anything on my site. I click the button on a test user with a class of 1, and nothing happens, it dont delete it. Im confused lol
"mostvotedplaya, post: 84838":I have this problem in TTIMDb Also...
to maybe...
if ( ! empty( $_POST['allocine'] ) && $_POST['allocine'] != $row['allocine'] )
{
$updateset[] = "allocine= " . sqlesc($_POST["allocine"]);
$TTCache->Delete("allocine/$id");
}
if ( $_POST['allocine'] != $row['allocine'] )
{
$updateset[] = "allocine= " . sqlesc($_POST["allocine"]);
$TTCache->Delete("allocine/$id");
}
Untested, but should work ;)