Ejemplo n.º 1
0
function validate_redirecting()
{
    if (!empty($_SESSION['mno'])) {
        if ($rdrct = set_redirect_to_lookdetails_if_not_login()) {
            //echo "len = ".strlen($rdrct)."<br>";
            if (strlen($rdrct) != 17) {
                jumps($rdrct);
                unset($_SESSION['redirect']);
            }
        }
    }
}
Ejemplo n.º 2
0
<?php

session_start();
require "connect.php";
require '../function.php';
?>


<?php 
if (!empty($_GET['logoasdasdawerqv24545rtweradwerqwegq25gw435dwut'])) {
    logout('adm_no');
}
if (empty($_SESSION['adm_no'])) {
    // echo "sessiont is empty";
    // jumps('adminlogin');
    jumps('index.php');
}
?>

<html>
	<head><title>View Uploaded Looks</title></head>
</html>
<!doctype html>
<html class="no-js" lang="en">
<head>
	<style type="text/css">

		body  { background-color:  #ffffff; }
		.head {
			background-color: #000;
			height: 50px;
Ejemplo n.º 3
0
<?php

session_start();
require "../connect.php";
require '../../function.php';
?>

<?php 
if (!empty($_GET['logoasdasdawerqv24545rtweradwerqwegq25gw435dwut'])) {
    logout('adm_no');
}
if (empty($_SESSION['adm_no'])) {
    jumps('../index.php');
}
if (isset($_POST["submit1"])) {
    require "img_save.php";
    if (insert_ads_info($_POST['client_name'], $_POST['company_name'], $_POST['link'], img_get_file_ext($_FILES["file"]["name"]))) {
        $lastid_as_img_name = get_ads_last_id('ads', 'order by ano desc');
        move_img_to_folder("../../images/ads/", $lastid_as_img_name);
    }
}
if (!empty($_POST["del_img"])) {
    if (delete('ads', array('ano', img_get_file_name($_POST["del_img"])))) {
        unlink("../../images/ads/{$_POST['del_img']}");
    }
}
?>
<html>
	<head><title>AD's Panel</title></head>
	<link rel="stylesheet" type="text/css" href="style.css">
</html>