Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 14th May 2014, 16:11
BamBam0077's Avatar
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
  #2  
Old 15th May 2014, 22:16
WhyMe's Avatar
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Talking
Just a Sidenote.............. Yot should post up when you have done all not one at a time
Reply With Quote
  #3  
Old 16th May 2014, 12:38
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
I am just gonna do the lang files rather then entire scripts now feel silly not looking into the lang files will save me a heap of time. but your right posting 1 at time does sound silly as their are over 25 scripts

if anyone has a good Russian translator I would appreciate the help to get it as atm I am using google chrome to translate :)
Reply With Quote
  #4  
Old 16th May 2014, 15:33
ajax's Avatar
ajax ajax is offline
Senior Member
 
Join Date: Apr 2009
United Kingdom
Posts: 165
Default
__________________
"ALWAYS BE YOURSELF.
UNLESS YOU CAN BE A UNICORN.
THEN ALWAYS BE A UNICORN."
Reply With Quote
  #5  
Old 29th May 2014, 10:41
AlaminT's Avatar
AlaminT AlaminT is offline
Senior Member
 
Join Date: Jul 2008
Ukraine
Posts: 39
Default
Luke, use GIT!

After you completed with your task (yet i advise you to manualy translate, not use automated stuff) create pull request to merge your changes into main source.
__________________
Yes, I am Yuna.

Don't ask questions, go straight for my forum!
Reply With Quote
  #6  
Old 26th March 2021, 11:46
hon's Avatar
hon hon is offline
Senior Member
 
Join Date: Oct 2020
P2P
Posts: 66
Default UP
Can you upload it?
Reply With Quote
  #7  
Old 26th March 2021, 14:54
thartley55's Avatar
thartley55 thartley55 is offline
Senior Member
 
Join Date: Mar 2012
P2P
Posts: 204
Default
Really?
Can people not look at the post dates?
This thread...and the last post...nearly 7 years old!
Reply With Quote
Reply

Tags
english , se , tbdev , version , yuna

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:00. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.