Parašė megar· 2011 Bal. 26 16:04:53
#1
Bandau perdaryti moda is v6 i v7 ir neveikia miktukas vienas neisiraso i dom baze informacija ... kas labiau susipazines su
php-f gal gali padeti pritaikyti sita koda ant v7
<?php
/*--------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: <a href='http://www.php-fusion.co.uk' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk</span></a> |
| email: <a href="mailto:nick@php-fusion.co.uk"><span style="color:005C5B">nick@php-fusion.co.uk</span></a> |
|---------------------------------------------|
| Thanks to Ian Unruh (Kep7) for some |
| cool code in this mod. |
| Website: <a href='http://www.cgeagles.com' target='_blank'><span style='color:005C5B'>http://www.cgeagles.com</span></a> |
| Mods to the mod : Domi & Fetloser |
| Website: <a href='http://phpfusion.se' target='_blank'><span style='color:005C5B'>http://phpfusion.se</span></a> |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
require_once "../../maincore.php";
if ((iMEMBER) && isset($user_status)) {
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."user_status WHERE user_id=".$userdata['user_id'].""));
if (isset($data['stats'])){
$result = dbquery("UPDATE ".$db_prefix."user_status SET stats = '$user_status' WHERE user_id='".$userdata['user_id']."'");
} else {
$result = dbquery("INSERT INTO ".$db_prefix."user_status VALUES('".$userdata['user_id']."', '$user_status', '$user_mood')");
}
}
if ((iMEMBER) && isset($user_mood)) {
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."user_status WHERE user_id=".$userdata['user_id'].""));
if (isset($data['mood'])){
$result = dbquery("UPDATE ".$db_prefix."user_status SET mood = '$user_mood' WHERE user_id='".$userdata['user_id']."'");
} else {
$result = dbquery("INSERT INTO ".$db_prefix."user_status VALUES('".$userdata['user_id']."','$user_status', '$user_mood')");
}
}
header("Location:../../index.php");
?>