/[LeafOK_CVS]/lbbs/utils/lib/db_open.inc.php
ViewVC logotype

Diff of /lbbs/utils/lib/db_open.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Sat May 3 14:50:59 2025 UTC Revision 1.6 by sysadm, Tue Jan 6 15:56:39 2026 UTC
# Line 1  Line 1 
1  <?php  <?php
2          include "../conf/db_conn.conf.php";          include "../conf/db_conn.conf.php";
3    
4          function db_open($sql_charset = "gb2312")          function db_open($sql_charset = "utf8")
5          {          {
6                  global $DB_hostname, $DB_username, $DB_password, $DB_database, $DB_session_timezone;                  global $DB_hostname, $DB_username, $DB_password, $DB_database, $DB_session_timezone;
7    
# Line 37  Line 37 
37    
38                  if ($db_conn == NULL)                  if ($db_conn == NULL)
39                  {                  {
40                          exit();                          exit(-1);
41                  }                  }
42          }          }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1