Example #1
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Dashboard_Model", "Order_Model", "Orderspace_Model", "Receive_Model"));
     $this->_accessPaket = get_access("PAKET");
     $this->_accessSpace = get_access("SPACE");
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Backdatereceive_Model", "Order_Model", "Transaction_Model"));
     $this->_access = get_access("BACKDATE_RECEIVE");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Orderspace_Model", "Expiredspace_Model", "Order_Model", "Transaction_Model"));
     $this->_access = get_access("SPACE");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Brandcomm_Model", "Transaction_Model"));
     $this->_access = get_access("BRANDCOMM");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model("Cpm_Model");
     $this->_access = get_access("CPM");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Order_Model", "Report_Model"));
     $this->_access = get_access("REPORT_UNAPPROVE");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("Approve_Manager_Model", "Transaction_Model"));
     $this->_access = get_access("APPROVE_MANAGER");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     check_session();
     // jika session habis, redirect ke logout
     $this->load->model(array("PO_Model", "Transaction_Model"));
     $this->load->helper(array('form', 'url'));
     $this->_access = get_access("PO");
     auth($this->_access);
     // autentikasi menu apakah bisa diakses atau tidak
 }
Example #9
0
            echo $ca['name'];
            ?>
</td>
				<td><?php 
            echo $ca['comand'];
            ?>
</td>
				<td align="center"><a href="?component=menubuilder&section=edit&edit=<?php 
            echo $ca['id'];
            ?>
"><img src="<?php 
            echo $theme_admin;
            ?>
images/user_edit.png" alt="" title="" border="0" /></a></td>
				<?php 
            if (get_access('admin', 'tools', 'del', false)) {
                ?>
				<td align="center"><a href="?component=menubuilder&delete=<?php 
                echo $ca['id'];
                ?>
" class="ask"><img src="<?php 
                echo $theme_admin;
                ?>
images/trash.png" alt="" title="" border="0" /></a></td>
				<?php 
            }
            ?>
				</tr>
		<?php 
        }
        ?>
Example #10
0
<?php

defined('_JEXEC') or die;
if (get_access('admin', 'contact', 'edit')) {
    ?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

<script type="text/javascript">

    var markersArray = [];
    // Deletes all markers in the array by removing references to them
    function deleteOverlays() {
        if (markersArray) {
            for (i in markersArray) {
                markersArray[i].setMap(null);
            }
            markersArray.length = 0;
        }
    }
    // Standard google maps function
    function initialize() {
        var myLatlng = new google.maps.LatLng(<?php 
    echo $registry['contact'][0]['coords'];
    ?>
);
        var myOptions = {
            zoom: 10,
            center: myLatlng,
            mapTypeId: google.maps.MapTypeId.MAP
        }
Example #11
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'article', 'edit')) {
    $photo_concurs = false;
    $err = array();
    $id = intval($_GET['edit']);
    $all = $DB->getAll('SELECT #__news.*, #__category.name,#__category.cat_chpu, #__category.design, #__category.type FROM #__news
		LEFT JOIN #__category ON #__category.id=#__news.cat WHERE #__news.id=' . $id);
    if (count($all) > 0) {
        foreach ($all as $num) {
            $info = unserialize($num['info']);
            $copy = unserialize($num['copy']);
            if (!empty($num['thumbs'])) {
                //http://rche.ru/cms/images/1/100/100/1/83341552_ava.png
                $split = explode('/', $num['thumbs']);
                //$img_path='../images/news/prev/0/0/0/'.$split[5];
                $img_path = $num['thumbs'];
                $size = @GetImageSize($num['thumbs']);
                if ($size[0] > 200 or intval($size[0]) == 0) {
                    $w = 200;
                } else {
                    $w = '';
                }
            }
            if ($num['user_block'] > 0) {
                if ($num['user_block'] !== $user->get_property('userID')) {
                    $err[0] = 'error';
                    $err[1] = 'შერჩეული სტატია დაბლოკილია სხვა მომხმარებლის მიერ.';
                }
            }
Example #12
0
//构建登录信息
$login_array = array('username' => $user, 'password' => $pwd, 'referer' => $baseUrl, 'questionid' => $quest, 'answer' => $answ, 'formhash' => $formhash);
//携带cookie提交登录信息
$res = curl_get($loginSubmitUrl, true, true, null, $login_array);
//访问签到页面
$res = curl_get($signPageUrl, true, true);
if ($gbk) {
    $res = iconv('gbk', 'UTF-8//IGNORE', $res);
}
//根据签到页面上的文字来判断今天是否已经签到
if (strpos($res, '您今天已经签到过了或者签到时间还未开始')) {
    $resultStr = '今天已签过到';
} else {
    //获取formhash验证串
    $formhash = get_formhash($res);
    $access = get_access($res);
    //构造签到信息
    $post_data = array('qdmode' => 1, 'formhash' => $formhash, 'qdxq' => $qdxq, 'fastreply' => 0, 'todaysay' => $todaysay, 'access' => $access);
    //提交签到信息
    $res = curl_get($signSubmitUrl, true, true, null, $post_data);
    if ($gbk) {
        $res = iconv('gbk', 'UTF-8//IGNORE', $res);
    }
    if (strpos($res, '签到成功')) {
        $resultStr = '签到成功';
    } elseif (strpos($res, '需要先登录才能继续本操作')) {
        $resultStr = '登录失败!可能需要验证码';
    } else {
        $resultStr = '签到失败';
    }
}
Example #13
0
<?php

defined('_JEXEC') or die('Restricted accessA');
if (get_access('admin', 'group', 'edit')) {
    ?>
<h2>Редактировать группу</h2>
<form method="post" action="?component=users&section=group"/>
<input type="hidden" name="event" value="users"/>
<input type="hidden" name="gredit" value="1"/>
<input type="hidden" name="idd" value="<?php 
    echo $registry['groupitem'][0]['id'];
    ?>
"/>
<table class="formadd">
<tr><td class="td1">Название группы</td><td><input class="inputbox" type="text" name="name" value="<?php 
    echo $registry['groupitem'][0]['name'];
    ?>
"/></td></tr>
</table>
<span class="title-table">Права группы. Админпанель.</span>
<table class="formadd">
<tr>
	<td class="td1 w150"></td>
	<td align="center">Просмотр</td>
	<td align="center">Редактирование</td>
	<td align="center">Удаление</td>
	<td align="center">Только свои</td>
</tr>


<tr>
Example #14
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'group', 'view')) {
    ?>
<div class="message"><?php 
    echo $message;
    ?>
</div>
<?php 
    if (count($all) > 0) {
        ?>
	<h2><?php 
        if ($_GET['section'] !== 'group') {
            ?>
მომხმარებლები<?php 
        } else {
            ?>
ჯგუფების უფლებები<?php 
        }
        ?>
</h2>
		<table id="rounded-corner">
		<thead>
		    	<tr>
		        <th scope="col" class="rounded-company">ID</th>
		            <th scope="col" class="rounded">დასახელება</th>
		            <th scope="col" class="rounded-q4">რედ.</th>
		        </tr>
		</thead>
		<tfoot>
Example #15
0
<?php

/**
 *
 * CMS osRealty 2.1.x
 * Autor: Roman Chernyshov
 * E-mail: support@osRealty.ru
 * URL: www.osRealty.ru
 *
 */
defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'tools', 'view', false)) {
    $i = 0;
    if ($_POST['mail'] == 1 or $_POST['mail'] == 3) {
        $subject = strip_tags($_POST['subject']);
        $emailsup = $DB->getOne("SELECT `#__setting`.`value` FROM `#__setting` WHERE `#__setting`.`name`='emailsup'");
        $sql = 'SELECT `#__users`.`password`,`#__users`.`userID`,`#__users`.`email` FROM `#__users` WHERE `#__users`.`alertmail`=1';
        $mailarr = $DB->getAll($sql);
        $i = 0;
        foreach ($mailarr as $mail) {
            $endsub = '<p><a href="http://' . $_SERVER['HTTP_HOST'] . '/com/mail/del/' . $mail['userID'] . '/' . $mail['password'] . '">Отписаться от рассылки.</p>';
            if (email_check($mail['email'])) {
                $m = new Mail();
                // начинаем
                $m->From($emailsup);
                // от кого отправляется почта
                $m->To($mail['email']);
                // кому адресованно
                $m->Subject($subject);
                $m->Body($_POST['text'] . $endsub);
                $m->Priority(3);
Example #16
0
</a></td>
				<td class="tab-cell-1"><?php 
            echo date('d-m-y h:m', $num['date']);
            ?>
</td>
				<td align="center">
				<a href="?component=comment&section=edit&edit=<?php 
            echo $num['id'];
            ?>
"><img src="<?php 
            echo $theme_admin;
            ?>
images/user_edit.png" alt="" title="" border="0" /></a></td>
				</td>
				<?php 
            if (get_access('admin', 'comments', 'del')) {
                ?>
<td align="center"><a href="?component=comment&delete=<?php 
                echo $num['id'];
                ?>
" class="ask"><img src="<?php 
                echo $theme_admin;
                ?>
images/trash.png" alt="" title="" border="0" /></a></td><?php 
            }
            ?>
				</tr>
	        <?php 
        }
        ?>
		    </tbody>
Example #17
0
            $status = intval($_GET['status']);
            if ($DB->execute("UPDATE #__tests SET status='{$status}' WHERE id='{$val}'")) {
                header('location:/apanel/index.php?component=test');
            }
        }
    }
    if (get_access('admin', 'tests', 'del', false)) {
        if (intval($_GET['delete']) > 0) {
            $del = intval($_GET['delete']);
            if ($DB->execute("DELETE FROM #__tests WHERE id='{$del}'")) {
                header('location:/apanel/index.php?component=test');
            }
        }
    }
}
if (get_access('admin', 'tests', 'edit', false)) {
    if ($_GET['section'] == 'add') {
        if ($_POST) {
            $title = PHP_slashes(htmlspecialchars(strip_tags($_POST['title'])));
            $lid = PHP_slashes(htmlspecialchars(strip_tags($_POST['lid'])));
            $img = PHP_slashes(htmlspecialchars(strip_tags($_POST['img'])));
            $question = base64_encode(serialize($_POST['question']));
            $answer = base64_encode(serialize($_POST['answer']));
            $point = base64_encode(serialize($_POST['point']));
            $result = base64_encode(serialize($_POST['result']));
            $date_dd = intval($_POST['date_dd']);
            $date_mm = intval($_POST['date_mm']);
            $date_yy = intval($_POST['date_yy']);
            if ($date_dd > 31) {
                $date_dd = 31;
            }
Example #18
0
                $message[0] = "error";
                $message[1] = "რუბრიკაზე მაქსიმალური 4 ბანერი უკვე დამატებულია. თუ გსურთ უკვე დამატებული ბანერის ახლით შეცვლა გთხოვთ გამოიყენოთ რედაქტირების ფუნქცია.";
            }
        } else {
            $message[0] = "error";
            $message[1] = "გთხოვთ აირჩიოთ ბანერი ან ჩაწეროთ ბმული.";
        }
    } else {
        $message[0] = "error";
        $message[1] = "აუცილებელია რუბრიკის არჩევა.";
    }
}
$all = $DB->getAll('SELECT * FROM #__category WHERE podcat=0 && section="post" && stat="0" order by name asc');
$i = 0;
foreach ($all as $nu) {
    $category[$nu['id']][0] = $nu;
    $i++;
}
$all = $DB->getAll('SELECT * FROM #__category WHERE podcat>0 && section="post" && stat="0" order by name asc');
$i = 0;
foreach ($all as $nu) {
    $category[$nu['podcat']][] = $nu;
    $i++;
}
if (get_access('admin', 'banners', 'view', false)) {
    if ($_GET['banner'] == 'del' && $_GET['del'] > 0) {
        if ($DB->execute('DELETE FROM #__banners WHERE id="' . intval($_GET['del']) . '"')) {
            header('location:/apanel/index.php?component=banners');
        }
    }
}
Example #19
0
                        header('location:/apanel/index.php?component=banner&message[0]=valid&message[1]=საბანერო ადგილის რედაქტირება წარმატებით დასრულდა');
                    } else {
                        header('location:/apanel/index.php?component=banner&message[0]=error&message[1]=შეცდომა ვერ ხერხდება საბანერო ადგილის რედაქტირება');
                    }
                } else {
                    $message[0] = 'error';
                    $message[1] = 'ჩაწერეთ #F1 საბანერო ადგილის დასახელება მაგ:F1';
                }
            } else {
                $message[0] = 'error';
                $message[1] = 'გთხოვთ აირჩიოთ რუბრიკა';
            }
        }
    }
}
if (get_access('admin', 'banners', 'edit', false)) {
    if (intval($_GET['del']) > 0) {
        $title = $DB->getOne("SELECT title FROM #__banner_list WHERE id='" . intval($_GET['del']) . "'");
        $DB->execute("DELETE FROM #__banner_list WHERE id='" . intval($_GET['del']) . "'");
        $LOG->saveLog($user->get_property('userID'), 'საბანერო პოზიციის წაშლა / ID: ' . intval($_GET['del']) . ' TITLE: ' . $title);
        header('location:/apanel/index.php?component=banner&message[0]=valid&message[1]=ბანერი წარმატებით წაიშალა.');
    }
    if (intval($_GET['place']) > 0) {
        $title = $DB->getOne("SELECT title FROM #__banner_place WHERE id='" . intval($_GET['place']) . "'");
        $DB->execute("DELETE FROM #__banner_place WHERE id='" . intval($_GET['place']) . "'");
        $LOG->saveLog($user->get_property('userID'), 'საბანერო პოზიციის წაშლა / ID: ' . intval($_GET['place']) . ' TITLE: ' . $title);
        header('location:/apanel/index.php?component=banner&section=addplace&message[0]=valid&message[1]=საბანერო პოზიცია წარმატებით წაიშალა.');
    }
}
if ($_GET['section'] == 'add' or $_GET['section'] == 'edit') {
    if ($_GET['section'] == 'edit') {
Example #20
0
/**
 *  Modifies $fields in $table with values $fieldvalues where id=$id
 *
 * Returns true on succes, false on failure
 * Fieldvalues must be an associative array containing all the $fields to be added.
 * If a field is not present in $fieldvalues, it will be set to NULL.  
 * The entry 'id' in $fields will be ignored.
 * Fields lastmodby and lastmoddate will be automatically set
 */
function modify($db, $table, $fields, $fieldvalues, $id, $USER, $tableid)
{
    if (!may_write($db, $tableid, $id, $USER)) {
        return false;
    }
    // delete all entries in trust related to this record first
    $db->Execute("DELETE FROM trust WHERE tableid='{$tableid}' and recordid='{$id}'");
    // then add back trusted users entered on the form
    if (is_array($fieldvalues['trust_read'])) {
        foreach ($fieldvalues['trust_read'] as $userid) {
            $db->Execute("INSERT INTO trust VALUES ('{$tableid}','{$id}','{$userid}','r')");
        }
    }
    if (is_array($fieldvalues['trust_write'])) {
        foreach ($fieldvalues['trust_write'] as $userid) {
            $db->Execute("INSERT INTO trust VALUES ('{$tableid}','{$id}','{$userid}','w')");
        }
    }
    $query = "UPDATE {$table} SET ";
    $column = strtok($fields, ',');
    while ($column) {
        if (!($column == 'id' || $column == 'date' || $column == 'ownerid' || is_array($fieldvalues[$column]))) {
            $test = true;
            if (in_array($column, array('gr', 'gw', 'er', 'ew'))) {
                $fieldvalues[$column] = get_access($fieldvalues, $column);
            }
            if ($column == 'lastmodby') {
                $fieldvalues['lastmodby'] = $USER['id'];
            }
            if ($column == 'lastmoddate') {
                $fieldvalues['lastmoddate'] = time();
            }
            if (isset($fieldvalues[$column]) && strlen($fieldvalues[$column]) > 0) {
                // escape all nasty stuff
                $query .= "{$column}='" . addslashes($fieldvalues[$column]) . "',";
            } else {
                $query .= "{$column}=NULL,";
            }
        }
        $column = strtok(',');
    }
    $query[strrpos($query, ',')] = ' ';
    if ($test) {
        $query .= " WHERE id='{$id}'";
        $result = $db->Execute($query);
        if ($result) {
            if (function_exists('plugin_modify')) {
                plugin_modify($db, $tableid, $id);
            }
            return true;
        } else {
            echo "<h4>Error making the requested modifications.  </h4>\n";
        }
    }
}
Example #21
0
                }
                $DB->execute($sql);
            }
            $message[0] = 'valid';
            $message[1] = "Новое меню успешно добавлено";
        }
    }
}
if (get_access('admin', 'tools', 'del', false)) {
    if (isset($_GET['delete'])) {
        $id = intval($_GET['delete']);
        $sql = "DELETE FROM #__menu WHERE id = '{$id}' LIMIT 1";
        $DB->execute($sql);
        $sql = "DELETE FROM #__menu_link WHERE menuid = '{$id}'";
        $DB->execute($sql);
    }
}
if (get_access('admin', 'tools', 'view', false)) {
    $sql = "SELECT * FROM #__menu ORDER BY id ASC";
    $registry['allmenu'] = $DB->getAll($sql);
}
if (get_access('admin', 'tools', 'edit', false)) {
    if ($_GET['section'] == 'edit') {
        $id = intval($_GET['edit']);
        $sql = "SELECT * FROM #__menu WHERE id='{$id}' LIMIT 1";
        $menu = $DB->getAll($sql);
        $registry['menu'] = $menu[0];
        $sql = "SELECT * FROM #__menu_link WHERE menuid='{$id}' ORDER BY pos ASC";
        $registry['menulink'] = $DB->getAll($sql);
    }
}
Example #22
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'comments', 'edit')) {
    $id = intval($_GET['edit']);
    $all = $DB->getAll('SELECT #__comments.*, #__users.url,#__users.username, #__users.email as useremail 
			FROM #__comments
			LEFT JOIN #__users ON #__comments.user=#__users.id WHERE #__comments.id=' . $id);
    if (count($all) > 0) {
        foreach ($all as $num) {
            ?>
		<h2>Редактирование записи, ID <?php 
            echo $num['id'];
            ?>
: </h2>
<!-- Load jQuery -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
	google.load("jquery", "1");
</script>

<!-- Load TinyMCE -->
<script type="text/javascript" 
	src="<?php 
            echo $theme_admin;
            ?>
js/tinymce/jquery.tinymce.js"></script>
<script type="text/javascript">
	$().ready(function() {
		$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
Example #23
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'banners', 'edit')) {
    ?>
<h3>საბანერო ადგილი</h3>
<?php 
    if (!empty($message[0])) {
        ?>
    <div class="<?php 
        echo $message[0];
        ?>
_box">
        <?php 
        for ($i = 1; $i <= count($message); $i++) {
            ?>
            <?php 
            echo $message[$i];
            ?>
        <?php 
        }
        ?>
    </div>
<?php 
    }
    if ($registry['banner'][0]['id'] > 0) {
        ?>
<form method="post" action="" />
<table class="formadd">
    <tr><td class="td1">რუბრიკა</td><td>
            <select name="cat" class="input_150">
Example #24
0
     }
 }
 $filter_p = '';
 if ((!empty($_POST['filter-cat']) or !empty($_COOKIE['filter-cat'])) and $_POST['filter-cat'] !== 'none') {
     if (!empty($_POST['filter-cat'])) {
         $val = intval($_POST['filter-cat']);
         setcookie('filter-cat', $val, time() + 36000, '/');
     } else {
         $val = intval($_COOKIE['filter-cat']);
     }
     $filter_p = " and `#__news`.`cat` =" . $val;
 }
 if ($_POST['filter-cat'] == 'none') {
     setcookie('filter-cat', '', time() - 36000, '/');
 }
 if (get_access('admin', 'article', 'view', false)) {
     if ($registry['onmy'] == 1) {
         $sql_onmy = "and `#__news`.`user` = '" . $user->get_property('userID') . "'";
     }
     /*
     //---------------------------------------------
         $page	                = intval($_GET['page']);
     
         // Переменная хранит число сообщений выводимых на станице
         $num = 15;
         // Извлекаем из URL текущую страницу
         if ($page==0) $page=1;
         // Определяем общее число сообщений в базе данных
         $posts = $DB->getOne("SELECT count(`#__news`.`id`) FROM `#__news` WHERE `#__news`.`id`>'0' $sql_onmy $filter_p");
         $postsmoder = $DB->getOne("SELECT count(`#__news`.`id`) FROM `#__news` WHERE `moderate`='1' and `#__news`.`id`>'0' $filter_p $sql_onmy");
         $registry['posts']=$posts;
Example #25
0
?>

<?php 
if (!empty($message[0])) {
    ?>
     <div class="<?php 
    echo $message[0];
    ?>
_box">
	<?php 
    echo $message[1];
    ?>
     </div>
<?php 
}
if (get_access('admin', 'user', 'edit')) {
    ?>

<?php 
    if ($message[0] == 'valid') {
        ?>
	<a href="?component=users">ყველა მომხმარებელი</a><br/>
	<a href="?component=users&section=add">მომხმარებლის დამატება</a><br/>
<?php 
    } else {
        ?>
		<h2>მომხმარებლის დამატება: </h2>

		<form method="post" action="" name="adduser" enctype="multipart/form-data"/>

		<input type="hidden" name="event" value="users"/>
Example #26
0
}
if ($_GET['section'] == 'edit' and get_access('admin', 'alert', 'edit', false) and intval($_GET['value']) > 0) {
    $id = intval($_GET['value']);
    $sql = "SELECT `#__clients`.* FROM `#__clients` WHERE `#__clients`.`id` = '{$id}' LIMIT 1";
    $registry['clients'] = $DB->getAll($sql);
}
if (intval($_GET['delete']) > 0 and get_access('admin', 'alert', 'del', false)) {
    $id = intval($_GET['delete']);
    if ($registry['onmy'] == 1) {
        $sql_onmy = "and user = '******'userID') . "'";
    }
    $sql = "DELETE FROM `#__clients` WHERE `#__clients`.`id` = '{$id}' {$sql_onmy} LIMIT 1";
    $DB->execute($sql);
    header('Location: ?component=alertclient');
}
if ((empty($_GET['section']) or $_GET['section'] == 'default') and get_access('admin', 'alert', 'view', false)) {
    if ($registry['onmy'] == 1) {
        $sql_onmy = "and user = '******'userID') . "'";
    }
    if (isset($_POST['sort']['status'])) {
        $status = intval($_POST['sort']['status']);
    } elseif (isset($_GET['status']) and empty($_POST['sort']['rubric'])) {
        $status = intval($_GET['status']);
    }
    if (intval($status) > 0) {
        $sql_status = " and `#__clients`.`status` = '{$status}'";
    }
    if (isset($_POST['sort']['city'])) {
        $city = intval($_POST['sort']['city']);
    } elseif (isset($_GET['city']) and empty($_POST['sort']['rubric'])) {
        $city = intval($_GET['city']);
Example #27
0
<a href="?component=votes&activ=<?php 
                echo $num['id'];
                ?>
">Активировать</a><?php 
            }
            ?>
</td>
			<td align="center"><a href="?component=votes&section=edit&edit=<?php 
            echo $num['id'];
            ?>
"><img src="<?php 
            echo $theme_admin;
            ?>
images/user_edit.png" alt="" title="" border="0" /></a></td>
			<?php 
            if (get_access('admin', 'vote', 'del')) {
                ?>
<td align="center"><a href="?component=votes&delete=<?php 
                echo $num['id'];
                if (!empty($_GET['page'])) {
                    ?>
&page=<?php 
                    echo $_GET['page'];
                }
                ?>
" class="ask"><img src="<?php 
                echo $theme_admin;
                ?>
images/trash.png" alt="" title="" border="0" /></a></td><?php 
            }
            ?>
Example #28
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'tests', 'edit')) {
    ?>
<div class="testpage">
    <ul class="steps">
        <li class="active">ნაბიჯი 1</li>
        <li>ნაბიჯი 2</li>
        <li>ნაბიჯი 3</li>
    </ul>
    <form name="test" action="" method="post">
        <ul class="test">
            <li class="active">
                <h3>ტესტის ტიპი</h3>
                <select name="type">
                    <option value="0">ტესტი</option>
                    <option value="1" <?php 
    if ($_POST['type'] == 1 or $registry['test'][0]['type'] == 1) {
        ?>
selected<?php 
    }
    ?>
>ვიქტორინა</option>
                </select>
                <h3>გამოქვეყნების თარიღი</h3>
                <?php 
    if ($_GET['section'] == 'add') {
        ?>
                    <?php 
        @(include '.dadd.php');
Example #29
0
|--------------------------------------------------------------------------|
 _   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
if (!defined('IN_INSTALLER09_ADMIN')) {
    $HTMLOUT = '';
    $HTMLOUT .= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\t\t\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\t\t<html xmlns='http://www.w3.org/1999/xhtml'>\n\t\t<head>\n\t\t<title>Error!</title>\n\t\t</head>\n\t\t<body>\n\t<div style='font-size:33px;color:white;background-color:red;text-align:center;'>Incorrect access<br />You cannot access this file directly.</div>\n\t</body></html>";
    echo $HTMLOUT;
    exit;
}
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'html_functions.php';
require_once CLASS_DIR . 'class_check.php';
$class = get_access(basename($_SERVER['REQUEST_URI']));
class_check($class);
$lang = array_merge($lang, load_language('ad_stats_extra'));
$inbound = array_merge($_GET, $_POST);
if (!isset($inbound['mode'])) {
    $inbound['mode'] = '';
}
$form_code = '';
$month_names = array(1 => $lang['stats_ex_jan'], $lang['stats_ex_jan'], $lang['stats_ex_feb'], $lang['stats_ex_mar'], $lang['stats_ex_apr'], $lang['stats_ex_may'], $lang['stats_ex_jun'], $lang['stats_ex_jul'], $lang['stats_ex_sep'], $lang['stats_ex_oct'], $lang['stats_ex_nov'], $lang['stats_ex_dec']);
switch ($inbound['mode']) {
    case 'show_reg':
        result_screen('reg');
        break;
    case 'show_topic':
        result_screen('topic');
        break;
Example #30
0
<?php

defined('_JEXEC') or die('Restricted access');
if (get_access('admin', 'competition', 'view')) {
    ?>
<h3>ფოტო კონკურსში მონაწილეები</h3>
<table id="rounded-corner">
    <thead>
    <tr>
        <th scope="col" class="rounded-company">ID</th>
        <th scope="col" class="rounded">სახელი</th>
        <th scope="col" class="rounded">გვარი</th>
        <th scope="col" class="rounded">ასაკი</th>
        <th scope="col" class="rounded">ტელეფონი</th>
        <th scope="col" class="rounded">ip მისამართი</th>
        <th scope="col" class="rounded">დრო-თარიღი</th>
    </tr>
    </thead>
    <tbody>
    <?php 
    foreach ($registry['competition'] as $item) {
        ?>
    <tr>
        <td><?php 
        echo $item['ID'];
        ?>
</td>
        <td><?php 
        echo $item['fname'];
        ?>
</td>