class grabaward {}
// some code here
class grabaward {}
if(class_exists('grabaward') != true)
{
//put class here
}
class grabaward {}
if(class_exists('grabaward') != true)
{
if(!class_exists('grabaward')){
}
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_awards_include.php
| Author: Ugleh
| Site: http://www.ugleh.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if(class_exists('grabaward') != true)
}function grabaward($awards_id){
$result = dbquery("SELECT * FROM ".DB_PREFIX."award_system"." WHERE awards_id = '$awards_id' LIMIT 1");
$data = dbarray($result);
return "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$data['awards_title']."</strong></td>\n
<td width='1%' class='tbl2' style='white-space:nowrap'><strong><img src=\"".IMAGES."awards/".$data['awards_imageurl']."\" alt=\"".$data['awards_title']."\" title=\"".$data['awards_title']."\"></strong></td>\n
<td class='tbl2'>".$data['awards_description']."</td>";
}
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($profile_method == "input") {
//Nothing here
} elseif ($profile_method == "display") {
echo "<tr>\n";
echo "<td colspan=\"2\" class=\"tbl2\"><strong>".$locale['user_awards_name']."</strong></td>\n";
echo "</tr>\n";
$user_id = $user_data['user_id'];
$result = dbquery("SELECT * FROM ".DB_PREFIX."award_users"." WHERE user_id = '".$user_id."' ORDER BY award_time");
if (dbrows($result)) {
echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['user_awards_002']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['user_awards_003']."</strong></td>\n";
echo "<td class='tbl2'><strong>".$locale['user_awards_004']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
echo "<tr>";
echo "".grabaward($data['awards_id'])."";
echo "</tr>\n";
}
}else{
echo $locale['user_awards_005'];
}
echo "</tr>\n";
} elseif ($profile_method == "validate_insert") {
//Nothing here
} elseif ($profile_method == "validate_update") {
//Nothing here
}
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: user_awards_include.php
| Author: Ugleh
| Site: http://www.ugleh.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if(!function_exists('grabaward')){
function grabaward($awards_id){
$result = dbquery("SELECT * FROM ".DB_PREFIX."award_system"." WHERE awards_id = '$awards_id' LIMIT 1");
$data = dbarray($result);
return "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$data['awards_title']."</strong></td>\n
<td width='1%' class='tbl2' style='white-space:nowrap'><strong><img src=\"".IMAGES."awards/".$data['awards_imageurl']."\" alt=\"".$data['awards_title']."\" title=\"".$data['awards_title']."\"></strong></td>\n
<td class='tbl2'>".$data['awards_description']."</td>";
}
}
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($profile_method == "input") {
//Nothing here
} elseif ($profile_method == "display") {
echo "<tr>\n";
echo "<td colspan=\"2\" class=\"tbl2\"><strong>".$locale['user_awards_name']."</strong></td>\n";
echo "</tr>\n";
$user_id = $user_data['user_id'];
$result = dbquery("SELECT * FROM ".DB_PREFIX."award_users"." WHERE user_id = '".$user_id."' ORDER BY award_time");
if (dbrows($result)) {
echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['user_awards_002']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['user_awards_003']."</strong></td>\n";
echo "<td class='tbl2'><strong>".$locale['user_awards_004']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
echo "<tr>";
echo "".grabaward($data['awards_id'])."";
echo "</tr>\n";
}
}else{
echo $locale['user_awards_005'];
}
echo "</tr>\n";
} elseif ($profile_method == "validate_insert") {
//Nothing here
} elseif ($profile_method == "validate_update") {
//Nothing here
}
?>
Category Forum
Panels and InfusionsLabels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions