示例#1
0
    function users()
    {
        if (isset($_GET['del'])) {
            $this->delete($_GET['del']);
        }
        kernel::loadLib('apiconfirm');
        apiconfirm::load();
        echo '<script src="lib/shadowbox/shadowbox.js"></script>
				<script type="text/javascript">
					Shadowbox.init();
				</script>';
        echo '<div id="apigui">
					<table>
						<tr>
							<th>login</th>
							<th>e-mail</th>
							<th>daty</th>
							<th>adresy ip</th>
							<th>obiekty</th>
							<th>pozostałe</th>
							<th>opcje</th>
						</tr>' . $this->pobierzUserow('<tr><td>#LOGIN#</td> <td>#E-MAIL#</td> <td><b>Zarejestrowany:</b> #REG_DATE#<br/><b>Ostatnio aktywny:</b> #LAST_DATE#</td> <td><b>IP rejestracji:</b> #REG_IP#<br/><b>Ostatnie IP:</b> #LAST_IP#</td> <td>#OBJECTS#</td> <td><b>Aktywny:</b> #ACTIVE#<br/><b>Status:</b> #STATUS#</td> <td><a href="?go=users&amp;feature=edit&amp;id=#ID#" rel="shadowbox;width=480">edytuj</a>, <a href="?go=users&amp;feature=list&amp;del=#ID#" title="Czy na pewno chcesz usunąć użytkownika <b>#LOGIN-EMPTY#</b>?" class="apiconfirm">usuń</a></td></tr>', $_GET['page'], 10) . '</table>
				<div style="margin-top:10px; text-align: center;">
				' . $this->pagination(' <a href="?go=users&page=#">&laquo;</a> ', ' <a href="?go=users&page=#">#</a> ', ' [ # ] ', ' <a href="?go=users&page=#">&raquo;</a> ', @$_GET['page'], 10) . '
				</div>
			</div>';
    }
示例#2
0
    function ads()
    {
        $this->validity();
        if (isset($_GET['del'])) {
            $this->delete($_GET['del']);
        }
        kernel::loadLib('apiconfirm');
        apiconfirm::load();
        echo '<script src="lib/shadowbox/shadowbox.js"></script>
				<script type="text/javascript">
					Shadowbox.init();
				</script>';
        echo '<div id="apigui">
					<table>
						<tr>
							<th>podgląd kodu</th>
							<th>info</th>
							<th>opcje</th>
						</tr>' . $this->pobierzReklamy('<tr><td>#CODE#</td> <td><b>Nazwa:</b> #TITLE#<br/><b>Położenie:</b> #PLACE#<br/><b>Wyświetlana do:</b> #DATE#<br/><b>Aktywna:</b> #ACTIVE#</td> <td><a href="?go=ads&amp;feature=edit&amp;id=#ID#" rel="shadowbox;width=580">edytuj</a>, <a href="?go=ads&amp;feature=list&amp;del=#ID#" title="Czy na pewno chcesz usunąć <b>#TITLE#</b>?" class="apiconfirm">usuń</a></td></tr>') . '</table>
			</div>';
    }
示例#3
0
文件: index.php 项目: roxio/TenTego2
ob_start();
require_once "sys/init.php";
//!important
require_once "sys/kernel.php";
//!important
$kernel = new kernel();
$kernel->session_start();
$kernel->mysql();
$kernel->init();
$get = @$_GET['go'];
if (empty($get)) {
    header("LOCATION: index.php?go=home");
}
$kernel->load_app($get);
$kernel->loadLib("colgen");
$kernel->loadLib("cache");
$kernel->loadLib("apigui");
$api = new ApiGui();
if ($kernel->app_content(@$_GET['go'], $get)) {
    if (class_exists("mainContent")) {
        $content = new mainContent();
    }
}
?>
<!DOCTYPE html>
<html>
	<head>
		<title><?php 
echo $kernel->app->name;
?>
示例#4
0
 function thumbnail($img)
 {
     ob_end_clean();
     header('Content-Type: image/png');
     kernel::loadLib("simpleimage");
     $image = new SimpleImage();
     $image->load($img);
     $image->resizeToWidth(480);
     $image->output();
     exit;
 }