\n";
diff --git a/remote.php b/remote.php
index 84631839..db64143c 100644
--- a/remote.php
+++ b/remote.php
@@ -34,7 +34,7 @@ function handle_getstats(&$u, $fair,&$data, &$response)
$year = $data['getstats']['year'];
/* Send back the stats we'd like to collect */
- $response['statconfig'] = split(',', $fair['gather_stats']);
+ $response['statconfig'] = explode(',', $fair['gather_stats']);
/* Send back the stats we currently have */
$q = mysql_query("SELECT * FROM fairs_stats WHERE fairs_id='{$u['fairs_id']}'
diff --git a/schoolinfo.php b/schoolinfo.php
index 12b5c3bf..59f5bd09 100644
--- a/schoolinfo.php
+++ b/schoolinfo.php
@@ -22,7 +22,7 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
if($_POST['action']=="save") {
/* Get info about science head */
$sciencehead_update = '';
- list($first, $last) = split(' ', $_POST['sciencehead'], 2);
+ list($first, $last) = explode(' ', $_POST['sciencehead'], 2);
$em = $_POST['scienceheademail'];
if($em == '' && ($first != '' || $last != '')) $em = "*$first$last".user_generate_password();
diff --git a/super/backuprestore.php b/super/backuprestore.php
index f41fe000..a78f1044 100644
--- a/super/backuprestore.php
+++ b/super/backuprestore.php
@@ -102,7 +102,7 @@ else if($_POST['action']=="restore") {
for($x=0;$x<4;$x++) {
$line=fgets($fp,1024);
- $hdr[$x]=split(":",trim($line),2);
+ $hdr[$x]=explode(":",trim($line),2);
}
fclose($fp);
diff --git a/super/languagepacks.php b/super/languagepacks.php
index c6d7b362..a1ee7896 100644
--- a/super/languagepacks.php
+++ b/super/languagepacks.php
@@ -48,7 +48,7 @@
{
foreach($packs AS $p)
{
- list($langpack,$filename,$lastupdate)=split("\t",trim($p));
+ list($langpack,$filename,$lastupdate)=explode("\t",trim($p));
$ret[$langpack]=array("lang"=>$langpack,"filename"=>$filename,"lastupdate"=>$lastupdate);
}
}
diff --git a/super/versionchecker.php b/super/versionchecker.php
index ba39068a..982b487b 100644
--- a/super/versionchecker.php
+++ b/super/versionchecker.php
@@ -43,7 +43,7 @@
$ret=array();
if($v=file("http://www.sfiab.ca/version.txt"))
{
- list($version,$date)=split("\t",trim($v[0]));
+ list($version,$date)=explode("\t",trim($v[0]));
$ret['version']=$version;
$ret['date']=$date;
}
diff --git a/tableeditor.class.php b/tableeditor.class.php
index 66ac8867..a19a139f 100644
--- a/tableeditor.class.php
+++ b/tableeditor.class.php
@@ -426,7 +426,7 @@ class TableEditor
//so rip out the options right now and add them
$inputtype="select";
$enums=substr(ereg_replace("'","",$r->Type),5,-1);
- $toks=split(",",$enums);
+ $toks=explode(",",$enums);
foreach($toks as $tok) {
$keyfound=false;
if(count($this->fieldOptions[$f])) {
@@ -871,7 +871,7 @@ class TableEditor
case "date":
case "datetime":
- $a = split('[- :]',$editdata[$f]);
+ $a = explode('[- :]',$editdata[$f]);
if($inputtype == 'date') {
list($yy,$mm,$dd)=$a;
$w = 10;
@@ -899,7 +899,7 @@ class TableEditor
case "time":
if($inputtype == 'time') {
- list($hh,$mi,$ss)=split(":",$editdata[$f]);
+ list($hh,$mi,$ss)=explode(":",$editdata[$f]);
echo "
";
echo "
";
@@ -1374,7 +1374,7 @@ class TableEditor
function format_date($d)
{
if(!$d) return;
- list($y,$m,$d)=split("-",$d);
+ list($y,$m,$d)=explode("-",$d);
$t=mktime(0,0,0,$m,$d,$y);
return date($this->dateformat,$t);
}
@@ -1384,7 +1384,7 @@ class TableEditor
if(!$t) return;
if($this->timeformat=="12hrs")
{
- list($hh,$mm,$ss)=split(":",$t);
+ list($hh,$mm,$ss)=explode(":",$t);
//hack to get rid of leading "0" and turn it into a number
$hh++;
$hh--;
@@ -1406,7 +1406,7 @@ class TableEditor
}
function format_datetime($d)
{
- list($d,$t)=split(' ', $d);
+ list($d,$t)=explode(' ', $d);
$ret = $this->format_date($d).' '.$this->format_time($t);
return $ret;
}
diff --git a/user.inc.php b/user.inc.php
index 902f01a6..b4f216e9 100644
--- a/user.inc.php
+++ b/user.inc.php
@@ -663,7 +663,7 @@ function user_fields_enabled($role)
$ret = array('firstname','lastname');
$fields = $config["{$role}_personal_fields"];
if($fields != '') {
- $fields = split(',', $fields);
+ $fields = explode(',', $fields);
foreach($fields as $f) {
$ret = array_merge($ret, $user_fields_map[$f]);
}
@@ -681,7 +681,7 @@ function user_fields_required($role)
$ret = array('firstname','lastname','username');
$required = $config["{$role}_personal_required"];
if($required != '') {
- $fields = split(',', $required);
+ $fields = explode(',', $required);
foreach($fields as $f) {
$ret = array_merge($ret, $user_fields_map[$f]);
}
diff --git a/user_new.php b/user_new.php
index c5ccec21..d829e728 100644
--- a/user_new.php
+++ b/user_new.php
@@ -124,7 +124,7 @@
if(mysql_num_rows($q) > 0) {
/* It already exists, make sure they're not already in this role */
$r = mysql_fetch_object($q);
- $types = split(',', $r->types);
+ $types = explode(',', $r->types);
if($r->year==$config['FAIRYEAR'] && $r->deleted=='yes') {
mysql_query("UPDATE users SET deleted='no' WHERE id='$r->id'");
diff --git a/winners.php b/winners.php
index 0d90ad5e..1250d2c2 100644
--- a/winners.php
+++ b/winners.php
@@ -245,7 +245,7 @@ else
if(mysql_num_rows($q)) {
while($r=mysql_fetch_object($q)) {
if($first && $r->year != $config['FAIRYEAR']) {
- list($d,$t)=split(" ",$config['dates']['postwinners']);
+ list($d,$t)=explode(" ",$config['dates']['postwinners']);
echo "
".i18n("%1 Winners",array($config['FAIRYEAR']))."
";
echo i18n("Winners of the %1 %2 will be posted here on %3 at %4",array($config['FAIRYEAR'],$config['fairname'],format_date($d),format_time($t)));
echo " \n";
@@ -281,7 +281,7 @@ else
}
}
else {
- list($d,$t)=split(" ",$config['dates']['postwinners']);
+ list($d,$t)=explode(" ",$config['dates']['postwinners']);
echo "
".i18n("%1 Winners",array($config['FAIRYEAR']))."
";
echo i18n("Winners of the %1 %2 will be posted here on %3 at %4",array($config['FAIRYEAR'],$config['fairname'],format_date($d),format_time($t)));
}