<?php /** * @version $Id: overlay.php 1042 2011-10-09 02:16:36Z johanjanssens $ * @category Nooku * @package Nooku_Modules * @subpackage Widget * @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net). * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> * @link http://www.nooku.org */ defined('KOOWA') or die('Restricted access'); ?> <?php echo @overlay(array('url' => @route($url), 'options' => array('selector' => $module->params->get('selector', 'body'))));
<?php /** * Nooku Framework - http://www.nooku.org * * @copyright Copyright (C) 2011 - 2013 Johan Janssens and Timble CVBA. (http://www.timble.net) * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> * @link git://git.assembla.com/nooku-framework.git for the canonical source repository */ ?> <?php echo overlay(array('url' => route('option=com_activities&view=activities&layout=list'))); ?> <div class="sidebar"> <div class="mod_users"> <h3><?php echo translate('Logged in Users'); ?> </h3> <?php echo object('com:users.controller.user')->layout('list')->limit(10)->loggedin(true)->render(); ?> </div> </div>
$rows = $db->GetAll($sql); if (empty($rows)) { exit; } $pid = $rows[0]['pid']; $sql = "SELECT image \n\t\tFROM pages\n\t\tWHERE pid = {$pid}"; $row = $db->GetRow($sql); if (empty($row)) { exit; } $sql = "SELECT MIN(`tlx`) as tlx,MIN(`tly`) as tly,MAX(`brx`) as brx,MAX(`bry`) as bry\n\t\tFROM boxes\n\t\tWHERE bgid = '{$bgid}'"; $crop = $db->GetRow($sql); $image = imagecreatefromstring($row['image']); header("Content-type: image/png"); if (!empty($rows)) { imagepng(crop(overlay($image, $rows), $crop)); } else { imagepng($image); } } else { if (isset($_GET['filename'])) { $im = imagecreatefrompng($_GET['filename']); header('Content-type: image/png'); imagepng($im); imagedestroy($im); } else { if (isset($_GET['pid'])) { include "config.inc.php"; include "db.inc.php"; include "functions/functions.image.php"; global $db;
/** * */ public function _403() { $cogear = getInstance(); $cogear->response->header('Status', '403 ' . Response::$codes[403]); overlay(t('You don\'t have enought permissions to access this page.'), t('Access denied')); }