Current Path : /var/www/html/clients/rebirth.e-nk.ru/sources/components_acp/ |
Current File : /var/www/html/clients/rebirth.e-nk.ru/sources/components_acp/gallery.php |
<?php /* +-------------------------------------------------------------------------- | Invision Gallery Module | ======================================== | by Joshua Williams | (c) 2001 - 2003 Invision Power Services | Nullified by Terabyte | ======================================== | | +--------------------------------------------------------------------------- | | > Main Admin Module | > Script written by Joshua Williams | $Id: gallery.php,v 1.1.1.1 2005/07/11 20:43:50 kinderstod Exp $ +-------------------------------------------------------------------------- */ if ( ! defined( 'IN_ACP' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } 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"; if( !in_array( $section, array( 'ad_overview', 'ad_albums', 'ad_cats', 'ad_groups', 'ad_media', 'ad_postform', 'ad_stats', 'ad_tools' ) ) ) { $section = '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(); } } } ?>