gingercookie 0 Newbie Poster

So, I bought this script that's a bit buggy. I'm not sure if this is the only problem, but I'm getting T-String error in line 16 . If anyone could see what I'm missing, I'd really appreciate it. I'm very, very new with php... in fact I've only started to learn in an effort to fix this script.

<?php

// Enter your license key here.
$license='Incentive-343243244';

  
  if (!defined("ONLYONCE")) {  
    session_start(); 
    define("ONLYONCE","true");
  }

// Enter mysql database settings.
  if (!defined("DOMAIN")) {	  
    define("DOMAIN",	"blast.com");	  
    define("INC_DIR",	"include/");	  
    define("PAG_DIR",	INC_DIR."pages/");	     
    define("MYSQLHOST",	"newblast");	  
    define("MYSQLUSER",	"50mysql111.secureserver.net");   
    define("MYSQLPASS",	"password");   
    define("MYSQLDB", 	"newblast");    
    
   global $DB_Link,$DB_Name,$DB_Pass,$DB_User,$Site_Name,$Site_URL;
    $DB_Name = MYSQLUSER;
    $DB_Pass = MYSQLPASS;
    $DB_User = MYSQLUSER;

     
  }
  
  global $DB_Link;
  $DB_Link = "";
  if (!function_exists(db_connect)){  
  
    function db_connect() {            
      global $DB_Link;      
      if ($DB_Link== ""){        
        $DB_Link = mysql_connect(MYSQLHOST, MYSQLUSER, MYSQLPASS);        
        mysql_select_db(MYSQLDB);
        define('DBCONNECTED',1);
      }
    }
    function db_disconnect() {
      global $DB_Link; 
      if ($DB_Link != ""){      
        mysql_close($DB_Link);      
        $DB_Link = "";
      }
    }                            
  }

  global $uid,$_COOKIE;
    
  if($_COOKIE[uid])
  $_SESSION['uid']=$_COOKIE[uid];
  if($_COOKIE[pwd])
  $_SESSION['pwd']=$_COOKIE[pwd];
  
  if (!isset($_SESSION['uid'])) {
     $_SESSION['uid'] = $_REQUEST['uid'];
     $_SESSION['pwd'] = $_REQUEST['pwd'];
  }

  $uid = $_SESSION['uid'];
  $pwd = $_SESSION['pwd'];

  db_connect();
  if ($uid != "") {
  	$res = mysql_query("SELECT * FROM users WHERE uid='$uid' AND pwd='$pwd' and status='active'");
    if(mysql_num_rows($res) == 0) { $uid = ""; }
  }
  
  if (!defined("SITEOPTSLOADED")) {
    require_once(INC_DIR."corefunc.php");
    getNamedContentText("SITE_OPTIONS");
    getNamedContentText("SITE_MSGS");
  }

?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.