View Single Post
  #1  
Old 14th May 2014, 16:11
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default TBDev v2.1.17 Yuna SE [ English Version ]
Hello Bravo,

I am working on converting TBDev v2.1.17 Yuna SE Russian to English for you all that may want this converted. I have so far only done 1 script but I will post them one at time also I have left some of their language behind because my translator is not the best

Signup.php
Code:
<?

/*
// +--------------------------------------------------------------------------+
// | Project:    TBDevYSE - TBDev Yuna Scatari Edition                        |
// +--------------------------------------------------------------------------+
// | This file is part of TBDevYSE. TBDevYSE is based on TBDev,               |
// | originally by RedBeard of TorrentBits, extensively modified by           |
// | Gartenzwerg.                                                             |
// |                                                                          |
// | TBDevYSE is free software; you can redistribute it and/or modify         |
// | it under the terms of the GNU General Public License as published by     |
// | the Free Software Foundation; either version 2 of the License, or        |
// | (at your option) any later version.                                      |
// |                                                                          |
// | TBDevYSE is distributed in the hope that it will be useful,              |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of           |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            |
// | GNU General Public License for more details.                             |
// |                                                                          |
// | You should have received a copy of the GNU General Public License        |
// | along with TBDevYSE; if not, write to the Free Software Foundation,      |
// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            |
// +--------------------------------------------------------------------------+
// |                                               Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/

require_once("include/bittorrent.php");
dbconn();

if ($deny_signup && !$allow_invite_signup)
    stderr($tracker_lang['error'], "Извините, но регистрация отключена администрацией.");

if ($CURUSER)
    stderr($tracker_lang['error'], sprintf($tracker_lang['signup_already_registered'], $SITENAME));

list($users) = mysql_fetch_array(sql_query("SELECT COUNT(id) FROM users"));
if ($users >= $maxusers)
    stderr($tracker_lang['error'], sprintf($tracker_lang['signup_users_limit'], number_format($maxusers)));

if ($_POST["agree"] != "yes") {
stdhead("{$SITENAME} Terms");
?>
<div style="width:80%" align="center">
<fieldset class="fieldset">
<legend><?= $SITENAME; ?> Terms</legend>
<form method="post" action="<?=$PHP_SELF?>">
<table cellpadding="4" cellspacing="0" border="0" style="width:100%" class="tableinborder">
<tr>
<td class="tablea">To proceed, you must agree with the following rules:</td></tr>
<tr>
  <td class="tablea" style="font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif">
<div class="page" style="border-right: thin inset; padding-right: 6px; border-top: thin inset; padding-left: 6px; padding-bottom: 6px; overflow: auto; border-left: thin inset; padding-top: 1px; border-bottom: thin inset; height: 170px">
<p><strong><?= $SITENAME; ?> Terms</strong></p>

<p>Register on the tracker is free! We strongly recommend that you read the rules of our project. 
If you agree with all the terms, please check the 'I agree' and click 'Register'.
If you cancel the registration, <a href="<?=$DEFAULTBASEURL;?>">click here</a> to return to the homepage.</p>

<p>Although the administrators and moderators of serving <?=$SITENAME;?>, attempt to keep all objectionable messages from the tracker, it is impossible to review all messages.
All messages express the views of the author, but not for the administration, respectively, only the author is responsible for the content of any message.</p>

<p>By agreeing to these rules, you agree to comply with the tracker as a whole, as well as the requirements of the legislation of the Russian Federation.
Tracker Administration reserves the right to remove, edit, move or close any thread for any reason.</p>
</div>
</td></tr>
<tr><td class="tablea">
<div>
<label>
<input class="tablea" type="checkbox" name="agree" value="yes">
<input type="hidden" name="do" value="register">
  <strong>I agree to fulfill the rules, visiting <?=$SITENAME;?>.</strong>
</label>
</div>
</td></tr>
</table>
</fieldset><p>
<center>
<input class="tableinborder" type="submit" value="Next">
</center>
</form>
<?
stdfoot();
die;
}

stdhead('Register');

$countries = "<option value=\"0\">---- Not Selected ----</option>\n";
$ct_r = sql_query("SELECT id, name FROM countries ORDER BY name") or die;
while ($ct_a = mysql_fetch_array($ct_r))
  $countries .= "<option value=\"$ct_a[id]\">$ct_a[name]</option>\n";

?>
<span style="color: red; font-weight: bold;"><? print("For proper registration activate cookies.");?></span>

<?
if ($deny_signup && $allow_invite_signup)
    stdmsg("Внимание", "Регистрация доступна только тем у кого есть код приглашения!");
?>

<p>
<form method="post" action="takesignup.php">
<table border="1" cellspacing=0 cellpadding="10">
<tr><td align="right" class="heading"><? print("Desire Username");?></td><td align=left><input type="text" size="40" name="wantusername" /></td></tr>
<tr><td align="right" class="heading"><? print("Password");?></td><td align=left><input type="password" size="40" name="wantpassword" /></td></tr>
<tr><td align="right" class="heading"><? print("Confirm Password");?></td><td align=left><input type="password" size="40" name="passagain" /></td></tr>
<tr valign=top><td align="right" class="heading"><? print("Email");?></td><td align=left><input type="text" size="40" name="email" />
<table width=250 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded><font class=small><? print("Email address must be correct.
You'll receive a confirmation email to which you must respond. Your email will no longer be used.");?></td></tr>
</font></td></tr></table>
</td></tr>
<tr><td align="right" class="heading"><? print("Gender");?></td><td align=left><input type=radio name=gender value=1><? print("Male"); ?><input type=radio name=gender value=2><? print("Female");?></td></tr>
<?
$year .= "<select name=year><option value=\"0000\">Year</option>\n";
$i = "1920";
while ($i <= (date('Y',time())-13)) {
    $year .= "<option value=" .$i. ">".$i."</option>\n";
    $i++;
}
$year .= "</select>\n";
$birthmonths = array(
    "01" => 'January',
    "02" => 'February',
    "03" => 'March',
    "04" => 'April',
    "05" => 'May',
    "06" => 'June',
    "07" => 'July',
    "08" => 'August',
    "09" => 'September',
    "10" => 'October',
    "11" => 'November',
    "12" => 'December',
);
$month = "<select name=\"month\"><option value=\"00\">Month</option>\n";
foreach ($birthmonths as $month_no => $show_month) {
    $month .= "<option value=$month_no>$show_month</option>\n";
}
$month .= "</select>\n";
$day .= "<select name=day><option value=\"00\">Day</option>\n";
$i = 1;
while ($i <= 31) {
    if ($i < 10) {
        $day .= "<option value=0".$i.">0".$i."</option>\n";
    } else {
        $day .= "<option value=".$i.">".$i."</option>\n";
    }
    $i++;
}
$day .="</select>\n";
tr('Birthday*', $year.$month.$day ,1);
tr('Country', "<select name=country>\n$countries\n</select>",1);
tr('Contact', "<table cellSpacing=\"3\" cellPadding=\"0\" width=\"100%\" border=\"0\">
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        ICQ<br />
        <img alt src=pic/contact/icq.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"icq\"></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        AIM<br />
        <img alt src=pic/contact/aim.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"aim\"></td>
      </tr>
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        MSN<br />
        <img alt src=pic/contact/msn.gif width=\"17\" height=\"17\">
        <input maxLength=\"50\" size=\"25\" name=\"msn\"></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        Yahoo!<br />
        <img alt src=pic/contact/yahoo.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"yahoo\"></td>
      </tr>
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        Skype<br />
        <img alt src=pic/contact/skype.gif width=\"17\" height=\"17\">
        <input maxLength=\"32\" size=\"25\" name=\"skype\"></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        mIRC!<br />
        <img alt src=pic/contact/mirc.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"mirc\"></td>
      </tr>
    </table>",1);
tr('Web Site', "<input type=\"text\" name=\"website\" size=\"40\" value=\"\" />", 1);

    include_once("include/captcha.php");
    $hash = create_captcha();
    tr("Confirmation Code", "<input type=\"text\" name=\"imagestring\" size=\"40\" value=\"\" />
    <p>Please enter the text from the image below. <br />
       This process prevents automatic registration.</p>
    <table>
        <tr>
            <td class=\"block\" rowspan=\"2\">
                <img id=\"captcha\" src=\"captcha.php?imagehash=$hash\" alt=\"Captcha\" ondblclick=\"document.getElementById('captcha').src = 'captcha.php?imagehash=$hash&amp;' + Math.random();\" />
            </td>
            <td class=\"block\"><img src=\"themes/$ss_uri/images/reload.gif\" style=\"cursor: pointer;\" onclick=\"document.getElementById('captcha').src = 'captcha.php?imagehash=$hash&amp;' + Math.random();\" /></td>
        </tr>
        <tr>
            <td class=\"block\"><a href=\"captcha_mp3.php?imagehash=$hash\"><img src=\"themes/$ss_uri/images/listen.gif\" style=\"cursor: pointer;\" border=\"0\" /></a></td>
        </tr>
    </table>
    <font color=\"red\">The code is case sensitive</font><br />Double click on the picture, something to refresh image.<input type=\"hidden\" name=\"imagehash\" value=\"$hash\" />", 1);

/*    
if ($allow_invite_signup) {
    tr("Code invitations", "<input type=\"text\" name=\"invite\" maxlength=\"32\" size=\"40\" />", 1);
}*/

?>

<tr><td align="right" class="heading"></td><td align="left"><input type="checkbox" name="rulesverify" value="yes"> <? print("I have read the site rules page.");?><br />
<input type="checkbox" name="faqverify" value="yes"> <? print("I agree to read the FAQ before asking questions.");?><br />
<input type="checkbox" name="ageverify" value="yes"> <? print("I am at least 18 years old.");?></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Register" style='height: 25px'></td></tr>
</table>
</form>
<?

stdfoot();

?>


Click the image to open in full size.

Click the image to open in full size.

Remember I have commented out Invite so if you want it back just uncomment it.

Reply With Quote