From 8eb24b3be57d56fa759a03fad15ec2d6a1219cce Mon Sep 17 00:00:00 2001 From: Mo Elzubeir Date: Sat, 17 Oct 2020 18:25:58 -0500 Subject: [PATCH] Updating configs and removing older files --- conditions.php~ | 19 - includes/conf.php | 4 +- includes/connect.php | 6 +- includes/connect.php~ | 20 - index.php | 3 +- index.php.original | 3020 ----------------------------------------- index.php~ | 3020 ----------------------------------------- issues.php | 3 +- issues.php~ | 1425 ------------------- login.php~ | 219 --- 10 files changed, 7 insertions(+), 7732 deletions(-) delete mode 100644 conditions.php~ delete mode 100644 includes/connect.php~ delete mode 100644 index.php.original delete mode 100644 index.php~ delete mode 100644 issues.php~ delete mode 100644 login.php~ diff --git a/conditions.php~ b/conditions.php~ deleted file mode 100644 index 9417ea5..0000000 --- a/conditions.php~ +++ /dev/null @@ -1,19 +0,0 @@ - -// if($_SESSION['moms_uid'] == '1' OR $_SESSION['moms_uid'] == 3790) - if($_SESSION['moms_uid'] == '1') - { - - - - } - else - if($_SESSION['moms_type'] == "super_admin") - { - - } - else - if($_SESSION['moms_type'] == "admin") - { - - - } \ No newline at end of file diff --git a/includes/conf.php b/includes/conf.php index fffcc0e..6f189f9 100644 --- a/includes/conf.php +++ b/includes/conf.php @@ -3,11 +3,11 @@ include("connect.php"); $_RATEPATH = "/data/adrates/"; - $_HOSTURL = "http://moms.emediasearch.com/"; + $_HOSTURL = "http://moms.localhost/"; $lang_arr = array(1=>'English',2=>'Arabic',3=>'Arabic/English',4=>'English/French',5=>'Arabic/English/French',6=>'French',7=>'Urdu',8=>'Russian',9=>' German',10=>'Farsi',11=>'Malayalam',12=>'Mandarin'); -?> \ No newline at end of file +?> diff --git a/includes/connect.php b/includes/connect.php index 6546611..cd7b86f 100644 --- a/includes/connect.php +++ b/includes/connect.php @@ -5,10 +5,10 @@ { //Database Connection $host = "localhost"; - $user = "emediasearch"; - $pass = "iw2blm"; + $user = "moms"; + $pass = "chngeme"; $conn = mysql_connect($host,$user,$pass); - mysql_select_db("emediasearch"); + mysql_select_db("moms"); /////////////////////////////////////////////// } diff --git a/includes/connect.php~ b/includes/connect.php~ deleted file mode 100644 index 0e16363..0000000 --- a/includes/connect.php~ +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/index.php b/index.php index f985bdc..d15ee1a 100644 --- a/index.php +++ b/index.php @@ -2954,8 +2954,7 @@ function issue_search(page) {
diff --git a/index.php.original b/index.php.original deleted file mode 100644 index c16263b..0000000 --- a/index.php.original +++ /dev/null @@ -1,3020 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- - -
- - - -
- -
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/index.php~ b/index.php~ deleted file mode 100644 index cb6888d..0000000 --- a/index.php~ +++ /dev/null @@ -1,3020 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- - -
- - - -
- -
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/issues.php b/issues.php index 1cb327b..f1c79a7 100644 --- a/issues.php +++ b/issues.php @@ -1361,8 +1361,7 @@ function broad_filter_type(getValue) {
diff --git a/issues.php~ b/issues.php~ deleted file mode 100644 index 58dadd6..0000000 --- a/issues.php~ +++ /dev/null @@ -1,1425 +0,0 @@ - - - - - - - - - - - - - - - -function getFrequency(getval){ - if(getval=='10'){ - $("#freq_date").html(""); - } - else if(getval=='12'){ - - $("#freq_date").html(""); - - } - -} - - - - -
- -
-
- - -
- - - -
- -
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/login.php~ b/login.php~ deleted file mode 100644 index 3e43b19..0000000 --- a/login.php~ +++ /dev/null @@ -1,219 +0,0 @@ -0) - { - - $_SESSION['moms_uname'] = $result['username']; - $_SESSION['moms_uid'] = $result['id_users']; - $_SESSION['moms_type'] = $result['user_type']; - - if(!empty($_POST['remember'])) - { - - setcookie("user_name", $_SESSION['moms_uname'], time()+3600, "/"); - setcookie("user_id", $_SESSION['moms_uid'], time()+3600, "/"); - setcookie("admin_password", $result['password'], time()+3600, "/"); - setcookie("rem", $_POST['remember'], time()+3600, "/"); - } - if(empty($_POST['remember'])) - { setcookie("rem","", time()+3600, "/"); - setcookie("user_name", "", time()+3600, "/"); - setcookie("user_id", "", time()+3600, "/"); - setcookie("admin_password", "", time()+3600, "/"); - $_COOKIE['user_name'] = ""; - $_COOKIE['admin_password'] = ""; - - } - - - - header('Location:index.php'); - } - else - { - $msg='login_err'; - header('Location:login.php?msg='.$msg); - } - } -} - - - -?> - - - - Media Outlet Management System - - - - - - - - - - - - - -
- -
-

Media Outlet Management System

-
- - -
-
-
- -
- - - - - - - - \ No newline at end of file