[SUCS Devel] site r649 - in branches/sucs-site: components htdocs
imranh at sucs.org
imranh at sucs.org
Thu Mar 5 12:32:03 GMT 2015
Author: imranh
Date: 2015-03-05 12:32:00 +0000 (Thu, 05 Mar 2015)
New Revision: 649
Modified:
branches/sucs-site/components/motd_wrapper.php
branches/sucs-site/htdocs/index.php
Log:
SetCharSet('utf8') on the db conns
Modified: branches/sucs-site/components/motd_wrapper.php
===================================================================
--- branches/sucs-site/components/motd_wrapper.php 2015-03-04 19:15:50 UTC (rev 648)
+++ branches/sucs-site/components/motd_wrapper.php 2015-03-05 12:32:00 UTC (rev 649)
@@ -1,7 +1,4 @@
<?PHP
require("/var/www/sucssite/htdocs/settings.php");
-require("/usr/share/php/adodb/adodb.inc.php");
-$DB->SetCharSet('utf8');
-
include($base."components/motd.php");
Modified: branches/sucs-site/htdocs/index.php
===================================================================
--- branches/sucs-site/htdocs/index.php 2015-03-04 19:15:50 UTC (rev 648)
+++ branches/sucs-site/htdocs/index.php 2015-03-05 12:32:00 UTC (rev 649)
@@ -41,11 +41,13 @@
require("/usr/share/php/adodb/adodb.inc.php");
$DB = NewADOConnection('postgres9');
$DB->Connect('dbname='.$dbname.' user='.$dbuser);
+$DB->SetCharSet('utf8');
$DB->SetFetchMode(ADODB_FETCH_ASSOC);
// Initialise the sucs database conn
$sucsDB = NewADOConnection('postgres9');
$sucsDB->Connect('dbname='.$sucsdbname.' user='.$dbuser);
+$sucsDB->SetCharSet('utf8');
$sucsDB->SetFetchMode(ADODB_FETCH_ASSOC);
// Include the session library
More information about the Devel
mailing list