Parašė Zeck· 2011 Bal. 26 18:04:10
<?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) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (!defined("LANGUAGE")) {
// PHPFusion environment
$this_lang = str_replace("/", "", LOCALESET);
if (file_exists(INFUSIONS."user_status/locale/".$this_lang.".php")) {
include INFUSIONS."user_status/locale/".$this_lang.".php";
} else {
include INFUSIONS."user_status/locale/Lithuanian.php";
}
} else {
// mFusion environment
$this_lang = LANGUAGE;
if (file_exists(INFUSIONS."user_status/locale/".$this_lang.".php")) {
include INFUSIONS."user_status/locale/".$this_lang.".php";
} else {
include INFUSIONS."user_status/locale/Lithuanian.php";
}
}
openside($locale['usi103']);
if (iMEMBER) {
$stats = dbarray(dbquery("SELECT * FROM ".DB_USER_STATUS." WHERE user_id=".$userdata['user_id'].""));
$user_status = $stats['stats'] != "" ? $stats['stats'] : "".$locale['usi125']."";
$user_mood = $stats['mood'];
echo "
<center>
<font color='#880000'> ° </font><b> ".$locale['usi101']." </b><font color='#880000'> ° </font></span></a>
<form name='user_status' method='post' action='".INFUSIONS."user_status/proccess.php'>
<input name='user_status' type='textbox' maxlength='200' size='18' value='".$user_status."' class='textbox'>
<input type='submit' value='".$locale['usi105']."' name='submit' class='button'></center><hr></form>";
echo "
<center>
<font color='#880000'> ° </font><b> ".$locale['usi106']." <font color='#880000'> ° </font></b></a>
<form name='user_mood' method='post' action='".INFUSIONS."user_status/proccess.php'>
<input name='user_mood' type='hidden' value='".$user_mood."' >
<select name=\"user_mood\" class='small' id=\"user_mood\">
".$locale['usi106']."
<option value=\"Inget_Humo\">".$locale['usi109']."</option>
<option value=\"Glad\">".$locale['usi110']."</option>
<option value=\"Arg\">".$locale['usi111']."</option>
<option value=\"Ledsen\">".$locale['usi112']."</option>
<option value=\"Forvirrad\">".$locale['usi113']."</option>
<option value=\"Kramig\">".$locale['usi114']."</option>
<option value=\"Retsam\">".$locale['usi115']."</option>
<option value=\"Osaker\">".$locale['usi116']."</option>
<option value=\"Positiv\">".$locale['usi117']."</option>
<option value=\"Kar\">".$locale['usi118']."</option>
<option value=\"Dalig\">".$locale['usi119']."</option>
<option value=\"Seg\">".$locale['usi120']."</option>
<option value=\"Trott\">".$locale['usi121']."</option>
</select>
<input type='submit' value='".$locale['usi105']."' name='submit' class='button'>
<br><br>
<img height='30' width='30' src='".BASEDIR."images/mood".$user_mood.".gif'>
</center></form>";
} else {
echo $locale['usi108'];
}
closeside();
?>