Updating configs and removing older files

This commit is contained in:
Mo Elzubeir
2020-10-17 18:25:58 -05:00
parent 1f43248510
commit 8eb24b3be5
10 changed files with 7 additions and 7732 deletions
-19
View File
@@ -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")
{
}
+2 -2
View File
@@ -3,11 +3,11 @@
include("connect.php"); include("connect.php");
$_RATEPATH = "/data/adrates/"; $_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'); $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');
?> ?>
+3 -3
View File
@@ -5,10 +5,10 @@
{ {
//Database Connection //Database Connection
$host = "localhost"; $host = "localhost";
$user = "emediasearch"; $user = "moms";
$pass = "iw2blm"; $pass = "chngeme";
$conn = mysql_connect($host,$user,$pass); $conn = mysql_connect($host,$user,$pass);
mysql_select_db("emediasearch"); mysql_select_db("moms");
/////////////////////////////////////////////// ///////////////////////////////////////////////
} }
-20
View File
@@ -1,20 +0,0 @@
<?php
$con = 0;
if($con == 0) /// for local server
{
//Database Connection
$host = "84.45.58.125";
$user = "emediasearch";
$pass = "iw2blm";
$conn = mysql_connect($host,$user,$pass);
mysql_select_db("emediasearch");
///////////////////////////////////////////////
}
define("RECORD_PER_PAGE",10);
define("PAGE_LINKS_PER_PAGE", 4);
?>
+1 -2
View File
@@ -2954,8 +2954,7 @@ function issue_search(page) {
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-md-12 footer"> <div class="col-md-12 footer">
<p id="footer-text">Copyright &copy; 2015 <a href="http://www.mediastow.com/" target="_blank">Mediastow</a> <p id="footer-text">Copyright &copy; 2020 <a href="https://allcontent.io/" target="_blank">ALLCONTENT Corporation</a></p>
| <a href="http://www.emediasearch.com" target="_blank">emediasearch</a></p>
</div><!-- /.footer --> </div><!-- /.footer -->
</div> </div>
</div> <!-- /.container-fluid --> </div> <!-- /.container-fluid -->
-3020
View File
File diff suppressed because it is too large Load Diff
-3020
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -1361,8 +1361,7 @@ function broad_filter_type(getValue) {
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-md-12 footer"> <div class="col-md-12 footer">
<p id="footer-text">Copyright &copy; 2015 <a href="http://www.mediastow.com/" target="_blank">Mediastow</a> <p id="footer-text">Copyright &copy; 2020 <a href="https://allcontent.io/" target="_blank">ALLCONTENT Corporation</a></p>
| <a href="http://www.emediasearch.com" target="_blank">emediasearch</a></p>
</div><!-- /.footer --> </div><!-- /.footer -->
</div> </div>
</div> <!-- /.container-fluid --> </div> <!-- /.container-fluid -->
-1425
View File
File diff suppressed because it is too large Load Diff
-219
View File
@@ -1,219 +0,0 @@
<?php
ob_start();
session_start();
include('includes/connect.php');
include('includes/conf.php');
include('messages.php');
if(isset($_POST['btn_login']) || $_POST['btn_login'] != "")
{
$username = trim($_POST['username']);
$passwd = trim($_POST['password']);
if($username=='' || $passwd=='')
{
$msg='blank';
header('Location:login.php?msg='.$msg);
}
else
{
$selAdmin = mysql_query("select * from users where username='".$username."' AND password=OLD_PASSWORD('".$passwd."') AND user_type != 'user'");
$result = mysql_fetch_array($selAdmin);
if(mysql_num_rows($selAdmin)>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);
}
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Media Outlet Management System</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Expand, contract, animate forms with jQuery wihtout leaving the page" />
<meta name="keywords" content="expand, form, css3, jquery, animate, width, height, adapt, unobtrusive javascript"/>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/ChunkFive_400.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1',{ textShadow: '1px 1px #fff'});
Cufon.replace('h2',{ textShadow: '1px 1px #fff'});
Cufon.replace('h3',{ textShadow: '1px 1px #000'});
Cufon.replace('.back');
</script>
</head>
<script type="text/javascript">
function validation(){
if(document.getElementById('username').value=="")
{
alert("Username can't be blank.");
document.getElementById('username').focus();
return false;
}
if(document.getElementById('password').value=="")
{
alert("Password can't be blank.");
document.getElementById('password').focus();
return false;
}
}
</script>
<body>
<div class="wrapper">
<div class="content">
<h2>Media Outlet Management System</h2>
<div id="form_wrapper" class="form_wrapper">
<form method="post" action="" class="login active" onsubmit="return validation()">
<h3>Login</h3>
<div>
<label>Username:</label>
<input type="text" id="username" name="username" value="<?php echo $_COOKIE['user_name']; ?>" />
</div>
<div>
<label>Password:</label>
<input type="password" id="password" name="password" value="<?php echo $_COOKIE['admin_password'];?>"value="<?php echo $_COOKIE['user_name']; ?>" />
</div>
<div class="bottom">
<!--<div class="remember"><input type="checkbox" name="remember" value="1" <?php if ($_COOKIE['rem']<>"") { echo "CHECKED";}?> /><span>Keep me logged in</span></div>-->
<input type="submit" value="Login" name="btn_login"></input>
<div class="clear"></div>
</div>
</form>
</div>
<div class="clear"></div>
</div>
</div>
<!-- The JavaScript -->
<script type="text/javascript" src="https://ajax.googlemoms.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
//the form wrapper (includes all forms)
var $form_wrapper = $('#form_wrapper'),
//the current form is the one with class active
$currentForm = $form_wrapper.children('form.active'),
//the change form links
$linkform = $form_wrapper.find('.linkform');
//get width and height of each form and store them for later
$form_wrapper.children('form').each(function(i){
var $theForm = $(this);
//solve the inline display none problem when using fadeIn fadeOut
if(!$theForm.hasClass('active'))
$theForm.hide();
$theForm.data({
width : $theForm.width(),
height : $theForm.height()
});
});
//set width and height of wrapper (same of current form)
setWrapperWidth();
/*
clicking a link (change form event) in the form
makes the current form hide.
The wrapper animates its width and height to the
width and height of the new current form.
After the animation, the new form is shown
*/
$linkform.bind('click',function(e){
var $link = $(this);
var target = $link.attr('rel');
$currentForm.fadeOut(400,function(){
//remove class active from current form
$currentForm.removeClass('active');
//new current form
$currentForm= $form_wrapper.children('form.'+target);
//animate the wrapper
$form_wrapper.stop()
.animate({
width : $currentForm.data('width') + 'px',
height : $currentForm.data('height') + 'px'
},500,function(){
//new form gets class active
$currentForm.addClass('active');
//show the new form
$currentForm.fadeIn(400);
});
});
e.preventDefault();
});
function setWrapperWidth(){
$form_wrapper.css({
width : $currentForm.data('width') + 'px',
height : $currentForm.data('height') + 'px'
});
}
/*
for the demo we disabled the submit buttons
if you submit the form, you need to check the
which form was submited, and give the class active
to the form you want to show
*/
$form_wrapper.find('input[type="submit"]')
.click(function(e){
e.preventDefault();
});
});
</script>
</body>
</html>