View Single Post
Old August 25th, 2005, 10:21 AM   #9 (permalink)
snoopy5
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
uuuups, overlapping postings...

my admin-misc.php has the following erlevant parts (the newest downloads, after inserting your code):

--------------

typecast( $_REQUEST, array('usergroupid' => INT, 'admact' => STRING, 'product' => INT, 'cat' => STRING, 'ppaction' => STRING,
'sort' => INT, 'sl' => STRING, 's' => STRING, 'si' => STRING, 'cat' => STRING, 'page' => INT, 'ppuser' => INT,
'perpage' => INT, 'defdel' => INT, 'defapp' => INT, 'defhol' => INT, 'pid' => INT, 'origcat' => INT,
'catmove' => INT, 'okay' => STRING, 'fixthumbs' => STRING, 'allthumbs' => STRING, 'allmedium' => STRING,
'watermark' => STRING, 'counts' => STRING, 'scanexif' => STRING, 'start' => INT, 'updateowner' => STRING,
'cleanup' => STRING, 'category' => STRING, 'template' => STRING, 'final' => STRING, 'body' => STRING,
'stylesheet' => STRING, 'section' => INT, 'thecount' => INT, 'do' => STRING, 'approve' => STRING,
'remove' => INT, 'clear' => STRING, 'table' => STRING, 'whichfile' => STRING,
'catid' => INT) );
typecast( $_POST, array('submit' => STRING) );

-----------------


and lower in that file the other place where I changed the stuff:

---------------

if ($do == "add") {
$query = "INSERT INTO {$Globals['pp_db_prefix']}usergroups (groupid,groupname,uploads) values(NULL,'Default','0')";
$resulta = ppmysql_query($query,$link);

forward("adm-misc.php?ppaction=usergroups");
exit;
}

if ($do == "delete") {
if ($Globals['vbversion'] == "sellerspost") {
if ($usergroupid < 6) {
diewell("You can't delete this usergroup.");
}
}


if (empty($okay)) $okay="no";

if ($okay != "yes") {
adminheader( 0, "PhotoPost Classifieds User Groups" );

--------------


I copied in this posting more lines by purpose, so that you can check whether something before or after is missing...
snoopy5 is offline   Reply With Quote