Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: process.php

Parašė Zeck· 2011 Bal. 26 17:04:18
#3


<?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_USER_STATUS." WHERE user_id=".$userdata['user_id'].""));
 
if (isset($data['stats'])){
 
$result = dbquery("UPDATE ".DB_USER_STATUS." SET stats = '$user_status' WHERE user_id='".$userdata['user_id']."'");
 
} else {
 
$result = dbquery("INSERT INTO ".DB_USER_STATUS." VALUES('".$userdata['user_id']."', '$user_status', '$user_mood')");
 
 
 
}
 
}
 
 
 
if ((iMEMBER) && isset($user_mood)) {
 
$data = dbarray(dbquery("SELECT * FROM ".DB_USER_STATUS." WHERE user_id=".$userdata['user_id'].""));
 
if (isset($data['mood'])){
 
$result = dbquery("UPDATE ".DB_USER_STATUS." SET mood = '$user_mood' WHERE user_id='".$userdata['user_id']."'");
 
} else {
 
$result = dbquery("INSERT INTO ".DB_USER_STATUS." VALUES('".$userdata['user_id']."','$user_status', '$user_mood')");
 
 
 
}
 
}
 
 
 
header("Location:../../index.php");
 
?>
 
 
 
 

Redagavo Zeck· 2011 Bal. 26 17:04:51