Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 6th February 2011, 14:15
lateam's Avatar
lateam lateam is offline
Senior Member
 
Join Date: Apr 2009
France
Posts: 40
Default [TSSE 5.6] quick access plugin
PHP Code:
<?php

/*İİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİ
İ       quick access plugin by lateam & claude33   İ             
İİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİİ*/


if (!defined('TS_P_VERSION'))

{

    
define('TS_P_VERSION''1.1 by xam');

}

// Security Check.

if (!defined('IN_PLUGIN_SYSTEM'))

{

     die(
"<font face='verdana' size='2' color='darkred'><b>Erreur!</b> L'acces directe a cette page n'est pas autorisé.</font>");

}



// BEGIN Plugin: Login

if (!$CURUSER)

{

    
$lang->load('login');

    require(
INC_PATH.'/class_page_check.php');

    
$newpage = new page_verify();

    
$newpage->create('login');

    
$username = (!empty($_COOKIE['ts_username']) ? htmlspecialchars_uni($_COOKIE['ts_username']) : '');    

    
$image '<img src="' $BASEURL '/include/class_user_title.php?str=' base64_encode ($user['title']) . '&png=' base64_encode ($png) . '" border="0" alt= "" title ="" />';

    
$loginbox '

    <form method="post" action="takelogin.php">

    '
.$lang->login['username'].'<br /><input type="text" size="20" name="username" class="inputUsernameLoginbox" value="'.$username.'" /><br />

    '
.$lang->login['password'].'<br /><input type="password" size="20" name="password" class="inputPasswordLoginbox" value="" /><br />';



    if (
$securelogin == "yes"$sec "checked=\"checked\" disabled=\"disabled\" /";

    elseif (
$securelogin == "no"$sec "disabled=\"disabled\" /";

    elseif (
$securelogin == "op"$sec " /";

    if (
$iv == "reCAPTCHA")

    {

        include_once(
INC_PATH.'/recaptchalib.php');

        
$loginbox .= '

        <script type="text/javascript">

            var RecaptchaOptions = {

                theme : "'
.$reCAPTCHATheme.'",

                lang : "'
.$reCAPTCHALanguage.'"

                };

        </script>

        '
.$lang->global['secimage'].'<br />

        '
.recaptcha_get_html($reCAPTCHAPublickeyNULL);

    }

    elseif (
$iv == 'yes')

    {

        unset(
$_SESSION['security_code']);

        
$loginbox .= '

        <script type="text/javascript" src="'
.$BASEURL.'/scripts/reload_image.js"></script>

        '
.$lang->global['secimage'].'<br />

        <table>

            <tr>

                <td rowspan="2" class="none"><img src="'
.$BASEURL.'/include/class_tscaptcha.php?width=132&amp;height=50" id="regimage" border="0" alt="" /></td>

                <td class="none"><img src="'
.$BASEURL.'/'.$pic_base_url.'listen.gif" border="0" style="cursor:pointer" onclick="return ts_open_popup(\''.$BASEURL.'/listen.php\', 400, 120);" alt="'.$lang->global['seclisten'].'" title="'.$lang->global['seclisten'].'" /></td>

            </tr>

            <tr>

                <td class="none"><img src="'
.$BASEURL.'/'.$pic_base_url.'reload.gif" border="0" style="cursor:pointer" onclick="javascript:reload()" alt="'.$lang->global['secimagehint'].'" title="'.$lang->global['secimagehint'].'" /></td>

            </tr>

        </table>

        '
.$lang->global['seccode'].'<br />

        <input type="text" size="20" name="security_code" class="inputPasswordLoginbox" value="" />'
;

    }



    
$loginbox .= '

    <input type="checkbox" class="none" name="logout" style="vertical-align: middle;" value="yes" />'
.$lang->login['logout15'].' <br />

    <input type="checkbox" class="none" name="logintype" style="vertical-align: middle;" value="yes" '
.$sec.'>'.$lang->login['securelogin'].'<br />

    <input type="submit" value="'
.$lang->login['login'].'" /> <input type="reset" value="'.$lang->login['reset'].'" />

    </form>

    '
;

}

else

{

$UserInfo = array ('username' => get_user_color ($CURUSER['username'], $CURUSER['namestyle']), 'title' => get_user_color($CURUSER['title'], $CURUSER['namestyle']), 'joindate' => my_datee ($regdateformat$CURUSER['added']), 'lastaccess' => my_datee ($dateformat$CURUSER['last_access']) . ' ' my_datee ($timeformat$CURUSER['last_access']), 'page' => (($IsStaff OR $SameUser) ? $CURUSER['page'] : $lang->userdetails['hidden']));

  switch (
$CURUSER['usergroup'])

  {

    case 
0:

    {

    }



    case 
1:

    {

    }



    case 
2:

    {

      
$png 'rank_full_blank';

      break;

    }



    default:

    {

      
$png 'rank_star_blank';

      break;

    }

  }

 include_once(
INC_PATH.'/functions_ratio.php'); 

  if (
$CURUSER['downloaded'])

  {

    
$sr $CURUSER['uploaded'] / $CURUSER['downloaded'];

    if (
<= $sr)

    {

      
$s 'w00t';

    }

    else

    {

      if (
<= $sr)

      {

        
$s 'grin';

      }

      else

      {

        if (
<= $sr)

        {

          
$s 'smile1';

        }

        else

        {

          if (
0.5 <= $sr)

          {

            
$s 'noexpression';

          }

          else

          {

            if (
0.25 <= $sr)

            {

              
$s 'sad';

            }

            else

            {

              
$s 'cry';

            }

          }

        }

      }

    }



    
$ratioimage ' <img src="' $BASEURL '/' $pic_base_url 'smilies/' $s '.giz" border="0" alt="" title="" class="inlineimg" />';

  }

 require_once(
INC_PATH.'/functions_mkprettytime.php');



    
$query sql_query("SELECT COUNT(t.id) as total_torrents FROM torrents t WHERE t.banned = 'no' AND t.owner = ".sqlesc($CURUSER['id'])." LIMIT 1");
    
$totaltcount mysql_result($query0'total_torrents');

    
$query sql_query("SELECT COUNT(t.id) as total_weak_torrents FROM torrents t WHERE t.banned = 'no' AND t.owner = ".sqlesc($CURUSER['id'])." AND (t.visible = 'no' OR (t.leechers > 0 AND t.seeders = 0) OR (t.leechers = 0 AND t.seeders = 0)) LIMIT 1");
    
$totalwcount mysql_result($query0'total_weak_torrents');

    
$query sql_query ('SELECT COUNT(r.id) as total_parrainage FROM referrals r WHERE r.uid = '.sqlesc($CURUSER['id']).'' );
    
$total_parrainage mysql_result($query0'total_parrainage');

    
$query sql_query ('SELECT COUNT(f.id) as total_friends FROM friends f WHERE f.userid = '.sqlesc($CURUSER['id']).'');
    
$total_friends mysql_result($query0'total_friends');

    
$query sql_query ("SELECT COUNT(p.id) as total_seed FROM peers p WHERE p.seeder = 'yes' AND p.userid = ".sqlesc($CURUSER['id'])." LIMIT 1");
    
$total_seed mysql_result($query0'total_seed');

    
$query sql_query ("SELECT COUNT(p.id) as total_leech FROM peers p WHERE p.seeder = 'no' AND p.userid = ".sqlesc($CURUSER['id'])." LIMIT 1");
    
$total_leech mysql_result($query0'total_leech');

    
$query sql_query ("SELECT u.total_donated as total_don FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE u.enabled = 'yes' AND u.donor = 'yes' AND u.id = ".sqlesc($CURUSER['id'])." LIMIT 1");
    
$total_don mysql_result($query0'total_don');


  
$image_hash $_SESSION['image_hash'] = md5 ($CURUSER['id'] . $CURUSER['username'] . $securehash);

  
$image '<img src="' $BASEURL '/include/class_user_title.php?str=' base64_encode ($usergroups['title'])  . '&png=' base64_encode ($png) . '" border="0" alt= "" title ="" />';

    
$ratio get_user_ratio($CURUSER['uploaded']/$CURUSER['downloaded'],true);

    
$ratio '<font color="' get_ratio_color '">' $ratio $ratioimage '</font>';

    if (
$CURUSER['donor'] == 'yes')

            
$medaldon '<img src="'.$BASEURL.'/'.$pic_base_url.'star.gif" alt="'.$lang->global['imgdonated'].'" title="'.$lang->global['imgdonated'].'" class="inlineimg" />';

        if (
$CURUSER['warned'] == 'yes' OR $CURUSER['leechwarn'] == 'yes')

            
$warn '<img src="'.$BASEURL.'/'.$pic_base_url.'warned.gif" alt="'.$lang->global['imgwarned'].'" title="'.$lang->global['imgwarned'].'" class="inlineimg" />';

    
$loginbox '<table border="0" width="100%" height="150">



   <tr>
<a href="http://twitter.com/#!/lateamcc" title="Notre page twiter" target="_blank"><img src="http://www.journaldupirate.com/wp-content/uploads/Twitter.png" alt="Twitter" title="Notre page twiter"> Twitter</a>
    <td class="none" align="center" width="125" rowspan="5" height="125">'
.get_user_avatar($CURUSER['avatar']).'</td>
    <td width="85%" height="15" colspan="3" >
      <p align="center"><strong>'
.$lang->global['welcomeback'].'</strong><a href="'.ts_seo($CURUSER['id'],  $CURUSER['username']).'">'.get_user_color($CURUSER['username'],$usergroups['namestyle']).'</a> '.(isset($medaldon) ?  $medaldon '').'  '.(isset($warn) ? $warn '').'<br /><iframe src="'.$BASEURL.'/cl.html" frameborder="0" scrolling="no" align="center" style="width: 100%; height:  15px;"></iframe>
      </p>
    </td>
  </tr>
  <tr>
    <td width="300" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/ip.png" width="20" height="20">IP:</strong> ('.$CURUSER['ip'].')</td>
    <td width="276" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/up.png" width="20" height="20">En partage</strong> ('.$total_seed.')</td>
    <td width="263" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/jvod.png" width="20" height="20">'.$lang->global['jeton'].' </strong><font color="red">('.$CURUSER  ['droits_film'].')</font></td>

  </tr>

  <tr>
    <td width="300" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/last.png" width="20" height="20">'.sprintf($lang->index['llogin'] , my_datee($dateformat$CURUSER['last_login']).'</strong>  '.my_datee($timeformat$CURUSER['last_login'])).'</td>
    <td width="276" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/dl.png" width="20" height="20">En
      reception </strong>('
.$total_leech.')</td>
    <td width="263" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/jddl.png" width="20" height="20">'.$lang->global['jetons'].' </strong><font color="red">('.$CURUSER['droits_ddl'].') </font></td>
  </tr>

  <tr>
    <td width="300" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/ratio.png" width="20" height="20">'.$lang->global['ratio'].'</strong> '.$ratio.'</td>
    <td width="276" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/mes_torrents.png" width="20" height="20"><a href="'.$BASEURL.'/browse.php?special_search=mytorrents">Mestorrents:</a>
      </strong><a href="'
.$BASEURL.'/browse.php?special_search=mytorrents">('.$totaltcount.')</a></td>
    <td class=tools width="263" height="15"><a href="' 
$BASEURL '/invite.php"><img border="0" src="'.$BASEURL.'/info/invitation.png" width="20" height="20">'.$lang->userdetails['usertools2'].' Invitations: </a>('.ts_nf($CURUSER['invites']).')</td>
    
  </tr>

  <tr>
    <td width="300" height="15"><strong> <img border="0" src="'
.$BASEURL.'/info/upload.png" width="20" height="20"> '.maxslots().'<strong>'.$lang->global['uploaded'].'</strong> <font color="green">'mksize ($CURUSER['uploaded']).'</font></strong></td>
    <td width="276" height="15"><img border="0" src="'
.$BASEURL.'/info/reseed.png" width="20" height="20"><a href="'.$BASEURL.'/browse.php?special_search=myreseeds"><strong>Sans source :</strong>('$totalwcount.')</a></td>
    <td class=tools width="263" height="10"><a href="'
.$BASEURL.'/usercp.php"><img src="'.$BASEURL.'/info/profil.png" width="20" border="0" height="20" />Profil</a></td>
    
  </tr>

  <tr>
    <td class="none" align="left" height="15" width="253">
      <p align="center">'
.$image.'</p>
    </td>
    <td width="300" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/download.png" width="20" height="20">'.$lang->global['downloaded'].' </strong><font color="red">'.mksize($CURUSER ['downloaded']).'</font></td>
    <td width="276" height="15"><strong><img border="0" src="'
.$BASEURL.'/info/parrainage.png" width="22" height="20"><a href="'.$BASEURL.'/referrals.php">Parrainage :</a></strong><a href="'.$BASEURL.'/referrals.php">('.$total_parrainage.')</a></td>
    <td class=tools width="263" height="10"><a href="'
.$BASEURL.'/messages.php"><U><img src="'.$BASEURL.'/info/mp.png" width="20" border="0" height="20" /></U></a><strong><font color="blue"> 
      <a href="'
.$BASEURL.'/messages.php">'.sprintf($lang->index['unreadmessages'],  ts_nf($CURUSER['pmunread'] > ?  $CURUSER['pmunread'] : 0)).'</a></font></strong></td>
    
  </tr>
  <tr>
    <td width="253" height="1" align="center"><strong>Don total:</strong>'
.$total_don.'</td>
    <td width="300" height="1"><strong><img border="0" src="'
.$BASEURL.'/info/bonus.png" width="20" height="20">'.$lang->global['bonus'].' <font color="blue"><a href="'$BASEURL.'/mybonus.php">'.$CURUSER['seedbonus'].'</a> &nbsp;</font></strong></td>
    <td width="276" height="1"><strong><img border="0" src="'
.$BASEURL.'/info/amis.png" width="20" height="20"><a href="'.$BASEURL.'/friends.php">Mes ami(e)s :</a></strong><a href="'.$BASEURL.'/friends.php">('.$total_friends.')</a></td>
    
    <td class=tools width="263" height="1" rowspan="3"><a href="'
.$BASEURL.'/logout.php"><img border="0" src="'.$BASEURL.'/info/quiter.png" width="20" height="20">Quitter</a></td>
  </tr>






</table>'
;



// END Plugin: Login

}

?>
upload pic root/info

Click image for larger version

Name:	Capture.jpg
Views:	767
Size:	159.3 KB
ID:	2733
Attached Files
File Type: gz info.tar.gz (869.2 KB, 192 views)
Reply With Quote
The Following 8 Users Say Thank You to lateam For This Useful Post:
aMiGo1972 (7th February 2011), Danix (7th February 2011), eckeO5 (16th March 2011), FENIX (25th January 2013), Fynnon (6th February 2011), Marco (7th February 2011), Omenke (6th February 2011), PAX (3rd August 2011)
  #2  
Old 7th February 2011, 12:07
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default re: quick access
sorry guys but on my tracker didn't show anything...

i am using ts 5.6 Nightcrawler version (without jettons mod installed)

but i believe is very useful and i want it too :D
Reply With Quote
  #3  
Old 12th February 2011, 10:20
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default Re: quick acess plugin
Hello!

I just did not go but nothing comes out of the frame is not displayed.
I also use jetons without exceeding 5.6, but I think it is not affected.
Reply With Quote
  #4  
Old 12th February 2011, 12:18
balu45's Avatar
balu45 balu45 is offline
Member
 
Join Date: Sep 2010
Hungary
Posts: 8
Default
edit --> include/plugins/loginbox.php

find

PHP Code:
?> 
add after PHP Code


Click image for larger version

Name:	0000.PNG
Views:	207
Size:	60.7 KB
ID:	2738
Reply With Quote
The Following User Says Thank You to balu45 For This Useful Post:
Marco (23rd February 2011)
  #5  
Old 28th February 2011, 17:02
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
Hello


what you have here
Code:
<iframe src="'.$BASEURL.'/cl.html" frameborder="0" scrolling="no" align="center" style="width: 100%; height: 15px;"></iframe>
because i don't have anything on my root cl.html ?
nice mod
Reply With Quote
  #6  
Old 25th September 2011, 03:01
Claude33 Claude33 is offline
Member
 
Join Date: Dec 2009
Canada
Posts: 2
Default The cl.html file
hi Marco

OK the "cl.html" file is only dysplay at the top of the block.
it's consist to tell your user, the god greting depend of the time off the day.

I will include the file but the greting are in french.

I hope that answer your question.
Attached Files
File Type: html cl.html (3.5 KB, 51 views)
Reply With Quote
  #7  
Old 26th September 2011, 07:37
Calipso Calipso is offline
Banned
 
Join Date: May 2011
Norway
Posts: 30
Default DELETE
How is it possible to delete this inscription?
Reply With Quote
  #8  
Old 3rd March 2014, 00:04
miralsplet's Avatar
miralsplet miralsplet is offline
Senior Member
 
Join Date: Nov 2013
P2P
Posts: 36
Default the name
The name of php file that we can insert the code?
Reply With Quote
  #9  
Old 1st November 2014, 05:10
viper375 viper375 is offline
Member
 
Join Date: Oct 2014
Posts: 2
Default
Quote:
Originally Posted by miralsplet View Post
The name of php file that we can insert the code?
You put replace the login plugin with this one
Reply With Quote
  #10  
Old 11th December 2014, 21:48
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Thumbs up
@CL

REMOVE WHAT YOU HAVE

Now add this

PHP Code:
<html><head>
<
meta http-equiv="refresh content=60">

</
head><body class="none" style="color: #FF8040; font-size: 8pt; font-weight: bold; font-family: Verdana; height: 0px; margin-bottom: 0px; margin-top: 0px; padding-top: 0px; text-align: center;">
      <
script type="text/javascript">

<!-- 
Script par Deoxys pour l'EJS

var date_statement="";
var time_statement="";
var today=new Date();
var month="";
var day="";
function todays_date() {
var month=today.getMonth();
var day_of_week=today.getDay();
date_statement=""
document.month=""
month++; // Entre 1 et 12 ^^
if(month==1) {
january(today.getDate());
document.month="January";
}
if(month==2) {
february(today.getDate());
document.month="February";
}
if(month==3) {
march(today.getDate());
document.month="March";
}
if(month==4) {
april(today.getDate());
document.month="April";
}
if(month==5) {
may(today.getDate());
document.month="May";
}
if(month==6) {
june(today.getDate());
document.month="June";
}
if(month==7) {
july(today.getDate());
document.month="July";
}
if(month==8) {
august(today.getDate());
document.month="Auguest";
}
if(month==9) {
september(today.getDate());
document.month="september";
}
if(month==10) {
october(today.getDate());
document.month="October";
}
if(month==11) {
november(today.getDate());
document.month="November";
}
if(month==12) {
december(today.getDate());
document.month="December";
}
document.day=""
if(day_of_week==0)
document.day="Sunday";
if(day_of_week==1)
document.day="Monday";
if(day_of_week==2)
document.day="Tuesday";
if(day_of_week==3)
document.day="Wednesday";
if(day_of_week==4)
document.day="Thursday";
if(day_of_week==5)
document.day="Friday";
if(day_of_week==6)
document.day="Saturday";
}
function january(date) {
if(date==1)
date_statement="best wishes";
}
function february(date) {
if(date==14)
date_statement="Happy Valentine'
s Day";
}
function march(date) {
if(date==1)
date_statement="";
}
function april(date) {
if(date==1)
date_statement="
Prepare your fish";
}
function may(date) {
if(date==1)
date_statement="
Labour Day";
if(date==21)
date_statement="
test";
}
function june(date) {
if(date==21)
date_statement="
Good music festival";
if(date==24)
date_statement="
Happy Birthday Quebec";
}
function july(date) {
if(date==1)
date_statement="
Happy Birthday Canada";
if(date==14)
date_statement="
Happy Birthday French";
}
function august(date) {
if(date==1)
date_statement="";
}
function september(date) {
if(date==11)
date_statement+="
1 minute of silence for the 2001 attacks";
}
function october(date) {
if(date==31)
date_statement="
Good Halloween";
}
function november(date) {
if(date==11)
date_statement="
Remembrance Day";
}
function december(date) {
if(date==25)
date_statement="
And Merry Christmas";
if(date==31)
date_statement="
Eve and Good";
}

function time_of_day() {
var time=today.getHours();
time_statement=""
if(time>=6 && time<8)
time_statement="
Good Awakening"
if(time>=8 && time<12)
time_statement="
Good morning"
if(time>=12 && time<13)
time_statement="
Enjoy your meal"
if(time>=13 && time<17)
time_statement="
Good afternoon"
if(time>=17 && time<18)
time_statement="
Enjoy the rest of the afternoon"
if(time>=18 && time<23)
time_statement="
Good evening"
if(time>=23 || time<6)
time_statement="
Good night"
}

time_of_day();
todays_date();
document.writeln(" "+time_statement+"
we are on the "+document.day+" "+today.getDate()+" "+document.month+" "+date_statement+".")

// -- Fin du script -->
</script> 
<noscript><a href="
http://www.editeurjavascript.com/mycircle/">link exchange</a></noscript>



</body></html

Now ENG LANG
Reply With Quote
Reply

Tags
56 , access , plugin , quick , tsse

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