Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     if ($this->tpl == '') {
         $this->tpl = bpBase::loadAppClass('template', 'template', 1);
     }
 }
Beispiel #2
0
 function __construct()
 {
     //$this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $checkAccess = $this->exitWithoutAccess('system', 'manage');
     $this->dbConfig = array('default' => array('hostname' => DB_HOSTNAME, 'database' => DB_NAME, 'username' => DB_USER, 'password' => DB_PASSWORD, 'tablepre' => TABLE_PREFIX, 'charset' => DB_CHARSET, 'type' => 'mysql', 'debug' => DEBUG, 'pconnect' => 0, 'autoconnect' => 0));
     bpBase::loadSysClass('db_factory');
     $this->db = db_factory::get_instance($this->dbConfig)->get_database('default');
 }
Beispiel #3
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess();
     $this->channel_db = bpBase::loadModel('channel_model');
     $this->channelObj = bpBase::loadAppClass('channelObj', 'channel');
     if (isset($_GET['siteid']) && $_GET['siteid'] != $this->siteid) {
         exit;
     }
 }
Beispiel #4
0
 function __construct()
 {
     $this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $this->exitWithoutAccess();
     if ($this->updateArr == '') {
         include 'updateFile' . DIRECTORY_SEPARATOR . 'list.php';
         $this->updateArr = $update_arr;
     }
 }
Beispiel #5
0
	function __construct() {
		parent::__construct();
		$this->exitWithoutAccess('template','manage');
		$this->template_db = bpBase::loadModel('template_model');
		$this->templateClass=bpBase::loadAppClass('template','template');
		$this->cats=$this->templateClass->cats();
		if (isset($_GET['siteid'])&&intval($_GET['siteid'])!=$this->siteid){
			exit();
		}
	}
Beispiel #6
0
 function __construct()
 {
     $this->article_db = bpBase::loadModel('article_model');
     $this->content_db = bpBase::loadModel('content_model');
     $this->articleObj = bpBase::loadAppClass('articleObj', 'article');
     parent::__construct();
     $this->exitWithoutAccess();
     if (isset($_GET['site']) && $_GET['site'] != $this->siteid) {
         exit;
     }
 }
Beispiel #7
0
This file is part of (C)qpage, do not touch
FILE: manage.php

This script manages anything in the database.
-------------------------------------------------------------------
Author: Ongaro Mattia
Begin: lun dec 24 2009

-------------------------------------------------------------------
(C) Copyright 2009: Ongaro Mattia (see list in AUTHOR.TXT file)

See LICENSE.TXT file for licensing details.
*/
session_start();
require_once 'lib-php/manage.php';
$manage = new manage();
control();
?>
<html>
  <head>
	<meta name="robots" content="noindex, nofollow">

  	<link rel="shortcut icon" href="images/favicon.bmp"> 
	<link rel="icon" type="image/gif" href="images/favicon.bmp"> 

    <title>Admin Page</title>

    <link rel='stylesheet' type='text/css' href='css/admin.css'>
	
	<script type='text/javascript'>
		var last;
Beispiel #8
0
 public function __construct()
 {
     parent::__construct();
     $this->menus = $this->menus();
 }
Beispiel #9
0
 function __construct()
 {
     $this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $this->exitWithoutAccess();
 }
Beispiel #10
0
<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
require_once "lib/database_class.php";
require_once "lib/manage_class.php";
require_once "lib/config_class.php";
$db = new database();
$manage = new manage($db);
$config = new config();
if ($_POST["AuthUser"]) {
    $_SESSION["login"] = $_POST["login"];
    $r = $manage->checkUser();
} elseif ($_POST["reg"]) {
    $r = $manage->regUser();
} elseif ($_POST["reg_step2"]) {
    $r = $manage->regUserStep2($_POST);
} elseif ($_POST["auth"]) {
    $r = $manage->AuthUser();
} elseif ($_POST["vote"]) {
    $r = $manage->Vote();
} elseif ($_POST["edit"]) {
    unset($_SESSION["login"]);
    $r = $config->address;
} elseif ($_POST["image_editor"]) {
    $_SESSION["image_id"] = $_POST["image_id"];
    $r = $config->address . "?view=image_editor";
} elseif ($_POST["delete_image"]) {
    $_SESSION["image_id"] = $_POST["image_id"];
    $r = $config->address . "?view=image_delete";
} elseif ($_POST["delete_the_image"]) {
    {
        session_start();
        if ($_SESSION['login_status'] == "" && $_SESSION['user'] == "") {
            header("Location:admin.php");
        } else {
            $this->show_info();
        }
    }
    public function show_info()
    {
        $dir = "http://duomeiti.sky31.com/multimedia/media/";
        $sql = "select * from media";
        $conn = new mysqli(HOST, UserName, PassWord, DataBase);
        if ($conn->connect_error) {
            die('数据库连接错误:' . $conn->connect_error);
        }
        $conn->query("set names UTF8");
        $result = $conn->query($sql);
        while ($row = $result->fetch_assoc()) {
            $filename1 = $row['school_no'] . ".mp3";
            $filename2 = $row['school_no'] . ".wav";
            echo "<tr>\n                <td>{$row['UserID']}</td>\n                <td>{$row['name']}</td>\n                <td>{$row['sex']}</td>\n                <td>{$row['school_no']}</td>\n                <td>{$row['mobile']}</td>\n                <td>{$row['school']}</td>\n                <td>{$row['qq']}</td>\n                <td>{$row['used']},{$row['other']}</td>\n                <td>{$row['interesting']}</td>\n                <td>{$row['learn']}</td>\n                <td>{$row['media_type']}</td>\n                <td><a href ={$dir}{$filename1}>mp3</a>&nbsp;&nbsp;<a href ={$dir}{$filename2} >wav</a></td>\n                <td><a href='sudo.php?action=del&UserID={$row['UserID']}' class='btn btn-primary btn-xs'>删除</a>&nbsp;&nbsp;&nbsp;<a href='sudo.php?action=pass&UserID={$row['UserID']}' class='btn btn-danger btn-xs'>录取</a>&nbsp;&nbsp;&nbsp;<a href='sudo.php?action=pending&UserID={$row['UserID']}' class='btn btn-warning btn-xs'>待定</a>&nbsp;&nbsp;&nbsp;<a href='sudo.php?action=die_out&UserID={$row['UserID']}' class='btn btn-success btn-xs'>淘汰</a></td>\n                <td>{$row['status']}</td>\n\n            </tr>\n\n\n            ";
        }
    }
}
$show = new manage();
$show->is_login();
echo " </table>\n    </div>\n</div>\n</div>\n<div class=\"row\">\n    <div class=\"col-md-12\">\n        <h6><font color=\"#3a87ad\">&copy; 2004-2015 多媒体</font></h6>\n    </div>\n</div>\n</div>\n</body>\n</html>";
?>

Beispiel #12
0
" >
  </li>
  <?php 
}
?>
      <li id="drop" onclick="dropdown();" >
         <?php 
echo $uname['first_name'];
?>
           <ul id="dropmenu">
              <li>
              <a href="cart.php?action=cart" > 
                
                View Cart <span class ="label"><?php 
require_once "manage.php";
$m = new manage();
$values = $m->getCart($_SESSION['email']);
echo count($values);
?>
 </span></a>  
              </li>
              <li><a href="history.php?action=history">History</a></li><br>
              <li><a href="edit_profile.php">Edit Profile</a></li><br>
             <li ><a href="show_products.php"> All Products </a>
              </li><br>
              <li>
                <a name="logout" href="logout.php"> Log out </a>
              </li>
 
      </ul>
     
Beispiel #13
0
    ?>
</p>
        </li>
        <li class="description"><?php 
    echo $values[$i]['summary'];
    ?>
</li>
        <li class="cta-button">
    
    <p><a href="buy.php?action=add&pid=<?php 
    echo $pid;
    ?>
"> Add to Cart</a></p></li>
    </ul>
    </li>
    
<?php 
}
?>
</ul>
</div>
<?php 
$m = new manage();
if (isset($_GET['action']) && $_GET['action'] == "add") {
    $m->addtocart($_SESSION["email"], $pid);
}
?>
      
</div>
</body>
</html>s
Beispiel #14
0
         $R = $do->get_one();
         if (!$R || $R['status'] != 3 || $R['gid'] != $gid) {
             continue;
         }
         $do->recycle($rid);
         if ($message) {
             send_message($R['username'], lang($L['manage_msg_title'], array($L['my_manage_type_reply'], get_intro($R['content'], 20), $L['my_manage_type_del'])), lang($L['manage_msg_content'], array($MOD['linkurl'] . 'goto.php?itemid=' . $R['itemid'], nl2br($reason), $_username)));
         }
         $title = addslashes(get_intro($R['content'], 50));
         $db->query("INSERT INTO {$table}_manage (gid,rid,username,addtime,typeid,title,content,reason,message) VALUES ('{$gid}','{$rid}','{$_username}','{$DT_TIME}','1','{$title}','{$content}','{$reason}','{$message}')");
     }
     dmsg($L['reply_success_del'], $forward);
     break;
 default:
     require MD_ROOT . '/manage.class.php';
     $do = new manage();
     $sfields = $L['my_fields_manage'];
     $dfields = array('title', 'reason', 'content');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     $typeid = isset($typeid) ? intval($typeid) : 0;
     $message = isset($message) ? intval($message) : -1;
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $condition = "username='******'";
     if ($keyword) {
         $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
     }
     if ($typeid) {
         $condition .= " AND typeid='{$typeid}'";
     }
     if ($message > -1) {
         $condition .= " AND message='{$message}'";
Beispiel #15
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess('system', 'manage');
 }
Beispiel #16
0
<?php

defined('DT_ADMIN') or exit('Access Denied');
$gid = isset($gid) ? intval($gid) : 0;
require MD_ROOT . '/manage.class.php';
$do = new manage();
$menus = array(array('记录列表', '?moduleid=' . $moduleid . '&file=' . $file . '&gid=' . $gid), array('记录清理', '?moduleid=' . $moduleid . '&file=' . $file . '&action=clear', 'onclick="if(!confirm(\'为了系统安全,系统仅删除30天之前的记录\\n此操作不可撤销,请谨慎操作\')) return false"'));
switch ($action) {
    case 'clear':
        $time = $today_endtime - 30 * 86400;
        $db->query("DELETE FROM {$table}_manage WHERE addtime<{$time}");
        dmsg('清理成功', $forward);
        break;
    default:
        $sfields = array('主题/回复', '操作原因', '操作内容', '操作人');
        $dfields = array('title', 'reason', 'content', 'username');
        isset($fields) && isset($dfields[$fields]) or $fields = 0;
        $typeid = isset($typeid) ? intval($typeid) : 0;
        $tid = isset($tid) ? intval($tid) : 0;
        $rid = isset($rid) ? intval($rid) : 0;
        $message = isset($message) ? intval($message) : -1;
        $fields_select = dselect($sfields, 'fields', '', $fields);
        $condition = '';
        if ($keyword) {
            $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
        }
        if ($typeid) {
            $condition .= " AND typeid='{$typeid}'";
        }
        if ($gid) {
            $condition .= " AND gid='{$gid}'";
Beispiel #17
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess();
 }
Beispiel #18
0
" >
  </li>
  <?php 
    }
    ?>
      <li id="drop" onclick="dropdown();" >
         <?php 
    echo $uname['first_name'];
    ?>
           <ul id="dropmenu">
              <li>
              <a href="cart.php?action=cart" > 
                
                View Cart <span class ="label"><?php 
    require_once "manage.php";
    $m = new manage();
    $values = $m->getCart($_SESSION['email']);
    echo count($values);
    ?>
 </span></a>  
              </li>
              <li><a href="history.php?action=history">History</a></li><br>
              <li><a href="edit_profile.php">Edit Profile</a></li><br>
             <li ><a href="show_products.php"> All Products </a>
              </li><br>
              <li>
                <a name="logout" href="logout.php"> Log out </a>
              </li>
 
      </ul>
     
Beispiel #19
0
 function __construct()
 {
     parent::__construct();
 }
Beispiel #20
0
" >
  </li>
  <?php 
}
?>
      <li id="drop" onclick="dropdown();" >
         <?php 
echo $uname['first_name'];
?>
           <ul id="dropmenu">
              <li>
              <a href="cart.php?action=cart" > 
                
                View Cart <span class ="label"><?php 
require_once "manage.php";
$m = new manage();
$values = $m->getCart($_SESSION['email']);
echo count($values);
?>
 </span></a>  
              </li>
              <li><a href="history.php?action=history">History</a></li><br>
             <li ><a href="show_products.php"> All Products </a>
              </li><br>
              <li>
                <a name="logout" href="logout.php"> Log out </a>
              </li>
 
      </ul>
     
      </li>