vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE] Apply to be Mod or Admin. VIA Email. (https://vborg.vbsupport.ru/showthread.php?t=48377)

Funkie 04-12-2003 01:42 PM

The hack works fine when the mod.php is in the same folder as the vb files,but when i tyr to use it outside of the vb folder,all i get is a blank page now.

Ho well will uninstall it now,many thanx for all your help,and to logik for the hack.

Better luck next time

:)

N9ne 04-12-2003 01:48 PM

If it's template driven, it might give a blank page...

Funkie 04-12-2003 02:05 PM

ok next question then how do i pull the templates into it?????or can i not,

Logik 04-12-2003 07:55 PM

Explain what you mean.. I dont understand. Sorry.

Logik 04-12-2003 07:56 PM

Blank page.. Hmm. I have no idea why its doing that.. Make sure your connected to the DB and all that.

Logik 04-12-2003 07:59 PM

Make sure the require code is after <?. And it SHOULD work.

Funkie 04-12-2003 08:59 PM

PHP Code:

<?php
   
// Apply to be mod/admin  by Logik.
 
if (!isset($action) or $action=="") {
  
$action="apply";
}
$version "1";
// ############################### start apply ###############################
if ($action=="apply") {
require(
"./global.php");
$templatesused='mod';
eval(
"dooutput(\"".gettemplate("mod")."\");");
}
?>
<?php
// ############################### start send request ###############################
if ($action=="send") {
 require(
"./global.php");

  
$templatesused 'mod_thanks';
 if(
$message==""){
eval(
"dooutput(\"".gettemplate("moderror_nomessage")."\");");
}elseif (
$name==""){
eval(
"dooutput(\"".gettemplate("moderror_noname")."\");");
}elseif (
$position==""){
eval(
"dooutput(\"".gettemplate("moderror_noposition")."\");");
}else{
   
$email "$bbtitle Application\n\nSender Username:\t$name\nSender E- Mail:\t$thereemail\nMessage:\t$message\nSender Site:\t$site\nPosition:\t$position\nIP:\t$REMOTE_ADDR\n\n";
$to "$webmasteremail";
$subject "$bbuserinfo[username] applying for mod/admin";
$mailheaders "From: $thereemail <> \n";
$mailheaders .= "Reply-To: $thereemail\n\n";
mail($to$subject$email$mailheaders);
eval(
"dooutput(\"".gettemplate("mod_thanks")."\");");
}
}
?>


Logik 04-12-2003 09:38 PM

I see the problem.. Ok. The mod.php isnt in the forums folder. ITs outside of it. So therefor you have to do,
PHP Code:

require('forums/global.php'); 


Funkie 04-12-2003 10:01 PM

I tryed:
require('forums/global.php'); and i get the cant open global again,,,,,so i changed it back to require('welcome/global.php');
and the error goes,but all i get is the blank page:(

Iam not gonna take up anymore of your time guy's this fine hack was not made to do what i would like.

thanx for all your time spend .

Logik 04-13-2003 02:50 AM

Are you sure that your forums dir is Forums?


All times are GMT. The time now is 04:57 AM.

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.01114 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete