View Full Version : Help getting this hack to work correctly
X-Caliber
01-11-2004, 03:55 PM
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/showthread.php?t=53142&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
Zachery
01-11-2004, 05:18 PM
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/showthread.php?t=53142&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
X-Caliber
01-12-2004, 01:44 AM
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.
Zachery
01-12-2004, 01:48 AM
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?
X-Caliber
01-12-2004, 04:09 AM
I placed it in the main forum directory.
Im running 2.3.2 of vbulletin
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.