Pradinukas

Reputacija:
0
Pranešimai: 36
Įstojo: 2010-03-20
|
Modas: http://phpfusion.lt/infusions/moddb/mod_view.php?mod_id=425
Taigi, noreciau sulaukti pagalbos susijusia su siuo modu. Problema tokia:
Kai nueinu i "www.manosaitas.lt/administration/points.php ismeta points pridejimo lenteles. Na viska ivedes (id, add points, suma) ju tiesiog neprideda.
Stai mano points.php failas:
Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Mod created by : Omirikon
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once \"../maincore.php\";
require_once THEMES.\"templates/admin_header.php\";
include LOCALE.LOCALESET.\"admin/admins.php\";
if (!iADMIN) { redirect(BASEDIR.\"index.php\"); }
opentable(\"Edit Points\");
$id = $_POST['user_id'];
$option = $_POST['Merit_Admin'];
$edit_merit = $_POST['edit_merit'];
echo \" \";
//Edit Points
dbquery(\"UPDATE \".$db_prefix.\"users SET user_points=\".$option.\"'\".$edit_points.\"' WHERE user_id='\".$id.\"'\");
closetable();
opentable(\"Points Admin\");
if (iMEMBER) {
if (!isset($sortby) || !preg_match(\"/^[0-9A-Z]$/\", $sortby)) $sortby = \"all\";
$orderby = ($sortby == \"all\" ? \"\" : \" WHERE user_name LIKE '\".stripinput($sortby).\"%'\");
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users\".$orderby.\"\");
$rows = dbrows($result);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$i = 0;
echo \"
User ID |
User Name |
User Points |
User Type |
\n\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users\".$orderby.\" ORDER BY user_id, user_name LIMIT $rowstart,20\");
while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\"); $i++;
echo \"\n\n\".$data['user_id'].\" | \n\";
echo \"\n\".$data['user_name'].\" | \n\";
echo \"\n\".$data['user_points'].\" | \n\";
echo \"\".getuserlevel($data['user_level']).\" | \n\";
}
echo \" \n\";
} else {
echo \" \nThere are no user names beginning with $sortby
\n\n\";
}
$search = array(
\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",
\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"
);
echo \" \n\n\n\";
echo \"Show All | \";
for ($i=0;$i < 36!=\"\";$i++) {
echo \" | \";
echo ($i==17 ? \"Show All | \n \n\n\" : \"\n\");
}
echo \" \n \n\";
} else {
echo \" \n\".$locale['003'].\"
\n\n\";
}
closetable();
echo \" | \n\";
require_once BASEDIR.\"footer.php\";
?>
Jei duoda imk, jei neduoda atimk