View Single Post
  #8  
Old 09-11-2008, 07:43 AM
Kirschnik Kirschnik is offline
Member
 
Join Date: Sep 2008
Posts: 10
Credits: 406
Kirschnik
Default RE: Free SMF Hosting Script for SMF 1.1.4

Quote:
Originally Posted by powerchaos
i dont know anymore how i dit it , but i think i was doin some index editing and i just deletd everything that gave a error (like the <html> tag , just delete it .. )

if i can ask , can you use the [ php] [/ php] (whitout space) code the its easyer to read ^^

probaly you will get some more errors but was it after activation , or before activation of the mod ??

Greets From The Crasher
After activation of the mod, as i tried to log in into the adminpanel of the mod under: http://mydomain.tld/smf/admin

If i close the php-tag before <html> i get the following:

Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'web84'@'localhost' (using password: NO) in /home/www/web84/html/smf/config.php on line 38

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'web84'@'localhost' (using password: NO) in /home/www/web84/html/smf/config.php on line 39

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/www/web84/html/smf/config.php on line 39

Warning: mysql_query() [function.mysql-query]: Access denied for user 'web84'@'localhost' (using password: NO) in /home/www/web84/html/smf/config.php on line 41

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/www/web84/html/smf/config.php on line 41
error:Access denied for user 'web84'@'localhost' (using password: NO)
My Settings.php and Config.php:

PHP Code:
<?php
/**********************************************************************************
* Settings.php                                                                    *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.
$maintenance 0;        # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle 'Maintenance Mode';        # Title for the Maintenance Mode message.
$mmessage 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';        # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname 'My Community';        # The name of your forum.
$language 'english';        # The default language file set for the forum.
$boardurl 'http://kirschnik.i3h.de/smf';        # URL to your forum's folder. (without the trailing /!)
$webmaster_email 'c.kirchner@gmx.de';        # Email address to send emails from. (like noreply@yourdomain.com.)
$cookiename 'SMFCookie666';        # Name of the cookie to set for authentication.

########## Database Info ##########
$db_server 'localhost';
$db_name 'usr_web84_6';
$db_user 'web84';
$db_passwd 'XXX';
$db_prefix 'smf_';
$db_persist 0;
$db_error_send 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir '/home/www/web84/html/smf';        # The absolute path to the forum's folder. (not just '.'!)
$sourcedir '/home/www/web84/html/smf/Sources';        # Path to the Sources directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error 0;


//This function is removed for optimize speed (search for agreement.txt or /Sources )

$db_character_set 'utf8';
?>
DB-Pass is X-ed

PHP Code:
<?php

$smfxxlversion 
"1.1.4";
$GLOBALS['current_smf_version'] ="1.1.4";

//To avoid problems, do not edit this part !

#if (file_exists('../../Settings.php')){
#include '../../Settings.php';}
#if (file_exists('../Settings.php')){
#include '../Settings.php';}
if (file_exists('Settings.php')){
include 
'Settings.php';}

$smfxxl_prefix $db_prefix;
$validate="your@mail.com";
$db_server $db_server;
$db_user $db_user;
$db_name $db_name;
$db_passwd $db_passwd;
$forumshome $boarddir
$forum_root $boarddir;
$usersource_dir $boarddir.'/usersources'
$forum_url $boardurl
$adminurl =  $boardurl.'/admin/';     
$tbl_admin="smf_xxl_admin";
$tabl_users="smf_xxl_users";
$tbl_publi="smf_xxl_publi";
$title_home "SMFXXL.COM Admin Panel";


//LICENSE REMOVED
        
$checkstatus="ADMIN";

        

            
//ZOEK DE HOSTNAAM AAN/UIT en DE TITEL
            
$db_connect mysql_connect($db_server,$db_user,$db_passwd) ;
            
$db_select mysql_select_db($db_name);
            
$sql="select * from smf_xxl_admin";
            
$rs=mysql_query($sql) or die("error:".mysql_error());
            while(
$row=mysql_fetch_assoc($rs))        {
            
$hostname=$row['showhost'];
            
$newtitle=$row['newtitle'];
            
$newsecure=$row['Asecure'];
            
$tomail=$row['AemailAddress'];
            
$userforums_url=$boardurl.'/'.$row['smfxxlpath'];
            
$userforums_root=$boarddir.'/'.$row['smfxxlpath'];
            
$smfxxldir=$row['smfxxlpath'];
            
$smfdir=$row['smfpath'];



}

?>
Thx in advance