SYSTEM ERROR"); print("

"); print("
Could Not Connected To Database!
"); print("
Error " . mysql_errno() . " : " . mysql_error() . "

"); print("
System tried to connect to the MySQL server, and the server rejected the connection."); print("
Check the host, username, password and database in library.php and
"); print("
make sure that they correspond to the information given by the
"); print("
administrator of the MySQL server
"); } function dbstart($hostno) { if(!$connect = @mysql_connect(db_host($hostno),db_user(),db_password())): db_error(); exit; else: if(!$db = @mysql_select_db(database($hostno),$connect)): db_error(); exit; else: //echo "db connected"; return 1; endif; endif; } function page_error(){ $image = "../image/dbstart.gif"; if(!file_exists($image)): $image = "../image/dbstart.gif"; endif; print("SYSTEM ERROR"); print("

"); print("
The page cannot be accessed!
"); print("
 
"); print("
The page you are looking for cannot be accessed without login."); print("
Please make sure that you are properly login before you can access the page.
"); print("
Contact your System Administrator for any enquiries.
"); } function pagestart(){ if(!session_id()||!session_is_registered('s_user_group')||!session_is_registered('s_user')): page_error(); exit; endif; } function para_value($para_id){ $row = @mysql_fetch_array(@mysql_query("select * from system_parameter where para_id = '".$para_id."'")); return $row["para_value"]; } function lookup_value($lookup_group_id,$lookup_table_id){ $row = mysql_fetch_array(mysql_query("select * from system_lookup_table where lookup_table_id = '".$lookup_table_id."' and lookup_group_id = '".$lookup_group_id."'")); return $row["lookup_table_desc"]; } function theme($dir){ $theme_name = para_value(13).".css"; if(!file_exists($dir.$theme_name)): $theme_name = "theme_default.css"; endif; css($dir.$theme_name); } function num_ctrl($text){ if($text): for($i=0;$i57): return 1; exit; endif; } endif; } function message($ayat,$id) { if($id==1): ?> \n"); print("\n"); print("\n"); print("\n"); print("\n"); print("\n"); if($id=='01'): $x = $x + 1; print("\n"); print("\n"); print("\n"); print("\n"); $x = $x + 1; printf("\n",para_value(10)); print("\n"); print("\n"); print("\n"); $x = $x + 1; print("\n"); print("\n"); print("\n"); print("\n"); $row_num = $row_num + 3; endif; while($row = mysql_fetch_array($result)){ $x = $x + 1; printf("\n",$row["msg_mesej"]); print("\n"); print("\n"); print("\n"); if($row["msg_links"]!=''): printf("\n",$row["msg_links"]); endif; } print("\n"); print("\n"); $x = $x + 1; } ?> ">