Ejemplo n.º 1
0
//
// Dev     : Atmoner
// Website : http://atmoner.com
// Contact : contact@atmoner.com
// Twitter : @atmon3r
//
/////////////////////////////////////////////////////////////////////////
require $path . '/libs/Smarty.class.php';
require $path . '/libs/db.php';
require $path . '/libs/database/ez_sql_core.php';
require $path . '/libs/database/ez_sql_mysql.php';
require $path . '/libs/default.class.php';
require $path . '/libs/Hooks.class.php';
$db = new ezSQL_mysql($user, $pass, $db, $host);
$smarty = new Smarty();
$startUp = new pasteUsers();
$hook = new phphooks();
$conf = $startUp->getConfigs();
$startUp->I18n();
// Smarty config
$smarty->addPluginsDir($path . '/libs/plugins/');
// $smarty->template_dir = $path.'/themes/v2/';
$smarty->template_dir = $path . '/themes/' . $conf['theme'] . '/';
$smarty->compile_dir = $path . '/cache/compile_tpl/';
$smarty->cache_dir = $path . '/cache/';
$smarty->debugging = false;
$smarty->caching = $conf['timecache'];
$smarty->cache_lifetime = $conf['timecache'];
$smarty->config_dir = $path . '/libs/lang/';
$sql = "SELECT filename FROM plugins WHERE action = '" . $db->escape(1) . "'";
$items = $db->get_results($sql, ARRAY_A);
Ejemplo n.º 2
0
//    Foobar is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    Foobar is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
//
/////////////////////////////////////////////////////////////////////////
//
// Website : http://php-pastebin.com/
// Contact : contact@php-pastebin.com
//
/////////////////////////////////////////////////////////////////////////
//
// Dev     : Atmoner
// Website : http://atmoner.com
// Contact : contact@atmoner.com
// Twitter : @atmon3r
//
/////////////////////////////////////////////////////////////////////////
if (!defined("IN_PASTE")) {
    die("Access denied!");
}
$pasteUsers = new pasteUsers();
$pasteUsers->logout();