PDA

View Full Version : HUGE problem! Please help! :(


007
02-21-2003, 04:33 PM
For some reason my forums permissions no longer work. Anyone can get into any forum, no matter what I have the permissions set at. I have access masks turned on and this is still a problem.

I also no longer see the onlock and offlock pics on the forum home when logging in as a guest.

:(

ANY HELP WOULD BE GREATLY APPRECIATED! :(

The hacks I most recently installed are:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=49100

https://vborg.vbsupport.ru/showthread.php?s=&threadid=36991

https://vborg.vbsupport.ru/showthread.php?s=&threadid=38416

:(

Boofo
02-21-2003, 04:44 PM
What was the last hack you installed? I would say try to uninstall it and see if that fixes your problem. Then at least you'll know what is causing it.

007
02-21-2003, 04:50 PM
Last hack I installed was the store hack, but I believe this was happening before I added that.... it get's worse though, I now noticed that ANYONE can post, even guests, and ANYONE can delete threads... obviously you can see how this would be a problem... What php file controls permissions??

Boofo
02-21-2003, 05:37 PM
admin/forumpermission.php should be the one. I would try uninstalling the forumjump hack first and see if that fixes it.

007
02-21-2003, 05:39 PM
I did uninstall it, but how do I undo the query:

ALTER TABLE forum ADD forumjump SMALLINT( 6 ) DEFAULT '1' NOT NULL

?

Boofo
02-21-2003, 05:44 PM
I think you do this but please check it out for sure before you do anything. ;)

ALTER TABLE forum DROP forumjump

007
02-21-2003, 05:48 PM
Hmmmm, well does the "DROP" delete just forumjump? If so then it shouldn't be a problem... I think this actually started after I installed this hack, but other people seem to have no problems with it so I dunno... Can anyone confirm Boofo's idea? I don't wanna lose my entire forum... (Made backups just in case, but still) :ermm:

Boofo
02-21-2003, 05:51 PM
I usually go into phpmyadmin to do it but I think you should be ok (as long as you have a backup). You should just get an error if it is not right. ;)

007
02-21-2003, 05:53 PM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=45296

According to this you are right. I'll try it and see if anything happens. :)

007
02-21-2003, 06:00 PM
Ok that worked fine... but my original problem apparently wasn't effected at all by that... hmm, I know for a fact that the store doesn't cause it because I reverted all php files that I changed with the store back to what they were before and I still had the problem... And forumpermission.php has never been changed, so that's not it...

amykhar
02-21-2003, 06:18 PM
If I were you, I would upload totally clean PHP files immediately and revert all templates. I would also take this time to upgrade to the latest version if you haven't already.

However, I am sure there is a less drastic way to do it. That's just what I would do.

Amy

Boofo
02-21-2003, 06:21 PM
amykhar, not to change the subject, but what are you using for you home page? It looks great! ;)

007
02-21-2003, 06:27 PM
lol. Well anyway, that's what I'm considdering, (upgrading now.) How do I do a mysqldump through telnet? I want to make sure I backed up my whole DB before doing this...

007
02-21-2003, 08:15 PM
Ok, apparently I have a db error and need to delete it and start over. (I did a complete upgrade with all new files and still have the same problem). I tested my backup and it works fine, so I jsut need to know what files I need to backup to restore my posts, users, forums, etc. I can reset the settings later, but whats the best way to do this?

I also have backed up my whole forum, like templaets and stuff, into a different directory so I can refer to it when reapplying hacks. I think all I need now it to know what parts of the db I need, since obviously I want to keep as little as possible so I can assume I'll be getting rid of whatever was causing the problem. THANKS. :)

Martin64
02-21-2003, 08:22 PM
I'd do like Amy.

Hrm...accusing my forumjump hack? Meh...

Boofo
02-21-2003, 08:25 PM
No disrespect intended, sir. ;) I've had problems in the past with things getting screwed up by messing with the forumjump so I've learned to stay pretty well away from it. :)

Martin64
02-21-2003, 08:26 PM
Didn't see that last post of yours. Try this:

Upload repair.php to your admin folder and run it. It will fix your database tables in case they're bad.

Martin64
02-21-2003, 08:30 PM
Originally posted by Boofo
No disrespect intended, sir. ;) I've had problems in the past with things getting screwed up by messing with the forumjump so I've learned to stay pretty well away from it. :)

Then you're not messing with it correctly. :D. Anyway, my hack only makes changes to the makeforumjump function in function.php though, so that's why it can't cause this trouble. :p

007
02-21-2003, 08:34 PM
ok that repair.php turned up no errors. All status was "OK."

I reset the entire database by running the install.php script and once I did that everything was fine. Obviously I didn't want to keep it like that, so I reloaded the db from my back up file.

Everything now has the same problems, so I know the problem was with the database...

So what I think is the best way to fix this is to backup just the db tables that store information that I have changed, most importantly, user info, posts, profiles, and anything else I may be forgetting. What should I do now? :paranoid:

007
02-22-2003, 12:48 AM
OMG! I found out what it was. I had put the following in the phpinclude template:

//ad banner
$adcode="";
if ($bbuserinfo[usergroupid]=6) {
$adcode="<SCRIPT LANGUAGE=\"javascript\" src=\%22http:/www.url.com/path/etc\%22></SCRIPT><br><br>";
}
//end

*sigh*

Well thanks to everyone who offered advice. :) I guess I learned a good lesson here (luckily I still have everything). The good thing that happened was that I upgraded to 2.3.0 during this, so I guess it wasn't a total waste of time. :p