Forward port truncate username fix into trunk

This commit is contained in:
james 2011-03-29 19:42:00 +00:00
parent 974d42fa91
commit 36cc0e289c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?
include "../data/config.inc.php";
mysql_connect($DBHOST,$DBUSER,$DBPASS);
mysql_connect($DBHOST,substr($DBUSER,0,16),$DBPASS);
mysql_select_db($DBNAME);
$q=mysql_query("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_percent'");
$r=mysql_fetch_object($q);

View File

@ -26,7 +26,7 @@ ogram; see the file COPYING. If not, write to
if($_GET['action'] == 'output') {
include "../data/config.inc.php";
mysql_connect($DBHOST,$DBUSER,$DBPASS);
mysql_connect($DBHOST,substr($DBUSER,0,16),$DBPASS);
mysql_select_db($DBNAME);
$q=mysql_query("SELECT val FROM config WHERE year='0' AND var='tours_assigner_percent'");
$r=mysql_fetch_object($q);