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
[Mod] Contact
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-09-27 23:35:05
Hope the english translate is good ^^ :

<?php

//

// TorrentTrader v2.x

// Created by M@f!eusO http://www.topliens.net

// Modified by Mcgyver http://www.visualtracker.net

// http://www.torrenttrader.org

//

//

require_once("backend/functions.php");

require_once("backend/config.php");

dbconn(false);

loggedinonly();



stdhead("Contact");



begin_frame("Contact The Webmaster");



//For all parameters -> 1 = yes; 0 = no

$topic = array('Technical','Suggest','Other'); // Topic suggestion for the message (for added more, use the exempleof the 3 suggestion)

$urgent_choice = 1; // You can choose to actived or no the "urgent" method, therefore the member can warned if his mail si urgent or no

$name_choice = 1; // Forced name ?

$your_mail = 1; // Show directly your mail ?



//

// Don't alter these lines

//



if(isset($_POST['submit']) && $_POST['submit'] == 'ok')

// If we submit something

{

$answer = '<br />';

$mail = htmlentities($_POST['mail']); // recover mail

$name = htmlentities($_POST['name']); // the name

$topic = htmlentities($_POST['topic']); // topic

$message = nl2br(htmlentities($_POST['message'])); // the message

$urgent = htmlentities($_POST['urgent']); // type of message





if($name_choice == 1)

// If name forced

{

if(!empty($name))

// If field corret put 1

{

$Sname = 1;

}

elseif(empty($name))

// If put 0

{

$Sname = 0;

}

}

else

// If field not activated put 1

{

$Sname = 1;

}







if(!empty($mail) && !empty($message) && $topic != '' && $Sname == 1)

// Check if the mail, message and topic are correctly here and showing

{



// Content message

$content = "MIME-Version: 1.0\r\n";

$content .= "Content-type: text/html; charset=iso-8859-1\r\n";

$content .= "From: <$mail>\r\n";

$content .= "Reply-To: $mail\r\n";



$email = ''; // Value of the message to send



if($urgent == 1) // If urgent message

$email .= '<strong>Urgent message !!</strong><br />';



if(empty($name))

$name = 'NA';



// Message created

$email .= 'You receive this message from your site <u>' .$site_config['SITENAME']. '</u> for <strong>' .$topic[$topic]. '</strong> reason.<br />Email from : ' .$mail. '<br /><br />';

$email .= 'The message of <u>' .$name. '</u> is :<br />-----<br />';

$email .= $message;

$email = stripslashes($email);



mail($site_config['SITEEMAIL'], 'Message from ' . $CURUSER["username"] . ': ' .$topic[$topic], $email, $content); // Send the result



$answer .= 'your message was send to the webmaster with success. We thank you.<br />'; // Say all be ok

}

else

{

$answer .= 'Thanks to completed all requiered field.<br />'; // Say if error

}

}



?>



<form name="form1" method="post" action="">

<p><strong><?php echo $answer; ?></strong></p>

<fieldset><legend>Contact sheet</legend>

<?php

if($your_mail == 1)

{

echo '<p>Webmaster email : <u>' . $site_config['SITEEMAIL'] . '</u></p>';

}

?>

<p><label>Your mail : <input type="text" name="mail" value="<? print("" . $CURUSER["email"] . "\n");?>">*</label></p>

<p><label>Your name : <input type="text" name="nom" value="<? print("" . $CURUSER["username"] . "\n");?>">*</label></p>

<p>Topic Message :

<select name="topic">

<?php

for($i = 0; $i < count($topic); $i++)

{

echo '<option value="' .$i. '">' .$topic[$i]. '</option>';

}

?>

</select>*

</p>

<?php

if($urgent_choice == 1)

{

echo '<p>Your message is urgent ? :<br />';

echo '<label><input type="radio" name="urgent" value="1"> Yes</label><br />';

echo '<label><input type="radio" name="urgent" value="0" checked> No</label><br />';

echo '<font color="#FF0000">(Thanks for don't abuse about urgent stuff)</font></p>';

}

?>

<p>

Your message : <br />

<textarea name="message" cols="55" rows="10"></textarea>*

</p>

<p>

<input type="hidden" name="submit" value="ok">

<input type="submit" name="Submit" value="submit">

<input type="reset" name="Submit2" value="refresh">

</p>

<p>* <font color="#FF0000">Required Field</font>.

</fieldset>

</form>



<?

end_frame();

stdfoot();

?>
Unknown User
2010-10-03 20:23:53
"tealk, post: 65482":
Hope the english translate is good ^^ :


<?php

//

// TorrentTrader v2.x

// Created by M@f!eusO http://www.topliens.net

// Modified by Mcgyver http://www.visualtracker.net

// http://www.torrenttrader.org

//

//

require_once("backend/functions.php");

require_once("backend/config.php");

dbconn(false);

loggedinonly();



stdhead("Contact");



begin_frame("Contact The Webmaster");











//For all parameters -> 1 = yes; 0 = no

$topic = array('Technical','Suggest','Other'); // Topic suggestion for the message (for added more, use the exempleof the 3 suggestion)

$urgent_choice = 1; // You can choose to actived or no the "urgent" method, therefore the member can warned if his mail si urgent or no

$name_choice = 1; // Forced name ?

$your_mail = 1; // Show directly your mail ?



//

// Don't alter these lines

//



if(isset($_POST['submit']) && $_POST['submit'] == 'ok')

// If we submit something

{

$answer = '<br />';

$mail = htmlentities($_POST['mail']); // recover mail

$name = htmlentities($_POST['name']); // the name

$topic = htmlentities($_POST['topic']); // topic

$message = nl2br(htmlentities($_POST['message'])); // the message

$urgent = htmlentities($_POST['urgent']); // type of message





if($name_choice == 1)

// If name forced

{

if(!empty($name))

// If field corret put 1

{

$Sname = 1;

}

elseif(empty($name))

// If put 0

{

$Sname = 0;

}

}

else

// If field not activated put 1

{

$Sname = 1;

}







if(!empty($mail) && !empty($message) && $topic != '' && $Sname == 1)

// Check if the mail, message and topic are correctly here and showing

{



// Content message

$content = "MIME-Version: 1.0\r\n";

$content .= "Content-type: text/html; charset=iso-8859-1\r\n";

$content .= "From: <$mail>\r\n";

$content .= "Reply-To: $mail\r\n";



$email = ''; // Value of the message to send



if($urgent == 1) // If urgent message

$email .= '<strong>Urgent message !!</strong><br />';



if(empty($name))

$name = 'NA';



// Message created

$email .= 'You receive this message from your site <u>' .$site_config['SITENAME']. '</u> for <strong>' .$topic[$topic]. '</strong> reason.<br />Email from : ' .$mail. '<br /><br />';

$email .= 'The message of <u>' .$name. '</u> is :<br />-----<br />';

$email .= $message;

$email = stripslashes($email);



mail($site_config['SITEEMAIL'], 'Message from ' . $CURUSER["username"] . ': ' .$topic[$topic], $email, $content); // Send the result



$answer .= 'your message was send to the webmaster with success. We thank you.<br />'; // Say all be ok

}

else

{

$answer .= 'Thanks to completed all requiered field.<br />'; // Say if error

}

}



?>



<form name="form1" method="post" action="">

<p><strong><?php echo $answer; ?></strong></p>

<fieldset><legend>Contact sheet</legend>

<?php

if($your_mail == 1)

{

echo '<p>Webmaster email : <u>' . $site_config['SITEEMAIL'] . '</u></p>';

}

?>

<p><label>Your mail : <input type="text" name="mail" value="<? print("" . $CURUSER["email"] . "\n");?>">*</label></p>

<p><label>Your name : <input type="text" name="nom" value="<? print("" . $CURUSER["username"] . "\n");?>">*</label></p>

<p>Topic Message :

<select name="topic">

<?php

for($i = 0; $i < count($topic); $i++)

{

echo '<option value="' .$i. '">' .$topic[$i]. '</option>';

}

?>

</select>*

</p>

<?php

if($urgent_choice == 1)

{

echo '<p>Your message is urgent ? :<br />';

echo '<label><input type="radio" name="urgent" value="1"> Yes</label><br />';

echo '<label><input type="radio" name="urgent" value="0" checked> No</label><br />';

echo '<font color="#FF0000">(Thanks for don't abuse about urgent stuff)</font></p>';

}

?>

<p>

Your message : <br />

<textarea name="message" cols="55" rows="10"></textarea>*

</p>

<p>

<input type="hidden" name="submit" value="ok">

<input type="submit" name="Submit" value="submit">

<input type="reset" name="Submit2" value="refresh">

</p>

<p>* <font color="#FF0000">Required Field</font>.

</fieldset>

</form>



<?

end_frame();

stdfoot();

?>


sry it is not working. i get blank page whn i click on contact. pls check again
Unknown User
2010-10-03 21:11:15
Credit to original author and the editor i have simplified this and changed to fit into a table...

<?php

 

 /*

 * TorrentTrader v2.x

 * Developed By Owner Of Last One...

 * Updated By djhowarth

 */

 

 require_once("backend/functions.php");

 dbconn(true);

 loggedinonly();

 

 $topic = array('Technical','Suggest','Other');

 $urgencys = array('low', 'medium', 'high');

 $topics = "";

 

 for ($i = 0; $i < count($topic); $i++)

 {

 $topics .= "<option value='$i'>$topic[$i]</option>";

 }

 

 $urgency = "";

 

 for ($i = 0; $i < count($urgencys); $i++)

 {

 $urgency .= "<option value='$i'>$urgencys[$i]</option>";

 }

 

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

 

 if (empty($_POST["message"]))

 show_error_msg("No Permission", "You cannot send an email with no message.", 1);

 

 $subject = (int)$_POST["subject"];

 $subject = $topic[$subject];

 $urgent  = (int)$_POST["urgency"];

 $urgent  = $urgencys[$urgent];

 $sender  = $CURUSER["email"];

 $from = $CURUSER["username"];

 $message = nl2br(htmlentities($_POST['message']));

 

 $messages  = "You was sent a message from $from regarding $subject : Urgency $urgent\r\n";

 $messages .= "The user sent the following message:- \r\r";

 $messages .= "$message";

 

 mail($site_config["SITEEMAIL"], $site_config['SITENAME'] . " - Contact Message From: $from", $messages, "From: ".$site_config['SITENAME']." <".$sender.">");

 show_error_msg("Message Sent", "Thankyou for contacting us, we will be in touch shortley.", 1);

 }

 

 stdhead("Contact Webmaster");

 begin_frame("Contact Webmaster");

 echo("<form method='post' action='contact.php'>");

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

 echo("<tr>");

 echo("<td class='ttable_head' colspan='2'><b>Contact Webmaster</b></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>E-mail Address:</td>");

 echo("<td class='ttable_col2'><input type='text' name='from' size='50' value='" . htmlspecialchars($CURUSER["email"]) . "' disabled></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Username:</td>");

 echo("<td class='ttable_col2'><input type='text' name='username' size='50' value='" . htmlspecialchars($CURUSER["username"]) . "' disabled></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Subject:</td>");

 echo("<td class='ttable_col2'><select name='subject'>$topics</select></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Urgency:</td>");

 echo("<td class='ttable_col2'><select name='urgency'>$urgency</select></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Message:</td>");

 echo("<td class='ttable_col2'><textarea name='message' cols='55' rows='3'></textarea></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'></td>");

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

 echo("</tr>");

 echo("</table>");

 echo("</form>");

 end_frame();

 stdfoot();

 

?>


Copy code to contact.php and the email sent will be sent to site email so u may after change it

regards

djhowarth
Unknown User
2010-10-03 21:50:59
"djhowarth, post: 65620":
Credit to original author and the editor i have simplified this and changed to fit into a table...


<?php

 

 /*

 * TorrentTrader v2.x

 * Developed By Owner Of Last One...

 * Updated By djhowarth

 */

 

 require_once("backend/functions.php");

 dbconn(true);

 loggedinonly();

 

 $topic = array('Technical','Suggest','Other');

 $urgencys = array('low', 'medium', 'high');

 $topics = "";

 

 for ($i = 0; $i < count($topic); $i++)

 {

 $topics .= "<option value='$i'>$topic[$i]</option>";

 }

 

 $urgency = "";

 

 for ($i = 0; $i < count($urgencys); $i++)

 {

 $urgency .= "<option value='$i'>$urgencys[$i]</option>";

 }

 

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

 

 if (empty($_POST["message"]))

 show_error_msg("No Permission", "You cannot send an email with no message.", 1);

 

 $subject = (int)$_POST["subject"];

 $subject = $topic[$subject];

 $urgent  = (int)$_POST["urgency"];

 $urgent  = $urgencys[$urgent];

 $sender  = $CURUSER["email"];

 $from = $CURUSER["username"];

 $message = nl2br(htmlentities($_POST['message']));

 

 $messages  = "You was sent a message from $from regarding $subject : Urgency $urgent\r\n";

 $messages .= "The user sent the following message:- \r\r";

 $messages .= "$message";

 

 mail($site_config["SITEEMAIL"], $site_config['SITENAME'] . " - Contact Message From: $from", $messages, "From: ".$site_config['SITENAME']." <".$sender.">");

 show_error_msg("Message Sent", "Thankyou for contacting us, we will be in touch shortley.", 1);

 }

 

 stdhead("Contact Webmaster");

 begin_frame("Contact Webmaster");

 echo("<form method='post' action='contact.php'>");

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

 echo("<tr>");

 echo("<td class='ttable_head' colspan='2'><b>Contact Webmaster</b></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>E-mail Address:</td>");

 echo("<td class='ttable_col2'><input type='text' name='from' size='50' value='" . htmlspecialchars($CURUSER["email"]) . "' disabled></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Username:</td>");

 echo("<td class='ttable_col2'><input type='text' name='username' size='50' value='" . htmlspecialchars($CURUSER["username"]) . "' disabled></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Subject:</td>");

 echo("<td class='ttable_col2'><select name='subject'>$topics</select></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Urgency:</td>");

 echo("<td class='ttable_col2'><select name='urgency'>$urgency</select></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'>Message:</td>");

 echo("<td class='ttable_col2'><textarea name='message' cols='55' rows='3'></textarea></td>");

 echo("</tr>");

 echo("<tr>");

 echo("<td class='ttable_col1'></td>");

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

 echo("</tr>");

 echo("</table>");

 echo("</form>");

 end_frame();

 stdfoot();

 

?>


Copy code to contact.php and the email sent will be sent to site email so u may after change it

regards

djhowarth


damn gud man. i know u r rock and helpful.unless ur help may b i could not be able to run my site properly. thumbs up for u  ;)  .
2010-10-19 05:20:06
think you ! :D

Merci! :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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728