Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2004, 03:55 PM
X-Caliber X-Caliber is offline
 
Join Date: Dec 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help getting this hack to work correctly

This is the: Have Newsletters Posted To Your VB .


Support has dried up for it, and I was wondering if anyone could help me out getting it to work.

https://vborg.vbsupport.ru/showthrea...2&page=1&pp=15

I get this error:

Warning: main(./config.php) [function.main]: failed to create stream: No such file or directory in /www/htdocs/headpres/forum/admin/global.php on line 96
Reply With Quote
  #2  
Old 01-11-2004, 05:18 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X-Caliber
This is the: Have Newsletters Posted To Your VB .


Support has dried up for it, and I was wondering if anyone could help me out getting it to work.

https://vborg.vbsupport.ru/showthrea...2&page=1&pp=15

I get this error:

Warning: main(./config.php) [function.main]: failed to create stream: No such file or directory in /www/htdocs/headpres/forum/admin/global.php on line 96
are you running 2.x first off? and second it looks like you didnt make acorrect change if you they used the chdir function
Reply With Quote
  #3  
Old 01-12-2004, 01:44 AM
X-Caliber X-Caliber is offline
 
Join Date: Dec 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 2.3.2

I just followed the instructions like it said.

Here is the Require call in the hack.

//variables
require("admin/global.php");

Here is the part where it connects to the database:

////////////////////////////////////////////////////////////////////////////////////////////
// connect to database server
$dbconnect = @mysql_connect($servername,$dbusername,$dbpassword );
if (!$dbconnect) {
exit();
}

//choose correct database
if (! @mysql_select_db($dbname) ) {
exit();
}

// define some constants
// message types
$type = array("text", "multipart", "message", "application", "audio", "image", "video", "other");
// message encodings
$encoding = array("7bit", "8bit", "binary", "base64", "quoted-printable", "other");

// remove extraneous stuff from email addresses
// returns an email address stripped of everything but the address itself
function clean_address(&$val, $index)
{
// clean out whitespace
$val = trim($val);
// look for angle braces
$begin = strrpos($val, "<");
$end = strrpos($val, ">");
if ($begin !== false)
{
// return whatever is between the angle braces
$val = substr($val, ($begin+1), $end-$begin-1);
}
}

Thanks for any help you can give me. I'm a n00b and learning.
Reply With Quote
  #4  
Old 01-12-2004, 01:48 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X-Caliber
I'm running 2.3.2

I just followed the instructions like it said.


Here is the Require call in the hack.

//variables
require("admin/global.php");


Here is the part where it connects to the database:

////////////////////////////////////////////////////////////////////////////////////////////
// connect to database server
$dbconnect = @mysql_connect($servername,$dbusername,$dbpassword );
if (!$dbconnect) {
exit();
}

//choose correct database
if (! @mysql_select_db($dbname) ) {
exit();
}

// define some constants
// message types
$type = array("text", "multipart", "message", "application", "audio", "image", "video", "other");
// message encodings
$encoding = array("7bit", "8bit", "binary", "base64", "quoted-printable", "other");

// remove extraneous stuff from email addresses
// returns an email address stripped of everything but the address itself
function clean_address(&$val, $index)
{
// clean out whitespace
$val = trim($val);
// look for angle braces
$begin = strrpos($val, "<");
$end = strrpos($val, ">");
if ($begin !== false)
{
// return whatever is between the angle braces
$val = substr($val, ($begin+1), $end-$begin-1);
}
}


Thanks for any help you can give me. I'm a n00b and learning.
where did you place this, and what version of vbulletin are you running?
Reply With Quote
  #5  
Old 01-12-2004, 04:09 AM
X-Caliber X-Caliber is offline
 
Join Date: Dec 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I placed it in the main forum directory.

Im running 2.3.2 of vbulletin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06: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.04817 seconds
  • Memory Usage 2,204KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete