; ; session_start(); include_once("inc/header_fe_nologin.php"); include_once("inc/general.php"); //include_once("lang/en/errors.php"); include_once("inc/validation.php"); $obj_config = new class_config(); $obj_user=new class_user(); $obj_gen_lib=new class_general_lib(); $obj_category = new class_category(); $obj_resource = new class_resource(); $obj_upload=new class_upload(); $obj_image=new class_image(); $obj_adv = new class_advertiser(); $obj_publisher = new class_publisher(); error_reporting(E_ERROR); require_once(class_config::$language_file_path.class_config::$error_file_path); require_once(class_config::$language_file_path.class_config::$misc_file_path); if(count($_POST) > 0){ $new_post=array(); $err_msg = ''; array_walk($_REQUEST, 'copy_array'); array_walk($new_post, 'put_slash'); if (blank_check($new_post['username']) == false){ $err_msg .= "51,"; $disp_err = 1; }else if (blank_check($new_post['pwd']) == false){ $err_msg .= "51,"; $disp_err = 1; } if($err_msg == ''){ $user_info = $obj_user->check_user_login($new_post['username'],$new_post['pwd']); if(count($user_info)> 0){ if($user_info[6] == 'N'){ header("location:error_login.php?user_id=".$user_info[0]); die; } elseif($user_info[6] == 'Y'){ $_SESSION['user_id'] = $user_info[0]; $_SESSION['user_full_name'] = $user_info[3]." ".$user_info[4]; /************ Added on 31/07/09 by Subham (Start) *************/ $list_advertiser_arr = $obj_adv->list_advertiser(0, $_SESSION['user_id']); $list_pub_info = $obj_publisher->list_publisher(0,$_SESSION['user_id']); if(count($list_advertiser_arr) > 0){ $_SESSION['advertiser_block_status'] = $list_advertiser_arr[0][3]; } else { $_SESSION['advertiser_block_status'] = ""; } if(count($list_pub_info) > 0){ $_SESSION['publisher_block_status'] = $list_pub_info[0][11]; } else { $_SESSION['publisher_block_status'] = ""; } /************ Added on 31/07/09 by Subham (End) *************/ if($_SESSION['pgname']!= ''){ header("location:".basename($_SESSION['pgname'])); }else{ header("location:my_account.php"); } die; } }else{ $err_msg .= "51,"; $disp_err = 1; } } $err_msg = substr($err_msg,0,-1); $err_msg_arr = explode(',',$err_msg); for ($i = 0; $i < count($err_msg_arr); $i++) { if($i % 2 == 0) { $err_login_msg .= "
  • ". $errors_arr[$err_msg_arr[$i]]."
  • "; } else { $err_login_msg .= "
  • ". $errors_arr[$err_msg_arr[$i]]."
  • "; } } } ?> <br /> <b>Fatal error</b>: Call to a member function put_page_title() on a non-object in <b>/usr/www/users/wildone/public_html/clickster/index.php</b> on line <b>104</b><br />