diff --git a/admin/donors.php b/admin/donors.php index f38a522e..0890039c 100644 --- a/admin/donors.php +++ b/admin/donors.php @@ -654,7 +654,7 @@ function draw_contact_form($sponsor_id, $contact = null){ }else{ $id = "new"; if($sponsor->donortype=="individual") { - list($firstname,$lastname)=split(" ",$sponsor->organization,2); + list($firstname,$lastname)=explode(" ",$sponsor->organization,2); $contact['firstname']=$firstname; $contact['lastname']=$lastname; $contact['email']=$sponsor->email; diff --git a/admin/fair_stats_select.php b/admin/fair_stats_select.php index 94ef6326..52b12250 100644 --- a/admin/fair_stats_select.php +++ b/admin/fair_stats_select.php @@ -92,7 +92,7 @@ function stats_save() $d) { $ch = in_array($s, $selected_stats) ? 'checked="checked"' : ''; echo ""; diff --git a/admin/fundraising_campaigns.php b/admin/fundraising_campaigns.php index a44dc36e..ad7329a3 100644 --- a/admin/fundraising_campaigns.php +++ b/admin/fundraising_campaigns.php @@ -439,7 +439,7 @@ switch($_GET['action']){ echo "id)\" value=\"".i18n("Send as email")."\" />"; echo "
\n"; if($email->lastsent) { - list($date,$time)=split(" ",$email->lastsent); + list($date,$time)=explode(" ",$email->lastsent); echo i18n("Last Sent"); echo "
".format_date($date); echo "
".format_time($time); diff --git a/admin/fundraising_setup.php b/admin/fundraising_setup.php index 95e8c191..fd267b0a 100644 --- a/admin/fundraising_setup.php +++ b/admin/fundraising_setup.php @@ -175,7 +175,7 @@ echo $config['FISCALYEAR']; echo "\n"; echo "\n"; diff --git a/admin/judges_timeslots.php b/admin/judges_timeslots.php index 877f4531..4db62c30 100644 --- a/admin/judges_timeslots.php +++ b/admin/judges_timeslots.php @@ -173,8 +173,8 @@ DATE_ADD('$date $hr:$min:00', INTERVAL $tt MINUTE) AS startnext "); echo mysql_error(); $r=mysql_fetch_object($q); - list($ed,$et)=split(" ",$r->endtime); - list($nd,$nt)=split(" ",$r->startnext); + list($ed,$et)=explode(" ",$r->endtime); + list($nd,$nt)=explode(" ",$r->startnext); $starttime = sprintf("%02d:%02d:00", $hr, $min); @@ -184,8 +184,8 @@ '{$config['FAIRYEAR']}')"); echo mysql_error(); $date=$nd; - list($s_h,$s_m,$s_s)=split(":",$nt); - list($e_h,$e_m,$e_s)=split(":",$et); + list($s_h,$s_m,$s_s)=explode(":",$nt); + list($e_h,$e_m,$e_s)=explode(":",$et); message_push(happy(i18n("Adding timeslot: %1",array("$date $hr:$min - $e_h:$e_m")))); $hr=$s_h; $min=$s_m; diff --git a/admin/schools.php b/admin/schools.php index dd7f8da3..f88fe28e 100644 --- a/admin/schools.php +++ b/admin/schools.php @@ -52,7 +52,7 @@ $principal_update = ''; $sciencehead_update = ''; - list($first, $last) = split(' ', $_POST['principal'], 2); + list($first, $last) = explode(' ', $_POST['principal'], 2); /* Load existing entry if it exists, else make an entry if * there is data, else, do nothing */ if($i['principal_uid'] > 0) @@ -78,7 +78,7 @@ /* Get info about science head */ - 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(); /* Load existing record, or create new if there's something diff --git a/admin/sponsor_contacts.php b/admin/sponsor_contacts.php index 0913d4fa..51fec47f 100644 --- a/admin/sponsor_contacts.php +++ b/admin/sponsor_contacts.php @@ -199,7 +199,7 @@ echo "$r->firstname $r->lastname\n"; echo " \n"; echo "
".i18n("Fiscal Year End").""; - list($month,$day)=split("-",$config['fiscal_yearend']); + list($month,$day)=explode("-",$config['fiscal_yearend']); emit_month_selector("fiscalendmonth",$month); emit_day_selector("fiscalendday",$day); echo "
"; if($r->email) { - list($eb,$ea)=split("@",$r->email); + list($eb,$ea)=explode("@",$r->email); echo ""; } else diff --git a/admin/student_editor.php b/admin/student_editor.php index 31f0e513..184336f9 100644 --- a/admin/student_editor.php +++ b/admin/student_editor.php @@ -269,7 +269,7 @@ function students_load() echo "
".i18n("Date of Birth")."\n"; - list($year,$month,$day)=split("-",$studentinfo->dateofbirth); + list($year,$month,$day)=explode("-",$studentinfo->dateofbirth); echo "
"; emit_day_selector("day[$x]",$day); echo "\n"; diff --git a/admin/translations.php b/admin/translations.php index 2de53e58..c3ac3a5f 100644 --- a/admin/translations.php +++ b/admin/translations.php @@ -53,7 +53,7 @@ if($_POST['action']=="save") { echo happy(i18n("Translation(s) deleted")); } if($_POST['changedFields']) { - $changed=split(",",$_POST['changedFields']); + $changed=explode(",",$_POST['changedFields']); foreach($changed AS $ch) { mysql_query("UPDATE translations SET val='".mysql_escape_string(stripslashes($_POST['val'][$ch]))."' WHERE strmd5='".mysql_real_escape_string($ch)."' AND lang='".mysql_real_escape_string($_SESSION['translang'])."'"); } diff --git a/committees.php b/committees.php index de70095f..0c949b31 100644 --- a/committees.php +++ b/committees.php @@ -57,13 +57,13 @@ //make sure we do emailprivate before email so we dont match the wrong thing if($u['emailprivate'] && $u['displayemail']=='yes') { - list($b,$a)=split("@",$u['emailprivate']); + list($b,$a)=explode("@",$u['emailprivate']); $output=str_replace("emailprivate","",$output); } else $output=str_replace("emailprivate","",$output); if($u['email'] && $u['displayemail']=='yes') { - list($b,$a)=split("@",$u['email']); + list($b,$a)=explode("@",$u['email']); $output=str_replace("email","",$output); } else $output=str_replace("email","",$output); @@ -86,7 +86,7 @@ if($r2->email) { echo "     "; - list($b,$a)=split("@",$r2->email); + list($b,$a)=explode("@",$r2->email); echo ""; } else diff --git a/common.inc.functions.php b/common.inc.functions.php index 43af69ff..997adebd 100644 --- a/common.inc.functions.php +++ b/common.inc.functions.php @@ -175,7 +175,7 @@ function emit_year_selector($name,$selected="",$min=0,$max=0) { function emit_date_selector($name,$selected="") { if($selected) { - list($year,$month,$day)=split("-",$selected); + list($year,$month,$day)=explode("-",$selected); } echo ""; echo "
"; @@ -220,7 +220,7 @@ function emit_minute_selector($name,$selected="",$extra="",$interval=5) { function emit_time_selector($name,$selected="") { if($selected) { - list($hour,$minute,$second)=split(":",$selected); + list($hour,$minute,$second)=explode(":",$selected); } echo ""; echo ""; echo "\n"; echo "
"; @@ -593,7 +593,7 @@ function format_datetime($dt) { return format_date($dt)." ".i18n("at")." ".format_time($dt); } else { - list($d,$t)=split(" ",$dt); + list($d,$t)=explode(" ",$dt); return format_date($d)." ".i18n("at")." ".format_time($t); } } diff --git a/config/dates.php b/config/dates.php index 735aabc4..be5fe250 100644 --- a/config/dates.php +++ b/config/dates.php @@ -153,7 +153,7 @@ foreach($dates as $dn=>$d) { if($error_ids[$d['id']]) { $e = "* ".$error_ids[$d['id']].""; } - list($_d,$_t)=split(" ",$d['date']); + list($_d,$_t)=explode(" ",$d['date']); echo "
".i18n($d['description']).""; diff --git a/config_editor.inc.php b/config_editor.inc.php index cc10c5cb..7fadec32 100644 --- a/config_editor.inc.php +++ b/config_editor.inc.php @@ -251,7 +251,7 @@ function config_editor($category, $conference_id, $array_name, $self) print(""); break; case "enum": - $val = split(',', $val); + $val = explode(',', $val); $values = $var[$k]['type_values']; /* Split values */ /* The PERL regex here matches any string of the form @@ -291,7 +291,7 @@ function config_editor($category, $conference_id, $array_name, $self) break; case 'multisel': /* same PERL parse statements as above */ - $val = split(',', $val); + $val = explode(',', $val); $values = $var[$k]['type_values']; preg_match_all("/([^\|=]+)(?:=([^\|]+))?\|?/", $values, $regs); /* Decide which way to show this list */ diff --git a/confirmed_participants.php b/confirmed_participants.php index 80b0c185..5909a264 100644 --- a/confirmed_participants.php +++ b/confirmed_participants.php @@ -31,7 +31,7 @@ $r=mysql_fetch_object($q); if($r->test!=1) { - list($d,$t)=split(" ",$config['dates']['postparticipants']); + list($d,$t)=explode(" ",$config['dates']['postparticipants']); echo i18n("Confirmed participants (that signature forms have been received for) will be posted here on %1 at %2. Please do not contact the fair to inquire about receipt of your signature form until after this date (and only if you are not listed here after this date).",array($d,$t)); } else diff --git a/contact.php b/contact.php index 138dd096..c6b5706f 100644 --- a/contact.php +++ b/contact.php @@ -26,14 +26,14 @@ function cleanify($in) { $in=ereg_replace("\r","\n",$in); - $lines=split("\n",$in); + $lines=explode("\n",$in); return trim($lines[0]); } if($_POST['action']=="send") { if($_POST['to'] && $_POST['subject'] && $_POST['message'] && $_POST['from'] && $_POST['fromemail']) { if(isEmailAddress($_POST['fromemail'])) { - list($id,$md5email)=split(":",$_POST['to']); + list($id,$md5email)=explode(":",$_POST['to']); $q=mysql_query("SELECT * FROM users WHERE uid='$id' ORDER BY year DESC LIMIT 1"); $r=mysql_fetch_object($q); //if a valid selection is made from the list, then this will always match. diff --git a/db/db.update.129.user.inc.php b/db/db.update.129.user.inc.php index cb7da30a..ddc6aaad 100644 --- a/db/db.update.129.user.inc.php +++ b/db/db.update.129.user.inc.php @@ -727,7 +727,7 @@ function db129_user_personal_fields($type) $ret = array('firstname','lastname','email'); $fields = $config["{$type}_personal_fields"]; if($fields != '') { - $fields = split(',', $fields); + $fields = explode(',', $fields); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } @@ -741,7 +741,7 @@ function db129_user_personal_required_fields($type) $ret = array('firstname','lastname','email'); $required = $config["{$type}_personal_required"]; if($required != '') { - $fields = split(',', $required); + $fields = explode(',', $required); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } diff --git a/db/db.update.146.php b/db/db.update.146.php index 4c1059f3..5d169767 100644 --- a/db/db.update.146.php +++ b/db/db.update.146.php @@ -9,7 +9,7 @@ function db_update_146_pre() function db_update_146_handle($name, $email, $phone, $type) { $un = $email; - list($first, $last) = split(' ', $name, 2); + list($first, $last) = explode(' ', $name, 2); /* Find the user */ if($email != '') { diff --git a/db/db.update.146.user.inc.php b/db/db.update.146.user.inc.php index 51be3616..f0d1e567 100644 --- a/db/db.update.146.user.inc.php +++ b/db/db.update.146.user.inc.php @@ -851,7 +851,7 @@ function db146_user_personal_fields($type) $ret = array('firstname','lastname','email'); $fields = $config["{$type}_personal_fields"]; if($fields != '') { - $fields = split(',', $fields); + $fields = explode(',', $fields); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } @@ -865,7 +865,7 @@ function db146_user_personal_required_fields($type) $ret = array('firstname','lastname','email'); $required = $config["{$type}_personal_required"]; if($required != '') { - $fields = split(',', $required); + $fields = explode(',', $required); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } diff --git a/db/db.update.149.user.inc.php b/db/db.update.149.user.inc.php index 88c121dc..8ecf6c81 100644 --- a/db/db.update.149.user.inc.php +++ b/db/db.update.149.user.inc.php @@ -851,7 +851,7 @@ function db149_user_personal_fields($type) $ret = array('firstname','lastname','email'); $fields = $config["{$type}_personal_fields"]; if($fields != '') { - $fields = split(',', $fields); + $fields = explode(',', $fields); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } @@ -865,7 +865,7 @@ function db149_user_personal_required_fields($type) $ret = array('firstname','lastname','email'); $required = $config["{$type}_personal_required"]; if($required != '') { - $fields = split(',', $required); + $fields = explode(',', $required); foreach($fields as $f) { $ret = array_merge($ret, $user_personal_fields_map[$f]); } diff --git a/db/db.update.62.php b/db/db.update.62.php index a3d99f54..d55e6adf 100644 --- a/db/db.update.62.php +++ b/db/db.update.62.php @@ -29,7 +29,7 @@ function db_update_62_post() global $config; foreach($update_62_committee as $c) { - list($fn, $ln) = split(' ', $c['name'], 2); + list($fn, $ln) = explode(' ', $c['name'], 2); $username = $c['email']; $fn = mysql_escape_string($fn); $ln = mysql_escape_string($ln); diff --git a/fair_additional_materials.inc.php b/fair_additional_materials.inc.php index 5b3fa741..5c216313 100644 --- a/fair_additional_materials.inc.php +++ b/fair_additional_materials.inc.php @@ -90,7 +90,7 @@ function fair_additional_materials($fair, $award, $year) $rep->nextLine(); $rep->addTextX("Grade: _____________ Date of birth: _____________", $x); $rep->addTextX("{$s['grade']}", $x+0.75); - list($y,$m,$d) = split('-',$s['dateofbirth']); + list($y,$m,$d) = explode('-',$s['dateofbirth']); $dob = date('M j, Y', mktime(0,0,0,$m,$d,$y)); $rep->addTextX("$dob", $x+3); $rep->nextLine(); diff --git a/fair_stats.php b/fair_stats.php index 39713906..425e2ace 100644 --- a/fair_stats.php +++ b/fair_stats.php @@ -112,7 +112,7 @@ $q = mysql_query("SELECT * FROM fairs WHERE id='{$u['fairs_id']}'"); echo mysql_error(); $fair = mysql_fetch_assoc($q); -$s = split(',', $fair['gather_stats']); +$s = explode(',', $fair['gather_stats']); foreach($s as $k) { if(trim($k) == '') continue; $server_config[$k] = true; diff --git a/register_participants_isefforms.php b/register_participants_isefforms.php index de721ba1..1133f81f 100644 --- a/register_participants_isefforms.php +++ b/register_participants_isefforms.php @@ -120,7 +120,7 @@ echo mysql_error(); move_uploaded_file($_FILES['form']['tmp_name'][$k],$TCFORMSLOCATION."/".$CURRENT_FAIRYEAR."/$r->id/$k.pdf"); $pdfinfo=exec("pdfinfo ".$TCFORMSLOCATION."/".$CURRENT_FAIRYEAR."/$r->id/$k.pdf |grep \"Pages\""); - list($pgtext,$pgs)=split(":",$pdfinfo); + list($pgtext,$pgs)=explode(":",$pdfinfo); $pgs=trim($pgs); if($pgs) $p="'$pgs'"; else $p="null"; @@ -160,7 +160,7 @@ echo mysql_error(); //now figur out some other info about the PDF $pdfinfo=exec("pdfinfo ".$TCFORMSLOCATION."/".$CURRENT_FAIRYEAR."/$r->id.pdf |grep \"Pages\""); - list($pgtext,$pgs)=split(":",$pdfinfo); + list($pgtext,$pgs)=explode(":",$pdfinfo); $pgs=trim($pgs); if($pgs) $pgquery=", ReportPages='$pgs'"; mysql_query("UPDATE TC_Projects SET ReportFile='".$r->id.".pdf' $pgquery WHERE id='".$r->id."'"); diff --git a/register_participants_students.php b/register_participants_students.php index 02b68ce8..c27d09b5 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -343,7 +343,7 @@ if($config['participant_student_personal']=="yes") echo "
".i18n("Date of Birth")."\n"; - list($year,$month,$day)=split("-",$studentinfo->dateofbirth); + list($year,$month,$day)=explode("-",$studentinfo->dateofbirth); echo "
"; emit_day_selector("day[$x]",$day); echo "\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))); }