Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

just use both codes posted for admincp, one showup full hnr torrents details, one by one, and the other offer great delete buttons  :)

make 2 links, as example :  action=hnr_details, and the other action=hnr_remover  :)  quite simple with those 2 admin option, those great coders posted  ;)

EDIT : so 30% users are just bastardfs, dont care after them, let them out, looooll why keeping mother fu..... on ur site ?
EDITED ::: hi here, seems all fine, tables are filled, but no pms are sent, anyidea ?

EDIT 02 : ok , pfffff ok ok i just put 0 days to wait till warn, and its ok,

dont want to allow those hit and runner any delay tobe warned, so now gonna add a few values and put my mod here soon, many thanks for this so usefull mod !
well,

Quote:
[size=12px]new textbbcode function[/size]
[size=14px] ? i dont see any really true changes, or am blind, loll[/size][size=14px]anyway u do not put the preview function ? this is so usefull to be able to preview before sending anything ...[/size]
sql query inserting messages AND autolink function are wrong, chek this :



$msg = sqlesc("[url=".%24site_config%5B"]."/account-details.php?id=".$CURUSER['id']."]".$CURUSER['username']."[/url] has " . ($resp_type == 1?'added one point to':'subtracted one point from') . " your reputation with the following message:nn
Quote:
".$_POST["description"]."
");

$subject = "Has been made a change in your reputation !";

$status = "no";

$to = "in";

SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, unread, location)

VALUES ('$CURUSER[id]', '$targetid', '".get_date_time()."', '$subject', $msg, '$status', '$to')");  

autolink("account-details.php?id=$targetid", "reputation points updated ... Redirecting you to Uploader Account ...");

[/code]

this way its working ... nice mod ;)
hi, well its a funny script hehheeeee, but !

its consumming a large amount of users cpu, just think about this fact,

this script will dramatically slown down any website,

there are some snow scripts over the web, consumming much less ressources ! just google it :)
Quote:
and dont try and use the version the person 1st said with the new changes... 1 bug I dont like about all these changes people seem to use the same database users key "browser"... You try and use the version that needs an number and its text it will error out.. you try and use the last version that needs text and when you view other people that have not visited after you change it the browser info will be wrong or prob errored out...

1) there are no errors on the code i gave, its perfectly running !

generally a user create an account and connect to , nope ???  lolll

anyway, no errors will get out with my code, just think about before criticising for nothing

2) ok about the default value, its a good idea

3) my code does not use any additional sql request, and its more clean to use arrays ;)
hi tiloup i edited my post to show you exactly wich part of code i replace :)
hello, i edited my example for those wanting to add icons ....  :)

Quote:
EDIT ==> OR if you want to add some icons use this way ( lol coz u'r addicted to pictures ... :) :
the goal using my version,

is to save the more php code lines, and sql requests as possible ...
http://devscorner.xyz/uploads/post-38138-0-18445700-1355145413.pnghi, here an alternative way of coding this, for both BROWSER & OS, just use array, its more clean  ;)   :

run this sql :


ALTER TABLE `users` ADD `browser` varchar(20) NOT NULL;

ALTER TABLE `users` ADD `os` varchar(30) NOT NULL;

in functions.php put this WHERE is the previous code, ...  lol  :

EDIT !!!  =>  replace exactly this code

:) :


:) :



if(preg_match("/Opera/u", getenv("HTTP_USER_AGENT"))) $browser = "opera";

else if(preg_match("/Safari/u", getenv("HTTP_USER_AGENT"))) $browser = "safari";

else if(preg_match("/WebTV/u", getenv("HTTP_USER_AGENT"))) $browser = "webtv";

else if(preg_match("/Maxthon/u", getenv("HTTP_USER_AGENT"))) $browser = "maxthon";

else if(preg_match("/Konqueror/u", getenv("HTTP_USER_AGENT"))) $browser = "Konqueror";

else if(preg_match("/Firefox/u", getenv("HTTP_USER_AGENT"))) $browser = "firefox";

else if(preg_match("/MSIE/u", getenv("HTTP_USER_AGENT"))) $browser = "Internet Explorer";

else if(preg_match("/Lynx/u", getenv("HTTP_USER_AGENT"))) $browser = "lynx";

else if((preg_match("/Nav/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Gold/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/X11/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Mozilla/u", getenv("HTTP_USER_AGENT"))) || (preg_match("/Netscape/u", getenv("HTTP_USER_AGENT"))) ) $browser = "mozilla";

else $browser = "Autre - Inconnu";

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", browser=".sqlesc($browser).", page=".sqlesc($where)." WHERE id=" . $row["id"]);

by this one :






$user_agent = $_SERVER['HTTP_USER_AGENT'];



// browser detection

$browser = "Unknown Browser";

$browser_array = array(

'/msie/i' => 'Internet Explorer',

'/firefox/i' => 'Firefox',

'/safari/i' => 'Safari',

'/chrome/i' => 'Chrome',

'/opera/i' => 'Opera',

'/netscape/i' => 'Netscape',

'/maxthon/i' => 'Maxthon',

'/konqueror/i' => 'Konqueror',

'/mobile/i' => 'Handheld Browser'

);

foreach ($browser_array as $regex => $value) {

if (preg_match($regex, $user_agent)) {

$browser = $value;

}

}

// OS detection

$os = "Unknown OS Platform";

$os_array = array(

'/windows nt 6.2/i' => 'Windows 8',

'/windows nt 6.1/i' => 'Windows 7',

'/windows nt 6.0/i' => 'Windows Vista',

'/windows nt 5.2/i' => 'Windows Server 2003/XP x64',

'/windows nt 5.1/i' => 'Windows XP',

'/windows xp/i' => 'Windows XP',

'/windows nt 5.0/i' => 'Windows 2000',

'/windows me/i' => 'Windows ME',

'/win98/i' => 'Windows 98',

'/win95/i' => 'Windows 95',

'/win16/i' => 'Windows 3.11',

'/macintosh|mac os x/i' => 'Mac OS X',

'/mac_powerpc/i' => 'Mac OS 9',

'/linux/i' => 'Linux',

'/ubuntu/i' => 'Ubuntu',

'/iphone/i' => 'iPhone',

'/ipod/i' => 'iPod',

'/ipad/i' => 'iPad',

'/android/i' => 'Android',

'/blackberry/i' => 'BlackBerry',

'/webos/i' => 'Mobile'

);

foreach ($os_array as $regex => $value) {

if (preg_match($regex, $user_agent)) {

$os = $value;

}

}



SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", browser=".sqlesc($browser).", os=".sqlesc($os).", page=".sqlesc($where)." WHERE id=" . $row["id"]);










then in account.php :



place where you want to show those up :





<?php print("<b>".T_("BROWSER").":</b> " . $CURUSER["browser"] . "n"); ?><br />

<?php print("<b>".T_("OS").":</b> " . $CURUSER["os"] . "n"); ?><br />




EDIT ==> OR if you want to add some icons use this way ( lol coz u'r addicted to pictures ...



<?php echo T_("BROWSER"); ?>: <?php echo $CURUSER["browser"]."&nbsp;&nbsp;<img src='".$site_config['SITEURL']."/images/browsers/".$CURUSER["browser"].".png' width='40' height='40' alt='".$CURUSER["browser"]."' title='Detected Browser : ".$CURUSER["browser"]."'>&nbsp;";?><br />

<?php echo T_("OS"); ?>: <?php echo $CURUSER["os"]."&nbsp;&nbsp;<img src='".$site_config['SITEURL']."/images/oss/".$CURUSER["os"].".png' width='40' height='40' alt='".$CURUSER["os"]."' title='Detected Operating System : ".$CURUSER["os"]."'>&nbsp;";?><br />












and  in account-details.php,

 place where you want to show those up :





<?php echo T_("BROWSER"); ?>: <?php echo htmlspecialchars($user["browser"]);?><br />

<?php echo T_("OS"); ?>: <?php echo htmlspecialchars($user["os"]);?><br />






EDIT ==> OR if you want to add some icons use this way ( lol coz u'r addicted to pictures ...



<?php echo T_("BROWSER"); ?>: <?php echo htmlspecialchars($user["browser"])."&nbsp;&nbsp;<img src='".$site_config['SITEURL']."/images/browsers/".$user["browser"].".png' width='40' height='40' alt='".$user["browser"]."' title='Detected Browser : ".$user["browser"]."'>&nbsp;";?><br />

<?php echo T_("OS"); ?>: <?php echo htmlspecialchars($user["os"])."&nbsp;&nbsp;<img src='".$site_config['SITEURL']."/images/oss/".$user["os"].".png' width='40' height='40' alt='".$user["os"]."' title='Detected Operating System : ".$user["os"]."'>&nbsp;";?><br />






Then, you just have to define the width and height to suits your desire, in my example i put 40 x 40 as you can see,

And google images thoses icons you need and put theme into the corresponding folders :

/images/browsers  &  /images/oss/

i give you those folders along with 1 pic in each to help you start on this  :)

So THIS WAY you really dont need to run another sql request, neither another table in databse, alwasys think about saving your server ressources ...

-------

update your langages files. :)

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6351"]browsers.rar[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6352"]oss.rar[/url]

hi,

you can just use the $_SERVER["script_name"]  var,

and then you will get all pages names your users visit, so just code a few lines and update the $where.

its really simple to code, so you will get a really complete function, not only a few pages names visited, but all pages names.

quite esasy, google search after : $_SERVER["script_name"]  ... search is an awesome feature ... lol ...
of course its possible, piece of cake just send me a pm, i'll look into this when i get time ...  :)   just some field to add to the users table, and the corresponding code at the place is the pm sending line ... a simple if ... nanana  $CURUSER["pm_to_uploader_on_comment"] == "yes" ... then execute, else do not  :) )))

or adding this option to the uploader users group !
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728