aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-19 17:19:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-19 17:19:12 +0200
commit3705dcce3f72da6f29605ef293f6ab8653b20e4a (patch)
tree19a13b66569e5bd0e06de191407b8c38abbff48b
parentUpdate README url. (diff)
downloadoldgen-zmusic-3705dcce3f72da6f29605ef293f6ab8653b20e4a.tar.xz
oldgen-zmusic-3705dcce3f72da6f29605ef293f6ab8653b20e4a.zip
Eregi is depreciated. Suppress warning.
-rw-r--r--index.php4
-rw-r--r--login.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index a0e166c..361f295 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php header("Content-Type: text/html; charset=UTF-8"); ?>
<?php require_once("authenticate.php"); ?>
-<?php if(!eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) && !eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
+<?php if(!@eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) && !@eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php } ?>
<html>
@@ -8,7 +8,7 @@
<title><?php echo SITE_NAME; ?></title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="swfobject.js"></script>
-<?php if(eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) || eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
+<?php if(@eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) || @eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
<script language="JavaScript" src="ieadditions.js"></script>
<?php } ?>
<script language="JavaScript" src="musicajax.js"></script>
diff --git a/login.php b/login.php
index 7f78852..7f87c3c 100644
--- a/login.php
+++ b/login.php
@@ -1,4 +1,4 @@
-<?php if(!eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) && !eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
+<?php if(!@eregi("MSIE", $_SERVER['HTTP_USER_AGENT']) && !@eregi("Internet Explorer", $_SERVER['HTTP_USER_AGENT'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php } ?>
<html>