vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   &action=INVALID (https://vborg.vbsupport.ru/showthread.php?t=49267)

Davey 02-23-2003 05:30 PM

&action=INVALID
 
I'm trying to come up with a hack where if the action is invalid, it reports an error (template: error_invalidaction).
It works fine, except I've only done it for member.php.
So if you go to:
member.php?s=&action=getinfo&userid=1
This will work. However:
member.php?s=&action=blahblah
This will give a blank page. I'm trying to make it report the error_invalidaction template. And I have got it working fine, too.
Trouble is, look at the amount of files there are to hack!
I don't fancy making instructions to add that bit of code to the necessarry place of each and every file, and I'm positive people wouldn't want to edit each and every file just to install this hack.
There must be an easier way to place it in each file, no?

Dave.

Xenon 02-23-2003 06:36 PM

you can add a large block to global.php or the nicer way is to create a new file and just include it to global.php.

but then you must be sure to add every action which can appear on whichever file :)

Davey 02-23-2003 06:38 PM

Huh?

Dave.

Xenon 02-23-2003 06:51 PM

*rereads own post*
hmm, should be clear....

global.php is called from every single file on the board, so if you put the invalid action handling into this file (or a file required from global.php) it would work as you want.

Davey 02-23-2003 06:58 PM

Actually it's this bit I didn't understand.
Quote:

Originally posted by Xenon

but then you must be sure to add every action which can appear on whichever file :)
Dave.

Xenon 02-23-2003 08:04 PM

well, if you forgot any action which could appear, you'd get a invalid action error everytime.

for example you've added all actions just forgot the combination:
editpost.php action=doeditpost.
then it seems that you can edit a post, but when submitting it the error will occur..

Davey 02-23-2003 08:57 PM

Oh this seems too complicated for me at this time then.
Cheers anyway.

Dave.


All times are GMT. The time now is 09:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01106 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete