Yeah, just under a year and your point is? Why start another thread when we have a perfectly good working one here ie not locked? Now back to the topic which isnt when the last post was please
Yeah, just under a year and your point is? Why start another thread when we have a perfectly good working one here ie not locked? Now back to the topic which isnt when the last post was please
My point is that if this topic was still relavent, people would have posted in it in that year it has been dead. It probably would have been better to open a new topic. P.S, no old topics get locked if which, we have previously asked for it to be done, which was refused.
Retired Developer, Looking to finish this project though...
Project: 'What are you wearing': 2%
W3Theory Hosting
Dont trust things you read on the internet - Abraham Lincoln
Error: This script requires an action.
You need to edit the link;
I'm unsure what the actual case name is, so;
- Open the file.
- Find the case section of the file
- Find the case name of the function you want to link to
- Edit the link
(Normally, McCodes uses this <a href='file.php?action=casename'>Something</a>)
Personally, I don't like the default case returning that error, it would be so much more user friendly if it returned links to the functions...
sniko.net (Blog posts, thoughts, dabbles.)
By not trying your best you're sacrificing the gift of success
- sniko
well here are my cases:
and i assume its the "userlevelform" cause that is where i get the error:
All you have to do is this. You do not need to replace anything else.
Replace this:
function userlevel() {
global $db,$ir,$c,$h,$userid;
$_GET['level'] = ( isset($_GET['level'])&&in_array($_POST['level'], array(1,2,3,4,5)) )?abs(intval($_GET['level'])):1;
$_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):'';
$d = $db->query('SELECT `userid` FROM `users` WHERE `userid` = '.$_POST['ID']);
if ( $db->num_rows($d) == 0 ) {
echo 'Invalid user.<br />> <a href="staff_special.php?action=userlevelform">Go Home</a>';
die($h->endpage());
With this:
function userlevel() {
global $db,$ir,$c,$h,$userid;
$_GET['level'] = ( isset($_GET['level'])&&in_array($_GET['level'], array(1,2,3,4,5)) )?abs(intval($_GET['level'])):1;
$_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):'';
$d = $db->query('SELECT `userid` FROM `users` WHERE `userid` = '.$_GET['ID']);
if ( $db->num_rows($d) == 0 ) {
echo 'Invalid user.<br />> <a href="staff_special.php?action=userlevelform">Go Home</a>';
die($h->endpage());
The fix was posted by lucky3809 in this thread.....
Last edited by Mystical; 02-20-2012 at 12:09 PM.
99 Cents a month web hosting! Pay as you go...
http://www.scottdalehosting.com/whmcs/aff.php?aff=009
Try the whole thing from lucky3809 post. It works fine for me using v.2.03
99 Cents a month web hosting! Pay as you go...
http://www.scottdalehosting.com/whmcs/aff.php?aff=009
Its showing the exact same thing
Bookmarks