Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 7th September 2012, 13:19
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default Change Language/Theme Addition to main.php...
Hi, i want to add the change language theme function to my main.php

i found this:

PHP Code:
OpenTable('Theme Change');
        echo 
"<p align=\"center\"><b>Theme</b></p>\n";
        echo 
"<form id=\"acp_styles\" type=\"hidden\" method=\"post\" action=\"#\">";
        echo 
"<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
        echo 
"<p align=\"center\"><b>Language</b></p>\n";
        echo 
"<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
        echo 
" <input class=\"button2\" type=\"submit\" value=\"SELECT\" /></form>";
CloseTable(); 

i want to place it where u can see in the picture attached...and i think it is somewhere in the highlighted red text of the main.php below...


and this is my main.php:

Code:
<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen = false;
$errtableopen = false;
$table2open = false;
$btback1 = "c0c0c0";
$btback2 = "acd2ef";
$btback3 = "acd2ef";
                   




function OpenTable($title = "title", $tablewidth = "") {
        global $tableopen, $siteurl;
        if ($tableopen) return;
		if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
		else $stylewidth = '';
        echo "<div class=\"mainbox\" ".$stylewidth."> ";
	echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
	       
	$tableopen = true;
}

function CloseTable() {
        global $tableopen, $siteurl;
        if (!$tableopen) return;
        echo "</div></div>";

        $tableopen = false;
}

function OpenTable2($title = "") {
      global $tableopen2, $siteurl;
        if ($tableopen2) return;
        echo "<div id=\"messagebox\" > ";
	echo "<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
	       
	$tableopen2 = true;
 }

function CloseTable2() {
          global $tableopen2, $siteurl;
        if (!$tableopen2) return;
        echo "</div></div>";

        $tableopen2 = false;
}

function OpenNewsTable($title = "") {
      global $OpenNewsTable, $siteurl;
        if ($OpenNewsTable) return;
        echo "<div id=\"newsbox\" > ";
	       
	$OpenNewsTable = true;
 }

function CloseNewsTable() {
          global $OpenNewsTable, $siteurl;
        if (!OpenNewsTable) return;
        echo "</div>";

        $OpenNewsTable = false;
}

function OpenMessTable($title = "") {
      global $OpenMessTable, $siteurl;
        if ($OpenMessTable) return;
        echo "<div id=\"messagebox\"> ";
	echo "<span class=\"messagebox-title\">".$title."</span>";
	       
	$OpenMessTable = true;
 }

function CloseMessTable() {
          global $OpenMessTable, $siteurl;
        if (!$OpenMessTable) return;
        echo "</div>";

        $OpenMessTable = false;
}

function OpenSuccTable($title = "") {
      global $OpenSuccTable, $siteurl;
        if ($OpenSuccTable) return;
        echo "<div id=\"successbox\" > ";
	echo "<span class=\"successbox-title\">".$title."</span>";
	       
	$OpenSuccTable = true;
 }

function CloseSuccTable() {
          global $OpenSuccTable, $siteurl;
        if (!$OpenSuccTable) return;
        echo "</div>";

        $OpenSuccTable = false;
}
function OpenErrTable($title) {
      global $OpenErrTable, $siteurl;
        if ($OpenErrTable) return;
        echo "<div id=\"errorbox\" > ";
	echo "<span class=\"errorbox-title\">".$title."</span>";
	       
	$OpenErrTable = true;
 }

function CloseErrTable() {
          global $OpenErrTable, $siteurl;
        if (!$OpenErrTable) return;
        echo "</div>";

        $OpenErrTable = false;
}
function themechange(){
{
global $bttheme;
        $themes = Array();
        $thememaindir = "themes";
        $themehandle = opendir($thememaindir);
        while ($themedir = readdir($themehandle)) {
                if (is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        $themes[$themedir] = $themedir;
        }
        closedir($themehandle);
        unset($thememaindir,$themedir);
}
        $change = '';
foreach ($themes as $key=>$val) {
		$change .= "<option ";
        if ($bttheme == $key) $change .="selected ";
        $change .= "value=\"".$key."\">".$val."</option>\n";
}
unset($themes);
return $change;
}
function languagechange(){
{
global $language;
        $languages = Array();
        $langdir = "language";
        $langhandle = opendir($langdir);
        while ($langfile = readdir($langhandle)) {
                if (eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        $languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        closedir($langhandle);
        unset($langdir,$langfile);
}
        $change = '';
foreach ($languages as $key=>$val) {
        $change .="<option ";
        if ($language == $key) $change .="selected";
        $change .=" value=\"".$key."\">".$val."</option>\n";
}
unset($languages);
return $change;
}




function themeheader() {
global $db, $db_prefix, $theme, $siteurl, $user, $upload_level, $sitename, $gfx_check, $donations, $INVITEONLY,$onlysearch, $pivate_mode;

if ($user->user) {
        //Update online user list
        $pagename = substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        $sqlupdate = "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        $sqlinsert = "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        $res = $db->sql_query($sqlupdate);
        if (!$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}

echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo "<head>\n";
echo "<meta name=\"description\" content=\"Greek Anime Tracker\">\n";
echo "<meta name=\"keywords\" content=\" greek, anime, torrent, tracker, subbed, dubbed, cartoon, animation, archectypo, archetypo, arxetypo, archectypo, arxetipo, fansub, subtitles, styled, subs, aegisub, \">\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo "<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo "<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo "<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->";
echo "<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl; ?>";
tag_prompt = "<?php echo _bb_tag_prompt; ?>";
img_prompt = "<?php echo _bb_img_prompt; ?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt; ?>";
link_text_prompt = "<?php echo _bb_link_text_prompt; ?>";
link_url_prompt = "<?php echo _bb_link_url_prompt; ?>";
link_email_prompt = "<?php echo _bb_link_email_prompt; ?>";
list_type_prompt = "<?php echo _bb_list_type_prompt; ?>";
list_item_prompt = "<?php echo _bb_list_item_prompt; ?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate; ?>";

shoutrefresht = "<?php echo $shout_config['refresh_time']; ?>";
shoutidle = "<?php echo $shout_config['idle_time']; ?>";


</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo "<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!$onlysearch) {
        echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (is_readable("themes/$theme/style.css")) {
        echo "<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}  
overlib_init();

echo "</head>\n\n";


$themepage = false;
?>
<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo "<body>";
?>



<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo "<body>";
echo"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n";
echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo "<div id=\"pmbtwrap\">\n";
echo'<img src="/themes/archeCtypo_Original/pics/logo.png" height="400" width="950" ><div id="theme-header">
	</div>
	<div id="theme-body"><div align="center"><br>';
?>
<script src="../AppData/Local/Temp/java/stuHover.js" type="text/javascript"></script>
<div id="pro_linedrop">
<ul class="select">



<li class="line"><a href="torrents.php?"><b class="arrow">Εργαλεία Διαχείρησης</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
	<ul class="sub">

                  <li><a href="helpdesk.php"><img title="Διαχείρηση Βοήθειας " alt="Διαχείρηση Βοήθειας " src="help.png" onmouseover="javascript:descriptor('Διαχείρηση Βοήθειας ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>

                  <li><a href="admin_pms.php"><img title="Διαχείρηση Μηνυμάτων " alt="Διαχείρηση Μηνυμάτων " src="admin-pms.png" onmouseover="javascript:descriptor('Διαχείρηση Μηνυμάτων ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>

		  <li><a href="admin.php?op=staffmess&page=sendmail#staffmess&page=sendmail"><img title="Μαζικά Μηνύματα " alt="Μαζικά Μηνύματα " src="mass.png" onmouseover="javascript:descriptor('Μαζικά Μηνύματα ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>               

                  <li><a href="admin.php"><img title="Διεύθυνση " alt="Διεύθυνση " src="admin.png" onmouseover="javascript:descriptor('Διεύθυνση ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
</ul>  



             

<li class="line"><a href="user.php?op=profile&id="><b>Εργαλεία Χρήστη</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
	<ul class="sub">
                <li><a href="faq.php"><img title="Συχνές Ερωτήσεις/Διευκρινήσεις " alt="Συχνές Ερωτήσεις/Διευκρινήσεις " src="faq.png" onmouseover="javascript:descriptor('Συχνές Ερωτήσεις/Διευκρινήσεις ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
                <li><a href="user.php?op=profile&id=".$user"><img title="Το Προφίλ μου " alt="Το Προφίλ μου " src="/themes/archeCtypo_Original/pics/menu/profile.png" onmouseover="javascript:descriptor('Το Προφίλ μου ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
                <li><a href="pm.php"><img title="Προσωπικά Μηνύματα " alt="Προσωπικά Μηνύματα " src="/themes/archeCtypo_Original/pics/menu/pm.png" onmouseover="javascript:descriptor('Προσωπικά Μηνύματα ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
                <li><a href="memberslist.php"><img title="Λίστα Μελών " alt="Λίστα Μελών " src="userlist.png" onmouseover="javascript:descriptor('Λίστα Μελών ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
		<li><a href="contactstaff.php"><img title="Επικοινωνία με Διαχειριστές " alt="Επικοινωνία με Διαχειριστές " src="mass2.png" onmouseover="javascript:descriptor('Επικοινωνία με Διαχειριστές ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>


</ul>

</li>

</ul>

</div>

<br /><br />

<div id="menuline">
<?

include("./blocks/usercp.php");



echo '<div id="sideBar">';  
echo '<div id="sideBarContents" style="width:0px;" >'; 
echo '<div id="sideBarContentsInner">'; 
echo '<h2 align="left"> </h2>';  
echo '<ul>';
echo imgdescr("seiki.png","http://seikisubs.blogspot.com/",_btseiki);
echo imgdescr("animeclipse.png","http://www.animeclipse.com",_btanimeclipse);
echo imgdescr("ssanime.png","http://www.ss-anime.info/",_btssanime);
echo imgdescr("tzatziki.png","http://www.tzatziki-fansubs.com/",_bttzatziki);
echo imgdescr("gdts.png","http://gdts.darkbb.com/",_btgdts);
echo imgdescr("awmn.png","http://www.anime-awmn.net/forum/",_btawmn);
echo imgdescr("Okami.png","http://www.ookami-fansubs.com/",_btokami);
echo imgdescr("sick.png","http://www.sickfansubs.com/",_btsick);
echo imgdescr("els.png","http://eternallightsubs.niceboard.org/portal",_btels);





echo '</ul>'; 
echo '</div>'; 
echo '</div>'; 
echo '</div>';  












echo '<div id="sideBar2">'; 
echo '<div id="sideBarContents2" style="width:0px;" >'; 
echo '<div id="sideBarContentsInner2">'; 
echo '<h8 align="center"> </h8>';  
echo '<ul>';


echo "<left>\n";
echo "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"420\" height=\"230\" id=\"Clock\" align=\"middle\">\n";
echo "<param name=\"movie\" value=\"clock.swf\" />\n";
echo "<param name=\"quality\" value=\"high\" />\n";
echo "<param name=\"scale\" value=\"exactfit\" />\n";
echo "<param name=\"wmode\" value=\"transparent\" />\n";
echo "<param name=\"menu\" value=\"false\">\n";
echo "<embed src=\"clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"420\" height=\"230\" name=\"Clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo "</object>\n";
echo "</center>\n";


echo '</ul>'; 
echo '</div>'; 
echo '</div>'; 
echo '</div>'; 



























if ($user->user AND $INVITEONLY)
{
	
		
		OpenTable(_btinvites);
		echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
		echo "<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
		if ($user->invites > 0 ){
		echo "<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
		}
		echo "</table>";
		
		CloseTable();
	
}?>
</div>
<?
echo "<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function newuserpage($page)
{
if(eregi("faq.php",$page))return true;
if(eregi("rules.php",$page))return true;
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 loginrequired("user", false);
 include'footer.php';
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason = "";
if (is_banned($user, $reason)) {
        echo "<p>�</p>\n";
        echo "<p>�</p>\n";
        echo "<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo "<p>�</p>\n";
        echo "<p>�</p>\n";
        include("footer.php");
        die();
}


echo "<table width=\"100%\">\n";
echo "<tr>\n";
echo "<td width=\"2%\" valign=\"top\">\n";
echo "<div >";
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if ($donations){
include("./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo "</div></td>\n";
echo "<td width=\"75%\" valign=\"top\">\n";
echo "<div id=\"rightcolumn\">";
$sql_profile = "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile = $db->sql_query($sql_profile);
$userrow = $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if ($user->downloaded > 0){
include ("./ratiowarn.php");
}
}

$has_newpm = false;
$sql = "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res = $db->sql_query($sql) or btsqlerror($sql);
$pmcount = $db->sql_numrows($res);
$has_newpm = ($pmcount > 0) ? true : false;
$db->sql_freeresult($res);
if ($has_newpm)
{
 print("<center><p><table border=0 cellspacing=0 cellpadding=0 bgcolor=green><tr><td style='padding: 10px; background: red'>\n");
 print("<a href=pm.php?op=inbox><font color=white><u>You Have <B>".$pmcount."</b> New Message!</U></font></a>");
 print("</td></tr></table></p></center>\n");
}

 if ($userrow["warned"])
 {
$warn_kapta = $userrow["warn_kapta"];
$warn_hossz = $userrow["warn_hossz"];
$modcomment = $userrow["modcomment"];

if ($warn_hossz != -1) {
$warn = $warn_kapta + $warn_hossz;
$time_now = strtotime(gmdate("Y-m-d H:i:s", time()));
if ($warn < $time_now)
{
$modcomment = "[ " . gmdate("Y-m-d H:i:s", time()) . " - WARN time expired ]\n" . $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id. ",'WARNING' '" . $msg ."', NOW())") or die(mysql_error());  
$modcomment = $modcomment;
$frissites = $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while($row = $db->sql_fetchrow($res)){
$kom = $db->sql_fetchrow( $db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor = $db->sql_fetchrow( $db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!$kom[0] && $tor[owner] !=  $user->id){
 $komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 /////////////////////////////////////////////////////////////
if ($user->user) {
 if ($komment){
 print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print("Please leave a comment on:<br>$komment");
 print("</td></tr></table></p>\n");
}
}
}

function overlib_init() {
echo "<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
echo "<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";


echo "<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/mootools.js\"></script>\n";
echo "<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/side-bar.js\"></script>\n";
echo '<script type="text/javascript" src="js/glossy.js"></script>';



}
function themefooter(){
global $startpagetime; 

if(!eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo"</div></td><td width=\"18%\" valign=top >";

echo"</td>";
echo"</tr>";
}
echo'
<tr>
<td>







<td><p class="footer">
<br>
<br>
<br>
<br>
 <font color=" grey">Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.<br>
 Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 Ιχνηλάτης phpMyBitTorrent (c)   2005-2012. <a href="http://phpmybittorrent.com"><font color=" white">phpMyBitTorrent Team.   </a><font color=" grey"><br>
 Με επιφύλαξη παντός δικαιώματος. (c)   2009-2012. <font color=" white"> www.archectypo.netii.net<font color=" black"><br>
 <font color=" grey">Δημιουργήθηκε σε ' . abs(round(microtime()-$startpagetime,2)) . ' δευτερόλεπτα.
 </p>';
 echo'
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="theme-footer"></div>
</div>
</body>
</html>';
}
function help($name,$help,$title = "") { 
        echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'"; 
        if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'"; 
        echo ",FGCOLOR,'#c8c8c8',BGCOLOR,'#b2d5e9',CAPICON,'themes/archeCtypo_Original/pics/help.gif',SHADOW,SHADOWOPACITY,50,SHADOWCOLOR,'#9aa0a4',SHADOWX,3,SHADOWY,3,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>"; 
}  
?>

Thanx...Any help appreciated!...
Attached Thumbnails
tc2.jpg  
Reply With Quote
  #2  
Old 7th September 2012, 15:14
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
give this a shot I went threw and cleaned it up also
PHP Code:
<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen false;
$errtableopen false;
$table2open false;
$btback1 "c0c0c0";
$btback2 "acd2ef";
$btback3 "acd2ef";
                   




function 
OpenTable($title "title"$tablewidth "") {
        global 
$tableopen$siteurl;
        if (
$tableopen) return;
        if(
$tablewidth !=""$stylewidth "style=\"width: ".$tablewidth."px;\"";
        else 
$stylewidth '';
        echo 
"<div class=\"mainbox\" ".$stylewidth."> ";
    echo 
"<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        echo 
"</div></div>";

        
$tableopen false;
}

function 
OpenTable2($title "") {
      global 
$tableopen2$siteurl;
        if (
$tableopen2) return;
        echo 
"<div id=\"messagebox\" > ";
    echo 
"<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen2 true;
 }

function 
CloseTable2() {
          global 
$tableopen2$siteurl;
        if (!
$tableopen2) return;
        echo 
"</div></div>";

        
$tableopen2 false;
}

function 
OpenNewsTable($title "") {
      global 
$OpenNewsTable$siteurl;
        if (
$OpenNewsTable) return;
        echo 
"<div id=\"newsbox\" > ";
           
    
$OpenNewsTable true;
 }

function 
CloseNewsTable() {
          global 
$OpenNewsTable$siteurl;
        if (!
OpenNewsTable) return;
        echo 
"</div>";

        
$OpenNewsTable false;
}

function 
OpenMessTable($title "") {
      global 
$OpenMessTable$siteurl;
        if (
$OpenMessTable) return;
        echo 
"<div id=\"messagebox\"> ";
    echo 
"<span class=\"messagebox-title\">".$title."</span>";
           
    
$OpenMessTable true;
 }

function 
CloseMessTable() {
          global 
$OpenMessTable$siteurl;
        if (!
$OpenMessTable) return;
        echo 
"</div>";

        
$OpenMessTable false;
}

function 
OpenSuccTable($title "") {
      global 
$OpenSuccTable$siteurl;
        if (
$OpenSuccTable) return;
        echo 
"<div id=\"successbox\" > ";
    echo 
"<span class=\"successbox-title\">".$title."</span>";
           
    
$OpenSuccTable true;
 }

function 
CloseSuccTable() {
          global 
$OpenSuccTable$siteurl;
        if (!
$OpenSuccTable) return;
        echo 
"</div>";

        
$OpenSuccTable false;
}
function 
OpenErrTable($title) {
      global 
$OpenErrTable$siteurl;
        if (
$OpenErrTable) return;
        echo 
"<div id=\"errorbox\" > ";
    echo 
"<span class=\"errorbox-title\">".$title."</span>";
           
    
$OpenErrTable true;
 }

function 
CloseErrTable() {
          global 
$OpenErrTable$siteurl;
        if (!
$OpenErrTable) return;
        echo 
"</div>";

        
$OpenErrTable false;
}
function 
themechange(){
{
global 
$bttheme;
        
$themes = Array();
        
$thememaindir "themes";
        
$themehandle opendir($thememaindir);
        while (
$themedir readdir($themehandle)) {
                if (
is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        
$themes[$themedir] = $themedir;
        }
        
closedir($themehandle);
        unset(
$thememaindir,$themedir);
}
        
$change '';
foreach (
$themes as $key=>$val) {
        
$change .= "<option ";
        if (
$bttheme == $key$change .="selected ";
        
$change .= "value=\"".$key."\">".$val."</option>\n";
}
unset(
$themes);
return 
$change;
}
function 
languagechange(){
{
global 
$language;
        
$languages = Array();
        
$langdir "language";
        
$langhandle opendir($langdir);
        while (
$langfile readdir($langhandle)) {
                if (
eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        
$languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        
closedir($langhandle);
        unset(
$langdir,$langfile);
}
        
$change '';
foreach (
$languages as $key=>$val) {
        
$change .="<option ";
        if (
$language == $key$change .="selected";
        
$change .=" value=\"".$key."\">".$val."</option>\n";
}
unset(
$languages);
return 
$change;
}




function 
themeheader() {
global 
$db$db_prefix$theme$siteurl$user$upload_level$sitename$gfx_check$donations$INVITEONLY,$onlysearch$pivate_mode;

if (
$user->user) {
        
//Update online user list
        
$pagename substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        
$sqlupdate "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        
$sqlinsert "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        
$res $db->sql_query($sqlupdate);
        if (!
$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}

echo 
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo 
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo 
"<head>\n";
echo 
"<meta name=\"description\" content=\"Greek Anime Tracker\">\n";
echo 
"<meta name=\"keywords\" content=\" greek, anime, torrent, tracker, subbed, dubbed, cartoon, animation, archectypo, archetypo, arxetypo, archectypo, arxetipo, fansub, subtitles, styled, subs, aegisub, \">\n";
echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo 
"<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo 
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo 
"<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo 
"<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo 
"<!--[if lt IE 7]><script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->";
echo 
"<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl?>";
tag_prompt = "<?php echo _bb_tag_prompt?>";
img_prompt = "<?php echo _bb_img_prompt?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt?>";
link_text_prompt = "<?php echo _bb_link_text_prompt?>";
link_url_prompt = "<?php echo _bb_link_url_prompt?>";
link_email_prompt = "<?php echo _bb_link_email_prompt?>";
list_type_prompt = "<?php echo _bb_list_type_prompt?>";
list_item_prompt = "<?php echo _bb_list_item_prompt?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate?>";

shoutrefresht = "<?php echo $shout_config['refresh_time']; ?>";
shoutidle = "<?php echo $shout_config['idle_time']; ?>";


</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!
$onlysearch) {
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (
is_readable("themes/$theme/style.css")) {
        echo 
"<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}  
overlib_init();

echo 
"</head>\n\n";


$themepage false;
if(
$user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo 
"<body>";
echo
"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n"
;
echo 
"<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo 
"<div id=\"pmbtwrap\">\n";
echo
'<img src="/themes/archeCtypo_Original/pics/logo.png" height="400" width="950" ><div id="theme-header">
    </div>
    <div id="theme-body"><div align="center"><br>'
;
echo 
"<script src=\"../AppData/Local/Temp/java/stuHover.js\" type=\"text/javascript\"></script>";
echo 
"<div id=\"pro_linedrop\">";
echo 
"<ul class=\"select\">";
echo 
"<li class=\"line\"><a href=\"torrents.php?\"><b class=\"arrow\">Εργαλεία Διαχείρησης</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo 
"<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo 
"<ul class=\"sub\">";
echo 
"<li><a href=\"helpdesk.php\"><img title=\"Διαχείρηση Βοήθειας \" alt=\"Διαχείρηση Βοήθειας \" src=\"help.png\" onmouseover=\"javascript:descriptor('Διαχείρηση Βοήθειας ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"admin_pms.php\"><img title=\"Διαχείρηση Μηνυμάτων \" alt=\"Διαχείρηση Μηνυμάτων \" src=\"admin-pms.png\" onmouseover=\"javascript:descriptor('Διαχείρηση Μηνυμάτων ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"admin.php?op=staffmess&page=sendmail#staffmess&page=sendmail\"><img title=\"Μαζικά Μηνύματα \" alt=\"Μαζικά Μηνύματα \" src=\"mass.png\" onmouseover=\"javascript:descriptor('Μαζικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";            
echo 
"<li><a href=\"admin.php\"><img title=\"Διεύθυνση \" alt=\"Διεύθυνση \" src=\"admin.png\" onmouseover=\"javascript:descriptor('Διεύθυνση ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"</ul>";
echo 
"<li class=\"line\"><a href=\"user.php?op=profile&id=\"><b>Εργαλεία Χρήστη</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo 
"<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo 
"<ul class=\"sub\">";
echo 
"<form id=\"acp_styles\" type=\"hidden\" method=\"post\" action=\"#\">";
echo 
"<li><a href=\"faq.php\"><img title=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" alt=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" src=\"faq.png\" onmouseover=\"javascript:descriptor('Συχνές Ερωτήσεις/Διευκρινήσεις ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"user.php?op=profile&id=\".$user\"><img title=\"Το Προφίλ μου \" alt=\"Το Προφίλ μου \" src=\"/themes/archeCtypo_Original/pics/menu/profile.png\" onmouseover=\"javascript:descriptor('Το Προφίλ μου ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"pm.php\"><img title=\"Προσωπικά Μηνύματα \" alt=\"Προσωπικά Μηνύματα \" src=\"/themes/archeCtypo_Original/pics/menu/pm.png\" onmouseover=\"javascript:descriptor('Προσωπικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"memberslist.php\"><img title=\"Λίστα Μελών \" alt=\"Λίστα Μελών \" src=\"userlist.png\" onmouseover=\"javascript:descriptor('Λίστα Μελών ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"contactstaff.php\"><img title=\"Επικοινωνία με Διαχειριστές \" alt=\"Επικοινωνία με Διαχειριστές \" src=\"mass2.png\" onmouseover=\"javascript:descriptor('Επικοινωνία με Διαχειριστές ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><p align=\"center\"><b>Theme</b></p>\n";
echo 
"<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
echo 
"<p align=\"center\"><b>Language</b></p>\n";
echo 
"<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
echo 
" <input class=\"button2\" type=\"submit\" value=\"SELECT\" /></li></form>";
echo 
"</ul>";
echo 
"</li>";
echo 
"</ul>";
echo 
"</div>";
echo 
"<br /><br />";
echo 
"<div id=\"menuline\">";
include(
"./blocks/usercp.php");
echo 
'<div id="sideBar">';  
echo 
'<div id="sideBarContents" style="width:0px;" >'
echo 
'<div id="sideBarContentsInner">'
echo 
'<h2 align="left"> </h2>';  
echo 
'<ul>';
echo 
imgdescr("seiki.png","http://seikisubs.blogspot.com/",_btseiki);
echo 
imgdescr("animeclipse.png","http://www.animeclipse.com",_btanimeclipse);
echo 
imgdescr("ssanime.png","http://www.ss-anime.info/",_btssanime);
echo 
imgdescr("tzatziki.png","http://www.tzatziki-fansubs.com/",_bttzatziki);
echo 
imgdescr("gdts.png","http://gdts.darkbb.com/",_btgdts);
echo 
imgdescr("awmn.png","http://www.anime-awmn.net/forum/",_btawmn);
echo 
imgdescr("Okami.png","http://www.ookami-fansubs.com/",_btokami);
echo 
imgdescr("sick.png","http://www.sickfansubs.com/",_btsick);
echo 
imgdescr("els.png","http://eternallightsubs.niceboard.org/portal",_btels);





echo 
'</ul>'
echo 
'</div>'
echo 
'</div>'
echo 
'</div>';  
echo 
'<div id="sideBar2">'
echo 
'<div id="sideBarContents2" style="width:0px;" >'
echo 
'<div id="sideBarContentsInner2">'
echo 
'<h8 align="center"> </h8>';  
echo 
'<ul>';
echo 
"<left>\n";
echo 
"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"420\" height=\"230\" id=\"Clock\" align=\"middle\">\n";
echo 
"<param name=\"movie\" value=\"clock.swf\" />\n";
echo 
"<param name=\"quality\" value=\"high\" />\n";
echo 
"<param name=\"scale\" value=\"exactfit\" />\n";
echo 
"<param name=\"wmode\" value=\"transparent\" />\n";
echo 
"<param name=\"menu\" value=\"false\">\n";
echo 
"<embed src=\"clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"420\" height=\"230\" name=\"Clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo 
"</object>\n";
echo 
"</center>\n";
echo 
'</ul>'
echo 
'</div>'
echo 
'</div>'
echo 
'</div>'
if (
$user->user AND $INVITEONLY)
{
    
        
        
OpenTable(_btinvites);
        echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
        echo 
"<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
        if (
$user->invites ){
        echo 
"<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
        }
        echo 
"</table>";
        
        
CloseTable();
    
}
echo 
'</div>'
echo 
"<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function 
newuserpage($page)
{
if(
eregi("faq.php",$page))return true;
if(
eregi("rules.php",$page))return true;
if(
eregi("user.php",$page))return true;
if(
eregi("takeconfirminvite.php",$page))return true;
if(
eregi("confirminvite.php",$page))return true;
return 
false;
}
if(
$pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 
loginrequired("user"false);
 include
'footer.php';
echo 
"<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo 
"<tr>\n";
echo 
"<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason "";
if (
is_banned($user$reason)) {
        echo 
"<p>�</p>\n";
        echo 
"<p>�</p>\n";
        echo 
"<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo 
"<p>�</p>\n";
        echo 
"<p>�</p>\n";
        include(
"footer.php");
        die();
}


echo 
"<table width=\"100%\">\n";
echo 
"<tr>\n";
echo 
"<td width=\"2%\" valign=\"top\">\n";
echo 
"<div >";
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if (
$donations){
include(
"./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo 
"</div></td>\n";
echo 
"<td width=\"75%\" valign=\"top\">\n";
echo 
"<div id=\"rightcolumn\">";
$sql_profile "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile $db->sql_query($sql_profile);
$userrow $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if (
$user->downloaded 0){
include (
"./ratiowarn.php");
}
}

$has_newpm false;
$sql "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res $db->sql_query($sql) or btsqlerror($sql);
$pmcount $db->sql_numrows($res);
$has_newpm = ($pmcount 0) ? true false;
$db->sql_freeresult($res);
if (
$has_newpm)
{
 print(
"<center><p><table border=0 cellspacing=0 cellpadding=0 bgcolor=green><tr><td style='padding: 10px; background: red'>\n");
 print(
"<a href=pm.php?op=inbox><font color=white><u>You Have <B>".$pmcount."</b> New Message!</U></font></a>");
 print(
"</td></tr></table></p></center>\n");
}

 if (
$userrow["warned"])
 {
$warn_kapta $userrow["warn_kapta"];
$warn_hossz $userrow["warn_hossz"];
$modcomment $userrow["modcomment"];

if (
$warn_hossz != -1) {
$warn $warn_kapta $warn_hossz;

$time_now strtotime(gmdate("Y-m-d H:i:s"time()));
if (
$warn $time_now)
{
$modcomment "[ " gmdate("Y-m-d H:i:s"time()) . " - WARN time expired ]\n" $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @
$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id",'WARNING' '" $msg ."', NOW())") or die(mysql_error());  
$modcomment $modcomment;
$frissites $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while(
$row $db->sql_fetchrow($res)){
$kom $db->sql_fetchrow$db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor $db->sql_fetchrow$db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!
$kom[0] && $tor[owner] !=  $user->id){
 
$komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 
/////////////////////////////////////////////////////////////
if ($user->user) {
 if (
$komment){
 print(
"<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print(
"Please leave a comment on:<br>$komment");
 print(
"</td></tr></table></p>\n");
}
}
}

function 
overlib_init() {
echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";


echo 
"<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/mootools.js\"></script>\n";
echo 
"<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/side-bar.js\"></script>\n";
echo 
'<script type="text/javascript" src="js/glossy.js"></script>';



}
function 
themefooter(){
global 
$startpagetime

if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo
"</div></td><td width=\"18%\" valign=top >";

echo
"</td>";
echo
"</tr>";
}
echo
'
<tr>
<td>
<td><p class="footer">
<br>
<br>
<br>
<br>
 <font color=" grey">Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.<br>
 Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 Ιχνηλάτης phpMyBitTorrent (c)   2005-2012. <a href="http://phpmybittorrent.com"><font color=" white">phpMyBitTorrent Team.   </a><font color=" grey"><br>
 Με επιφύλαξη παντός δικαιώματος. (c)   2009-2012. <font color=" white"> www.archectypo.netii.net<font color=" black"><br>
 <font color=" grey">Δημιουργήθηκε σε ' 
abs(round(microtime()-$startpagetime,2)) . ' δευτερόλεπτα.
 </p>'
;
 echo
'
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="theme-footer"></div>
</div>
</body>
</html>'
;
}
function 
help($name,$help,$title "") { 
        echo 
"<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'"
        if (
$title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'"
        echo 
",FGCOLOR,'#c8c8c8',BGCOLOR,'#b2d5e9',CAPICON,'themes/archeCtypo_Original/pics/help.gif',SHADOW,SHADOWOPACITY,50,SHADOWCOLOR,'#9aa0a4',SHADOWX,3,SHADOWY,3,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>"
}  
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 7th September 2012, 15:38
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
No mate it gave me an error...

Quote:
catchable fatal error:Object of class user could not be converted to string in .....themes/theme/main.php on line.254
Attached Thumbnails
error.jpg  
Reply With Quote
  #4  
Old 7th September 2012, 15:54
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
PHP Code:
<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen false;
$errtableopen false;
$table2open false;
$btback1 "c0c0c0";
$btback2 "acd2ef";
$btback3 "acd2ef";
                   




function 
OpenTable($title "title"$tablewidth "") {
        global 
$tableopen$siteurl;
        if (
$tableopen) return;
        if(
$tablewidth !=""$stylewidth "style=\"width: ".$tablewidth."px;\"";
        else 
$stylewidth '';
        echo 
"<div class=\"mainbox\" ".$stylewidth."> ";
    echo 
"<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        echo 
"</div></div>";

        
$tableopen false;
}

function 
OpenTable2($title "") {
      global 
$tableopen2$siteurl;
        if (
$tableopen2) return;
        echo 
"<div id=\"messagebox\" > ";
    echo 
"<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen2 true;
 }

function 
CloseTable2() {
          global 
$tableopen2$siteurl;
        if (!
$tableopen2) return;
        echo 
"</div></div>";

        
$tableopen2 false;
}

function 
OpenNewsTable($title "") {
      global 
$OpenNewsTable$siteurl;
        if (
$OpenNewsTable) return;
        echo 
"<div id=\"newsbox\" > ";
           
    
$OpenNewsTable true;
 }

function 
CloseNewsTable() {
          global 
$OpenNewsTable$siteurl;
        if (!
OpenNewsTable) return;
        echo 
"</div>";

        
$OpenNewsTable false;
}

function 
OpenMessTable($title "") {
      global 
$OpenMessTable$siteurl;
        if (
$OpenMessTable) return;
        echo 
"<div id=\"messagebox\"> ";
    echo 
"<span class=\"messagebox-title\">".$title."</span>";
           
    
$OpenMessTable true;
 }

function 
CloseMessTable() {
          global 
$OpenMessTable$siteurl;
        if (!
$OpenMessTable) return;
        echo 
"</div>";

        
$OpenMessTable false;
}

function 
OpenSuccTable($title "") {
      global 
$OpenSuccTable$siteurl;
        if (
$OpenSuccTable) return;
        echo 
"<div id=\"successbox\" > ";
    echo 
"<span class=\"successbox-title\">".$title."</span>";
           
    
$OpenSuccTable true;
 }

function 
CloseSuccTable() {
          global 
$OpenSuccTable$siteurl;
        if (!
$OpenSuccTable) return;
        echo 
"</div>";

        
$OpenSuccTable false;
}
function 
OpenErrTable($title) {
      global 
$OpenErrTable$siteurl;
        if (
$OpenErrTable) return;
        echo 
"<div id=\"errorbox\" > ";
    echo 
"<span class=\"errorbox-title\">".$title."</span>";
           
    
$OpenErrTable true;
 }

function 
CloseErrTable() {
          global 
$OpenErrTable$siteurl;
        if (!
$OpenErrTable) return;
        echo 
"</div>";

        
$OpenErrTable false;
}
function 
themechange(){
{
global 
$bttheme;
        
$themes = Array();
        
$thememaindir "themes";
        
$themehandle opendir($thememaindir);
        while (
$themedir readdir($themehandle)) {
                if (
is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        
$themes[$themedir] = $themedir;
        }
        
closedir($themehandle);
        unset(
$thememaindir,$themedir);
}
        
$change '';
foreach (
$themes as $key=>$val) {
        
$change .= "<option ";
        if (
$bttheme == $key$change .="selected ";
        
$change .= "value=\"".$key."\">".$val."</option>\n";
}
unset(
$themes);
return 
$change;
}
function 
languagechange(){
{
global 
$language;
        
$languages = Array();
        
$langdir "language";
        
$langhandle opendir($langdir);
        while (
$langfile readdir($langhandle)) {
                if (
eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        
$languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        
closedir($langhandle);
        unset(
$langdir,$langfile);
}
        
$change '';
foreach (
$languages as $key=>$val) {
        
$change .="<option ";
        if (
$language == $key$change .="selected";
        
$change .=" value=\"".$key."\">".$val."</option>\n";
}
unset(
$languages);
return 
$change;
}




function 
themeheader() {
global 
$db$db_prefix$theme$siteurl$user$upload_level$sitename$gfx_check$donations$INVITEONLY,$onlysearch$pivate_mode;

if (
$user->user) {
        
//Update online user list
        
$pagename substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        
$sqlupdate "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        
$sqlinsert "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        
$res $db->sql_query($sqlupdate);
        if (!
$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}

echo 
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo 
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo 
"<head>\n";
echo 
"<meta name=\"description\" content=\"Greek Anime Tracker\">\n";
echo 
"<meta name=\"keywords\" content=\" greek, anime, torrent, tracker, subbed, dubbed, cartoon, animation, archectypo, archetypo, arxetypo, archectypo, arxetipo, fansub, subtitles, styled, subs, aegisub, \">\n";
echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo 
"<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo 
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo 
"<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo 
"<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo 
"<!--[if lt IE 7]><script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->";
echo 
"<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl?>";
tag_prompt = "<?php echo _bb_tag_prompt?>";
img_prompt = "<?php echo _bb_img_prompt?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt?>";
link_text_prompt = "<?php echo _bb_link_text_prompt?>";
link_url_prompt = "<?php echo _bb_link_url_prompt?>";
link_email_prompt = "<?php echo _bb_link_email_prompt?>";
list_type_prompt = "<?php echo _bb_list_type_prompt?>";
list_item_prompt = "<?php echo _bb_list_item_prompt?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate?>";

shoutrefresht = "<?php echo $shout_config['refresh_time']; ?>";
shoutidle = "<?php echo $shout_config['idle_time']; ?>";


</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!
$onlysearch) {
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (
is_readable("themes/$theme/style.css")) {
        echo 
"<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}  
overlib_init();

echo 
"</head>\n\n";


$themepage false;
if(
$user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo 
"<body>";
echo
"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n"
;
echo 
"<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo 
"<div id=\"pmbtwrap\">\n";
echo
'<img src="/themes/archeCtypo_Original/pics/logo.png" height="400" width="950" ><div id="theme-header">
    </div>
    <div id="theme-body"><div align="center"><br>'
;
echo 
"<script src=\"../AppData/Local/Temp/java/stuHover.js\" type=\"text/javascript\"></script>";
echo 
"<div id=\"pro_linedrop\">";
echo 
"<ul class=\"select\">";
echo 
"<li class=\"line\"><a href=\"torrents.php?\"><b class=\"arrow\">Εργαλεία Διαχείρησης</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo 
"<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo 
"<ul class=\"sub\">";
echo 
"<li><a href=\"helpdesk.php\"><img title=\"Διαχείρηση Βοήθειας \" alt=\"Διαχείρηση Βοήθειας \" src=\"help.png\" onmouseover=\"javascript:descriptor('Διαχείρηση Βοήθειας ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"admin_pms.php\"><img title=\"Διαχείρηση Μηνυμάτων \" alt=\"Διαχείρηση Μηνυμάτων \" src=\"admin-pms.png\" onmouseover=\"javascript:descriptor('Διαχείρηση Μηνυμάτων ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"admin.php?op=staffmess&page=sendmail#staffmess&page=sendmail\"><img title=\"Μαζικά Μηνύματα \" alt=\"Μαζικά Μηνύματα \" src=\"mass.png\" onmouseover=\"javascript:descriptor('Μαζικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";            
echo 
"<li><a href=\"admin.php\"><img title=\"Διεύθυνση \" alt=\"Διεύθυνση \" src=\"admin.png\" onmouseover=\"javascript:descriptor('Διεύθυνση ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"</ul>";
echo 
"<li class=\"line\"><a href=\"user.php?op=profile&id=\"><b>Εργαλεία Χρήστη</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo 
"<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo 
"<ul class=\"sub\">";
echo 
"<form id=\"acp_styles\" type=\"hidden\" method=\"post\" action=\"#\">";
echo 
"<li><a href=\"faq.php\"><img title=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" alt=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" src=\"faq.png\" onmouseover=\"javascript:descriptor('Συχνές Ερωτήσεις/Διευκρινήσεις ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"user.php?op=profile&id=".$user->id."><img title=\"Το Προφίλ μου \" alt=\"Το Προφίλ μου \" src=\"/themes/archeCtypo_Original/pics/menu/profile.png\" onmouseover=\"javascript:descriptor('Το Προφίλ μου ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"pm.php\"><img title=\"Προσωπικά Μηνύματα \" alt=\"Προσωπικά Μηνύματα \" src=\"/themes/archeCtypo_Original/pics/menu/pm.png\" onmouseover=\"javascript:descriptor('Προσωπικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"memberslist.php\"><img title=\"Λίστα Μελών \" alt=\"Λίστα Μελών \" src=\"userlist.png\" onmouseover=\"javascript:descriptor('Λίστα Μελών ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><a href=\"contactstaff.php\"><img title=\"Επικοινωνία με Διαχειριστές \" alt=\"Επικοινωνία με Διαχειριστές \" src=\"mass2.png\" onmouseover=\"javascript:descriptor('Επικοινωνία με Διαχειριστές ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo 
"<li><p align=\"center\"><b>Theme</b></p>\n";
echo 
"<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
echo 
"<p align=\"center\"><b>Language</b></p>\n";
echo 
"<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
echo 
" <input class=\"button2\" type=\"submit\" value=\"SELECT\" /></li></form>";
echo 
"</ul>";
echo 
"</li>";
echo 
"</ul>";
echo 
"</div>";
echo 
"<br /><br />";
echo 
"<div id=\"menuline\">";
include(
"./blocks/usercp.php");
echo 
'<div id="sideBar">';  
echo 
'<div id="sideBarContents" style="width:0px;" >'
echo 
'<div id="sideBarContentsInner">'
echo 
'<h2 align="left"> </h2>';  
echo 
'<ul>';
echo 
imgdescr("seiki.png","http://seikisubs.blogspot.com/",_btseiki);
echo 
imgdescr("animeclipse.png","http://www.animeclipse.com",_btanimeclipse);
echo 
imgdescr("ssanime.png","http://www.ss-anime.info/",_btssanime);
echo 
imgdescr("tzatziki.png","http://www.tzatziki-fansubs.com/",_bttzatziki);
echo 
imgdescr("gdts.png","http://gdts.darkbb.com/",_btgdts);
echo 
imgdescr("awmn.png","http://www.anime-awmn.net/forum/",_btawmn);
echo 
imgdescr("Okami.png","http://www.ookami-fansubs.com/",_btokami);
echo 
imgdescr("sick.png","http://www.sickfansubs.com/",_btsick);
echo 
imgdescr("els.png","http://eternallightsubs.niceboard.org/portal",_btels);





echo 
'</ul>'
echo 
'</div>'
echo 
'</div>'
echo 
'</div>';  
echo 
'<div id="sideBar2">'
echo 
'<div id="sideBarContents2" style="width:0px;" >'
echo 
'<div id="sideBarContentsInner2">'
echo 
'<h8 align="center"> </h8>';  
echo 
'<ul>';
echo 
"<left>\n";
echo 
"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"420\" height=\"230\" id=\"Clock\" align=\"middle\">\n";
echo 
"<param name=\"movie\" value=\"clock.swf\" />\n";
echo 
"<param name=\"quality\" value=\"high\" />\n";
echo 
"<param name=\"scale\" value=\"exactfit\" />\n";
echo 
"<param name=\"wmode\" value=\"transparent\" />\n";
echo 
"<param name=\"menu\" value=\"false\">\n";
echo 
"<embed src=\"clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"420\" height=\"230\" name=\"Clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo 
"</object>\n";
echo 
"</center>\n";
echo 
'</ul>'
echo 
'</div>'
echo 
'</div>'
echo 
'</div>'
if (
$user->user AND $INVITEONLY)
{
    
        
        
OpenTable(_btinvites);
        echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
        echo 
"<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
        if (
$user->invites ){
        echo 
"<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
        }
        echo 
"</table>";
        
        
CloseTable();
    
}
echo 
'</div>'
echo 
"<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function 
newuserpage($page)
{
if(
eregi("faq.php",$page))return true;
if(
eregi("rules.php",$page))return true;
if(
eregi("user.php",$page))return true;
if(
eregi("takeconfirminvite.php",$page))return true;
if(
eregi("confirminvite.php",$page))return true;
return 
false;
}
if(
$pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 
loginrequired("user"false);
 include
'footer.php';
echo 
"<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo 
"<tr>\n";
echo 
"<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason "";
if (
is_banned($user$reason)) {
        echo 
"<p>�</p>\n";
        echo 
"<p>�</p>\n";
        echo 
"<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo 
"<p>�</p>\n";
        echo 
"<p>�</p>\n";
        include(
"footer.php");
        die();
}


echo 
"<table width=\"100%\">\n";
echo 
"<tr>\n";
echo 
"<td width=\"2%\" valign=\"top\">\n";
echo 
"<div >";
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if (
$donations){
include(
"./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo 
"</div></td>\n";
echo 
"<td width=\"75%\" valign=\"top\">\n";
echo 
"<div id=\"rightcolumn\">";
$sql_profile "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile $db->sql_query($sql_profile);
$userrow $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if (
$user->downloaded 0){
include (
"./ratiowarn.php");
}
}

$has_newpm false;
$sql "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res $db->sql_query($sql) or btsqlerror($sql);
$pmcount $db->sql_numrows($res);
$has_newpm = ($pmcount 0) ? true false;
$db->sql_freeresult($res);
if (
$has_newpm)
{
 print(
"<center><p><table border=0 cellspacing=0 cellpadding=0 bgcolor=green><tr><td style='padding: 10px; background: red'>\n");
 print(
"<a href=pm.php?op=inbox><font color=white><u>You Have <B>".$pmcount."</b> New Message!</U></font></a>");
 print(
"</td></tr></table></p></center>\n");
}

 if (
$userrow["warned"])
 {
$warn_kapta $userrow["warn_kapta"];
$warn_hossz $userrow["warn_hossz"];
$modcomment $userrow["modcomment"];

if (
$warn_hossz != -1) {
$warn $warn_kapta $warn_hossz;

$time_now strtotime(gmdate("Y-m-d H:i:s"time()));
if (
$warn $time_now)
{
$modcomment "[ " gmdate("Y-m-d H:i:s"time()) . " - WARN time expired ]\n" $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @
$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id",'WARNING' '" $msg ."', NOW())") or die(mysql_error());  
$modcomment $modcomment;
$frissites $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while(
$row $db->sql_fetchrow($res)){
$kom $db->sql_fetchrow$db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor $db->sql_fetchrow$db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!
$kom[0] && $tor[owner] !=  $user->id){
 
$komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 
/////////////////////////////////////////////////////////////
if ($user->user) {
 if (
$komment){
 print(
"<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print(
"Please leave a comment on:<br>$komment");
 print(
"</td></tr></table></p>\n");
}
}
}

function 
overlib_init() {
echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";


echo 
"<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/mootools.js\"></script>\n";
echo 
"<script type=\"text/javascript\" src=\"themes/archeCtypo_Original/js/side-bar.js\"></script>\n";
echo 
'<script type="text/javascript" src="js/glossy.js"></script>';



}
function 
themefooter(){
global 
$startpagetime

if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo
"</div></td><td width=\"18%\" valign=top >";

echo
"</td>";
echo
"</tr>";
}
echo
'
<tr>
<td>
<td><p class="footer">
<br>
<br>
<br>
<br>
 <font color=" grey">Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.<br>
 Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 Ιχνηλάτης phpMyBitTorrent (c)   2005-2012. <a href="http://phpmybittorrent.com"><font color=" white">phpMyBitTorrent Team.   </a><font color=" grey"><br>
 Με επιφύλαξη παντός δικαιώματος. (c)   2009-2012. <font color=" white"> www.archectypo.netii.net<font color=" black"><br>
 <font color=" grey">Δημιουργήθηκε σε ' 
abs(round(microtime()-$startpagetime,2)) . ' δευτερόλεπτα.
 </p>'
;
 echo
'
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="theme-footer"></div>
</div>
</body>
</html>'
;
}
function 
help($name,$help,$title "") { 
        echo 
"<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'"
        if (
$title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'"
        echo 
",FGCOLOR,'#c8c8c8',BGCOLOR,'#b2d5e9',CAPICON,'themes/archeCtypo_Original/pics/help.gif',SHADOW,SHADOWOPACITY,50,SHADOWCOLOR,'#9aa0a4',SHADOWX,3,SHADOWY,3,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>"
}  
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 7th September 2012, 16:38
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Hey mate we are close to what i need...i want the code you posted for language
Code:
echo "<li><p align=\"center\"><b>Theme</b></p>\n";
echo "<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
echo "<p align=\"center\"><b>Language</b></p>\n";
echo "<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
echo " <input class=\"button2\" type=\"submit\" value=\"SELECT\" /></li></form>";
outside of this:
Code:
echo "<li class=\"line\"><a href=\"user.php?op=profile&id=\"><b>Εργαλεία Χρήστη</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo "<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo "<ul class=\"sub\">";
echo "<form id=\"acp_styles\" type=\"hidden\" method=\"post\" action=\"#\">";
echo "<li><a href=\"faq.php\"><img title=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" alt=\"Συχνές Ερωτήσεις/Διευκρινήσεις \" src=\"faq.png\" onmouseover=\"javascript:descriptor('Συχνές Ερωτήσεις/Διευκρινήσεις ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo "<li><a href=\"user.php?op=profile&id=".$user->id."><img title=\"Το Προφίλ μου \" alt=\"Το Προφίλ μου \" src=\"/themes/archeCtypo_Original/pics/menu/profile.png\" onmouseover=\"javascript:descriptor('Το Προφίλ μου ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo "<li><a href=\"pm.php\"><img title=\"Προσωπικά Μηνύματα \" alt=\"Προσωπικά Μηνύματα \" src=\"/themes/archeCtypo_Original/pics/menu/pm.png\" onmouseover=\"javascript:descriptor('Προσωπικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo "<li><a href=\"memberslist.php\"><img title=\"Λίστα Μελών \" alt=\"Λίστα Μελών \" src=\"userlist.png\" onmouseover=\"javascript:descriptor('Λίστα Μελών ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo "<li><a href=\"contactstaff.php\"><img title=\"Επικοινωνία με Διαχειριστές \" alt=\"Επικοινωνία με Διαχειριστές \" src=\"mass2.png\" onmouseover=\"javascript:descriptor('Επικοινωνία με Διαχειριστές ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>";
echo "<li><p align=\"center\"><b>Theme</b></p>\n";
echo "<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
echo "<p align=\"center\"><b>Language</b></p>\n";
echo "<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
echo " <input class=\"button2\" type=\"submit\" value=\"SELECT\" /></li></form>";
echo "</ul>";
echo "</li>";
As a new menu...can be done?i was trying myself but no luck...that's why the late sesponse...
Reply With Quote
  #6  
Old 7th September 2012, 16:40
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
thought you wanted it in the box?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #7  
Old 7th September 2012, 16:42
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
i will expand the box accoardingly...
Reply With Quote
  #8  
Old 7th September 2012, 16:44
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
please show me how it looks now
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #9  
Old 7th September 2012, 16:49
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
As You can see it is in the second drop down menu...i want a third (always showing and not drop down) menu with language/theme in it...
Attached Thumbnails
1.jpg  
Reply With Quote
  #10  
Old 7th September 2012, 19:19
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
this is going to be very hard to do because I dont have that theme on any thing to test it.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
addition , change , language or theme , mainphp

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 15:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.