Пример #1
0
require_once "./geshi/geshi.php";
require_once "./class/utilities_class.php";
require_once "./class/phpfiglet_class.php";
require_once "./class/mybb_class.php";
require_once "./class/html_class.php";
require_once "./class/cookie_class.php";
require_once "./class/admin_class.php";
require_once "./class/post_class.php";
/*
 * Create instance of all available Class object
 */
$post_inst = new post();
$phpFiglet = new phpFiglet();
$inst_post = new mybb_style();
$htmlinst = new html();
$admin = new adminclass();
$util = new utilities();
$cook = new cookie();
/*
 * Check if sqlite database file is not existed
 * If yes, then redirect to create.php
 */
if (sqlite_file == '' || !file_exists(sqlite_file)) {
    $htmlinst->change_location("./create.php");
}
$_SERVER['REMOTE_ADDR'] = $util->get_client_ip($_SERVER);
$phpFiglet->loadFont("./figlet/spliff.flf");
$db = new SQLite3(sqlite_file, SQLITE3_OPEN_READWRITE);
$title = $db->query("SELECT Name, Value FROM Options WHERE Name='title';");
$title = $title->fetchArray(SQLITE3_ASSOC);
/*
Пример #2
0
<?php

session_start();
require "admin-class.php";
$adminOb = new adminclass();
if (isset($_SESSION['user'])) {
    //do nothing
} else {
    $adminOb->redirect("index.php");
}
$showfeaturedCategory = $adminOb->showfeaturedCategory();
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css"/>
<link rel="shortcut icon" href="../images/icon.ico"/>
<title>Orkut Papa-Home</title>

<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div id="wrapper">
	<div id="header">
    	<div id="header-content">
	    <img src="../images/orkut-papa.jpg" alt="Orkut Papa, Orkut Scraps" width="200"/> 
Пример #3
0
<html>
  <head>
    <?php 
require_once "./config.php";
require_once "./class/utilities_class.php";
require_once "./class/cookie_class.php";
require_once "./class/admin_class.php";
require_once "./class/html_class.php";
require_once "./class/post_class.php";
$inst = new utilities();
$cook = new cookie();
$admcl = new adminclass();
$htmlinst = new html();
$post = new post();
$_SERVER['REMOTE_ADDR'] = $inst->get_client_ip($_SERVER);
if (sqlite_file == '') {
    $htmlinst->change_location("create.php");
} elseif (!file_exists(sqlite_file)) {
    $htmlinst->change_location("create.php");
}
$db = new SQLite3(sqlite_file, SQLITE3_OPEN_READWRITE);
$title = $db->query("SELECT Name, Value FROM Options WHERE Name='title';");
$title = $title->fetchArray(SQLITE3_ASSOC);
?>
    <title><?php 
echo htmlentities($title['Value']);
?>
 > ADMiN PANEL</title>
    <link rel="stylesheet" href="./style.css" />
    <script type="text/javascript" src="./js/jstz.min.js"></script>
    <script type='text/javascript' src="./js/script.js"></script>
Пример #4
0
<?php

session_start();
include "includes/simpleimage.php";
$thumb = new SimpleImage();
require "admin-class.php";
$adminOb = new adminclass();
if (isset($_SESSION['user'])) {
    //do nothing
} else {
    $adminOb->redirect("index.php");
}
if (isset($_POST['submit'])) {
    $totalFile = count($_FILES);
    $categoryId = $_POST['category'];
    $catePath = $adminOb->getsulgByCid($categoryId);
    for ($i = 0; $i < $totalFile; $i++) {
        $getFilename = "myinput" . $i;
        $scrapimg = $_FILES[$getFilename]['tmp_name'];
        $scrapName = stripslashes($_FILES[$getFilename]['name']);
        $getExtension = $adminOb->getExtension($scrapName);
        $NewName = $adminOb->nameGen();
        $finalScrapName = $catePath . "-" . $NewName . "." . $getExtension;
        $path = "../scrap/" . $catePath;
        move_uploaded_file($scrapimg, $path . '/' . $finalScrapName);
        //for Scrap type
        if ($getExtension == "jpg" || $getExtension == "png") {
            $scrapType = "I";
        } elseif ($getExtension == 'gif') {
            $scrapType = "G";
        } else {
Пример #5
0
<?php

session_start();
require "admin-class.php";
$adminOb = new adminclass();
$getCate = $adminOb->populateCate();
if (isset($_SESSION['user'])) {
    //do nothing
} else {
    $adminOb->redirect("index.php");
}
if (isset($_POST['submit'])) {
    for ($i = 0; $i < count($getCate); $i++) {
        $a = $getCate[$i]['cid'];
        $arr[$i]['result'] = $_POST[$a];
        $arr[$i]['cid'] = $getCate[$i]['cid'];
    }
    echo $adminOb->updateFeaturedCate($arr);
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css"/>
<link rel="shortcut icon" href="../images/icon.ico"/>
<title>Orkut Papa-Home</title>

<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
Пример #6
0
<?php

require "admin-class.php";
$admonOb = new adminclass();
echo $_SESSION['user'];
if (isset($_POST['submit'])) {
    $loginResult = $admonOb->admin_login($_POST['name'], $_POST['password']);
    if ($loginResult) {
        ?>
			<script type="text/javascript" language="javascript">
			alert("<?php 
        echo $loginResult;
        ?>
");
			</script>
		<?php 
    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css"/>
<link rel="shortcut icon" href="../images/icon.ico"/>
<title>Orkut Papa-Home</title>
</head>
<body>
<div id="wrapper">
	<div id="header">