bmw11 Posted December 6, 2009 Posted December 6, 2009 gang admin panel ok add new file called gsstart.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. next bit add new file called gangadmin.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then open admin.php and go to index then add link to gsstart.php thanks Quote
Joshua Posted December 6, 2009 Posted December 6, 2009 And Back to Version two, with a (little) security added. gsstart.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
CrazyT Posted December 6, 2009 Posted December 6, 2009 I can tell you for a 100% fact. YOU DID NOT MAKE THIS. Stop posting mods that ain't yours. Quote
Danny696 Posted December 6, 2009 Posted December 6, 2009 if (!in_array($_GET['action'], array('name', 'delete', 'delete2', 'wars', 'respect', 'members', 'apps', 'bank', 'ann', 'tag', 'kick', 'armory', 'uarmory', 'desc', 'logo', 'pres', 'id', 'mw'))) { echo "Invalid Command!"; exit; } is in the wrong place Quote
Joshua Posted December 7, 2009 Posted December 7, 2009 Oh god another one? lol ...... I'll fix it danny one sec >,< Quote
Joshua Posted December 7, 2009 Posted December 7, 2009 actually upon further review...the arrays should work fine. Quote
kaine- Posted December 7, 2009 Posted December 7, 2009 i get this wen i upload it Parse error: syntax error, unexpected '{' in /home/tnr/public_html/gsstart.php on line 102 Quote
endo Posted December 8, 2009 Posted December 8, 2009 kaine try replacing this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. may sort your problem Quote
CrazyT Posted December 9, 2009 Posted December 9, 2009 if (!in_array($_GET['action'], array('name', 'delete', 'delete2', 'wars', 'respect', 'members', 'apps', 'bank', 'ann', 'tag', 'kick', 'armory', 'uarmory', 'desc', 'logo', 'pres', 'id', 'mw'))) { echo "Invalid Command!"; exit; } is in the wrong place That is 100% point less code. Why use it? switch() will go to the default function, if the requested one isn't in the switch(). So again point less. Quote
Joshua Posted December 9, 2009 Posted December 9, 2009 To prevent LFI/RFI that's used. May be a bit overkill, but not all hacks are lame sql hacks. rtfm. Quote
Kaien Posted October 12, 2010 Posted October 12, 2010 I keep having an error when I use gangadmin.php It's always this problem. Parse error: syntax error, unexpected ')' in /home/????/public_html/gangadmin.php on line 73 Quote
corruptcity || skalman Posted October 12, 2010 Posted October 12, 2010 yeah its saying that 1 more ) than you need this is line 73 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you only need 1 ) there Quote
Djkanna Posted October 12, 2010 Posted October 12, 2010 To prevent LFI/RFI that's used. May be a bit overkill, but not all hacks are lame sql hacks. rtfm. file.php?action=*Insert url/path/null character here* won't work in this instance so yes the in_array() is indeed pointless. Whereas if you were using something like fopen(), require, etc; then you'd need the array/checks but no reason too here. Quote
peterisgb Posted October 12, 2010 Posted October 12, 2010 dont want to be rude but this is for v1 not v2 Quote
Joshua Posted October 12, 2010 Posted October 12, 2010 Super old post Lets all gander at my lack of coding knowledge a year ago lol. Quote
Djkanna Posted October 12, 2010 Posted October 12, 2010 I only replied because of the "rtfm" lol Quote
joshuawdams Posted October 12, 2010 Posted October 12, 2010 Look what you made me do, I had to make another name to hide my identity! ^_- Quote
Dominion Posted October 12, 2010 Posted October 12, 2010 not very well since you just told everyone who you are ;) Quote
joshuawdams Posted October 12, 2010 Posted October 12, 2010 I know can you believe that! ;) In reality, I don't care that much, i just figured it was time to turn over a new leaf. Anyone interested in doing some digging is more than welcome to figure it out :p Quote
Kaien Posted October 19, 2010 Posted October 19, 2010 Now it says something about { on line 77. Just post the correct code. Quote
Dominion Posted October 19, 2010 Posted October 19, 2010 if you're going to ask for help at least copy and paste the error... Quote
Kaien Posted October 20, 2010 Posted October 20, 2010 Parse error: syntax error, unexpected '{' in /home/takeru/public_html/gangadmin.php on line 77 If I take that out then other errors come. Quote
dellan Posted November 1, 2010 Posted November 1, 2010 lol how old is this post and is it for v1? :) Quote
DJShad10 Posted December 10, 2010 Posted December 10, 2010 then open admin.php and go to index then add link to gsstart.php im sorry but what does this mean? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.