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

"ArcticWolf, post: 87357":
.. no errors lol i tried your code on my dev site without changing an thing and it gave invalid pics...... so that is an error... .jpg LOL..... I love it when people have like 2 posts and they "think" they know more the an moderator of an place.............. anyway np tiloup nice to see someone saying thanks for all the stuff I do:)

And default things are used every time you add a new field or drop an existing field to re-add it................. and also when 1st creating an record aka when someone signup or gets an account created...

Yes, thanks!





[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6957"]browsers+oss+Unknown.rar[/url]
Big Thanks you flameche   :)  Works very well with update!  :D

...a big thank you also to ArticWolf.

v2.08
Thanks you! B)
"flameche, post: 87329":
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  :

:) :



$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 />








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.  :)


Cool mode!!  :D

error /functions.php on line 285

"MicroMonkey, post: 87332":
@Tiloup

my guess is. Because the orginal query didnt set a default browser, so just manually change it to 9 using phpmyadmin or something



ALTER TABLE `users` CHANGE `browser` `browser` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '9'



First thing I did and the ca not walk, thank you for your support anyway! ;)
Quote:
It should not even make an query unless its an # of an id:)in theory could use the above persons one also if not wanting an pic LOL, but people like pics hehehe

YES exact! lol,

not need to specify the ID of the row or another, as if you did change is as accurate and useful for everyone!

Thanks ActicWolf :)
"ArcticWolf, post: 87315":
[size=12px]If posting about "database error" or something along that lines,[/size]

[size=12px]does no good if you dont also add the info from your_siteurl/admincp.php?action=sqlerr[/size]

yes exact...

Database Error in account-details.php on line 58: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1. Query was: SELECT name,browserpic FROM browsers WHERE id= LIMIT 1.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6327"]account-details.php[/url]
if I click on my member name it gives this error ..  :unsure:

Database Error : Database Error. Please report this to an administrator.



//$browsers

$res = SQL_Query_exec("SELECT name,browserpic FROM browsers WHERE id=$user[browser] LIMIT 1") or die(mysql_error());

if (mysql_num_rows($res) == 1) {

$arr = mysql_fetch_assoc($res);

$browser = "$arr[name] <img src=images/browser/$arr[browserpic] height=30 width=30 border=0>";

}

else

{

$browser = "<img src=images/browser/unknown.png height=30 width=30 border=0>";

}





Can please have help with this?  :blink:  B)
"ArcticWolf, post: 87297":
cool does $LANG["Q&A"] = "Q&A"; work ??LOL... you know php and & LOL

oui, ces des conditions muyltiples

mot-cle >AND | significatio >et | symbole équivalent >&&

( il y a de bon livre sur zero.com pour aprend sur le PHP loll

Maintenant je devrais être plus en mesure de m'exprimer correctement)  ;)

*****************************************************************************/

yes, these conditions muyltiples

keyword> AND | significatio> and | equivalent symbol> &&

(There is a good book for zero.com aprend on PHP loll

Now I should be able to express myself properly) ;)

Je me suis permis de déplacer et de finir en langue.
*****************************************************************
I allowed myself to move and finish language.

Français
// Up-transfer and Mods
$LANG["DONATE_UPLOAD_CREDITS"] = "Faîtes un crédit d'Upload";
$LANG["WHY_SHOULD_DONATE"] = "Pourquoi devrais-je faire un don?";
$LANG["CREDIT_UP_TEXT1"] = "Faire un don de crédit d'upload vous permet d'aider les utilisateurs qui sont dépourvu d'une bonne connexions internet, ou des torrents arrêter et qui son plus en seed qui on un ratio très bas.";
$LANG["WHY_SHOULD_DONATE_UP"] = "Si fait un don upload, ça aidera le site?";
$LANG["CREDIT_UP_TEXT2"] = "Non, donner de l'argent ou une mises à Dons upload sont deux dons distincts, le don ajouts en upload aidera les utilisateurs à maintenir leur ratio de là où ils devraient être.";
$LANG["Q&A"] = "Q&I";
$LANG["TRANSFER_UPLOAD"] = "Transfert Upload";
$LANG["DONATE_TO"] = "Don Upload à";
$LANG["ANONYMOUS_TRANSFER"] = "Transfert Anonyme";
$LANG["AMOUNT_CREDIT"] = "Montant du crédit";

English
// Up-transfer and Mods
$LANG["DONATE_UPLOAD_CREDITS"] = "Donate Upload Credits";
$LANG["WHY_SHOULD_DONATE"] = "Why Should I Donate?";
$LANG["CREDIT_UP_TEXT1"] = "Donating upload credit allows you to assist users that are either on lesser bandwith connections, or picking torrents with low seeder to leecher ratio.";
$LANG["WHY_SHOULD_DONATE_UP"] = "If I Donate Uploads Does It Assist The Site?";
$LANG["CREDIT_UP_TEXT2"] = "No, Donating Money and Donating Uploads are two seperate donations, Donating uploads will help the users to keep their ratio's where they should be.";
$LANG["Q&A"] = "Q&A";
$LANG["TRANSFER_UPLOAD"] = "Transfer Upload";
$LANG["DONATE_TO"] = "Donate To";
$LANG["ANONYMOUS_TRANSFER"] = "Anonymous Transfer";
$LANG["AMOUNT_CREDIT"] = "Amount Credit";

Thanks You! ArcticWolf  :)

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

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

Thank you very much ArcticWolf to thank you! ...

<a href="uptransfer.php"><b><?php echo T_("DONATE_UPLOAD_CREDITS"); ?></b></a><br />

Français
$LANG["DONATE_UPLOAD_CREDITS"] = "Faîtes un crédit d'Upload";

English
$LANG["DONATE_UPLOAD_CREDITS"] = "Donate Upload Credits";
Quote:
Hi,
All the code is written as.... however, there still does not appear on this icon.

If edit torrent details and there mark seedbox box it works and looks index page... The problem started with the exchange server, the old server, the same code worked perfectly. I do not understand what the problem is...?! Freeleech, silver, double_upload  icons works perfectly  :wacko:
Sorry I forgot to mantionner who is also a ajoueter index.php (LATEST_TORRENTS) torrents.seedbox, ;)
thank you ArcticWolf it works well! :)
v2.08 ??? svp please...

#======================================================================#

# Add Gigs To Users

#======================================================================#

if($action == "addgigs")

{

if ($_SERVER["REQUEST_METHOD"] == "POST")

{

if ($_POST['doit'] == 'yes') {

mysql_query("UPDATE users SET uploaded = uploaded + 2147483648 WHERE status='confirmed'");

stderr("Upload", "2GB upload is sent to everyone...");

die;

}

if ($_POST["username"] == "" || $_POST["gigs"] == "" || $_POST["gigs"] == "")

show_error_msg("Error", "Missing form data.");

$username = sqlesc($_POST["username"]);

$uploaded = sqlesc($_POST["uploaded"]);

$userid = $CURUSER["id"];

$mb_basic=1024*1024;

if(isset($_POST['unit'])){

if ($_POST["unit"] =='1')

$nobits = $gigs*$mb_basic;

if ($_POST["unit"] =='2')

$nobits = $gigs*$mb_basic*1024;



}

$modcom = mysql_fetch_row(SQL_Query_exec("SELECT modcomment FROM users WHERE username=$username LIMIT 1"));

$modcomment = sqlesc(gmdate("Y-m-d") . " - ".$CURUSER['username']." has given ".mksize($nobits)." to this user.n " .$modcom[0]);

mysql_query("UPDATE users SET modcomment = $modcomment, uploaded=uploaded + $nobits WHERE username=$username") or sqlerr(__FILE__, __LINE__);

write_log("$CURUSER[username] has given ".mksize($nobits)." to ".$username."");

$res = SQL_Query_exec("SELECT id FROM users WHERE username=$username");

$arr = mysql_fetch_row($res);

if (!$arr) {

show_error_msg("Error", "Unable to update account.");

}else{

$msg ="$CURUSER[username] has given ".mksize($nobits)." to you";



mysql_query("INSERT INTO messages (sender, receiver, added, subject, msg) VALUES ('0', $arr[0], '" . get_date_time() . "','Add gigs', " . sqlesc($msg) .")");

}

header("Location: $site_config[sITEURL]/account-details.php?id=$arr[0]");

die;

}

stdhead("Update Users Upload Amounts");

navmenu();

begin_frame("Update Users Uploaded Amounts",false,10,false);

echo "<form method="post" action="admincp.php?action=addgigs">";

?>

<center><font color=red size=2><b>To add gigs put in the user's name and amount then choose MB for megabytes or GB for gigabytes.</b></font></center>

<p align=center><table border=0 width=100% cellspacing=0 cellpadding=0>

<?php

$res = SQL_Query_exec("SELECT username FROM users ORDER BY username");

$pseudo = "<select name="username">n";

while ($arr = mysql_fetch_assoc($res))

$pseudo .= "<option value="$arr[username]">$arr[username]</option>n";

$pseudo .= "</select>n";



?>

<tr>

<td class="rowhead"><b>User name</b></td>

<td class="row1"><?php echo $pseudo;?></td>

</tr>

<tr><td class="rowhead"><b>Amount</b></td><td class="row1"><input type="text" name="gigs" size="5"/><select name=unit><option value=1>MB</option><option value=2>GB</option></td></tr>

<tr><td colspan="2" class="row1" align="center"><input type="submit" value="Okay" class="btn"/></td></tr>

</table>

</form>

<?

end_frame();

stdfoot();

}



#======================================================================#

# End Add Gigs To Users

#======================================================================#


attempt to change! ¿  <_<

~Mon membre n'a pas son du

~My Member has no sound
Search ../backend/functions.php

 $dispname .= "<img src='images/new_torrent.png' border='0' title='".T_("NEW")."' />";
Add


 if ($row["seedbox"] == "yes")

$dispname .= " <img src='images/seedbox.png' title='Torrent flow raise!' border='0' alt='' />";





Open index.php

Search..



torrents.freeleech,





Add after



 torrents.seedbox,



Make such a,,, index.php(LATEST_TORRENTS), torrents-today.php, torrents-search.php, torrents-details.php, torrents-categories.php

Add your own picture if needed!?  :)

[size=18px]UPDATE LE 5-12-12[/size]

Big thanks you "" Mythos  :)  :D

#1 Thanks you all ! :)
Thank you! " V2.8  :)

	 <td align="center"><a href="admincp.php?action=adduser"><img src="images/admin/adduser.png" border="0" width="32" height="32"><br/><?php echo T_("ADD_USER"); ?></a><br/></td>


Langues

French: $LANG["ADD_USER"] = "Ajouter un Membre";

Anglish: $LANG["ADD_USER"] = "Add User";

@+

:) Thanks you!
Wowww! Thanks You!! :D
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