📄 gallery.php
字号:
<?php
/*
+--------------------------------------------------------------------------
| Invision Gallery Module
| ========================================
| by Joshua Williams
| (c) 2001 - 2003 Invision Power Services
|
| ========================================
| Web:
| Email:
+---------------------------------------------------------------------------
|
| > Main Admin Module
| > Script written by Joshua Williams
| $Id: gallery.php,v 1.1.1.1 2005/07/11 20:43:50 kinderstod Exp $
+--------------------------------------------------------------------------
*/
$idx = new ad_gallery();
class ad_gallery {
var $base_url; var $ipsclass; var $gallery_lib;
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
$this->ipsclass->admin->page_title = "Invision Gallery Manager";
$this->ipsclass->admin->page_detail = "You can set up and manage your gallery in this section.";
$this->ipsclass->admin->nav[] = array( 'section=components&act=gallery' , 'Invision Gallery Manager Home' );
//-----------------------------------------
// Do some set up
//-----------------------------------------
if ( ! @is_dir( ROOT_PATH.'/modules/gallery' ) )
{
$this->ipsclass->admin->show_inframe("");
}
else
{
define( 'IPB_CALLED', 1 );
$this->ipsclass->DB->load_cache_file( ROOT_PATH . 'sources/sql/'.SQL_DRIVER.'_gallery_queries.php', 'gallery_sql_queries' );
$this->ipsclass->DB->load_cache_file( ROOT_PATH . 'sources/sql/'.SQL_DRIVER.'_gallery_admin_queries.php', 'gallery_admin_sql_queries' );
$section = ( $this->ipsclass->input['code'] ) ? "ad_{$this->ipsclass->input['code']}" : "ad_overview";
require ROOT_PATH.'modules/gallery/lib/gallery_library.php'; $this->gallery_lib = new gallery_lib(); $this->gallery_lib->ipsclass =& $this->ipsclass;
require ROOT_PATH.'modules/gallery/admin/'.$section.'.php';
$PLUGIN = new ad_plugin_gallery_sub(); $PLUGIN->ipsclass =& $this->ipsclass; $PLUGIN->glib =& $this->gallery_lib;
$PLUGIN->auto_run();
}
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -