Jump to content

Can't get website to display after changing to different nameservers.


Lana Taylor

Recommended Posts

My friend bought this website from another hosting company, but when I moved it over to my servers, the website would not work or should I say display online. The error:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/ed/public_html/config.php on line 15

 

Is it that my hosting company does not have the relevant PHP modules to run on my servers?

 

Any help would be much appreciated.

 

<?php

if ( !defined( 'SMARTY_DIR' ) ) {

include_once( 'init.php' );

}

 

if ($_SESSION['AdminId'] > 0) {

 

header('location: admin/index.php');

exit;

}

 

if ($_SESSION['UserId'] <= 0 && $_GET['page'] == 'login' &&  isset($_COOKIE[$config['cookie_prefix'].'osdate_info']) ) {

 

$cookie = $_COOKIE[$config['cookie_prefix'].'osdate_info'];

 

$_SESSION['txtusername'] = $cookie['username'];

 

$_SESSION['txtpassword'] = $cookie['dir'] ;

 

$_SESSION['rememberme'] = true;

 

list($_SESSION['lookagestart'], $_SESSION['lookageend'])= split(':',$cookie['search_ages']);

 

if ($cookie['username'] != "") {

 

if ( !$_GET['errid'] ) {

header("location: midlogin.php");

exit;

}

Above is the first 16 lines of the index page, does this help or do you need more info?

Cheers,

Lana.

Please post the first 20 lines of config.php between

tags.

 

Ken

Cheers Ken, Is this what you need?

 

Regards, Lana.

 

// Error Message Codes

// ---------------

 

define ('USERNAME_BLANK','1');

define ('PASSWORD_BLANK','2');

define ('FIRSTNAME_REQUIRED','4');

define ('LASTNAME_REQUIRED','5');

define ('EMAIL_REQUIRED','6');

define ('CITY_REQUIRED','7');

define ('ZIP_REQUIRED','8');

define ('FIRSTNAME_LENGTH','11');

define ('LASTNAME_LENGTH','12');

define ('EMAIL_LENGTH','13');

define ('CITY_LENGTH','14');

define ('PASS_CONFIRMPASS', '18');

define ('MANDATORY_FIELDS', '20');

define ('INVALID_LOGIN','21');

define ('USERNAME_EXISTS', '22');

define ('WRONG_OLD_PASSWORD','23');

define ('EMAIL_EXISTS','25');

define ('NOT_ACTIVE', '26');

define ('NO_MESSAGE','27');

define ('UNSUPPORTED_FILE_FORMAT','29');

define ('QUESTION_ON_TOP','30');

define ('QUESTION_AT_BOTTOM','31');

define ('NOT_YET_APPROVED','35');

define ('ACCOUNT_SUSPENDED', '36');

define ('SUBMISSION_DECLINED', '37');

 

Oops ! think it should be this:

 

<?php

 

define( 'VERSION', '1.1.10' );

 

/*

-----------

DB Settings

-----------

*/

 

define( 'DB_USER', 'govan' );

define( 'DB_NAME', 'dating' );

define( 'DB_HOST', 'localhost' );

define( 'DB_PASS', randango7' );

define( 'DB_TYPE', 'mysql' );

define( 'DB_PREFIX', 'osdate' );

 

 

// -------------

// Mail settings

// -------------

 

// text|html

define( 'MAIL_FORMAT', 'text' );

//mail|sendmail|smtp

define( 'MAIL_TYPE', 'mail' );

define( 'SMTP_HOST', 'localhost' );

define( 'SMTP_PORT', '25' );

define( 'SMTP_AUTH', '0' );

define( 'SMTP_USER', '' );

define( 'SMTP_PASS', '' );

define( 'SM_PATH', '/usr/sbin/sendmail' );

 

 

Thanks again,

Lana.

 

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.