HEX
Server: Apache/2.4.59 (Debian)
System: Linux skycube.cz 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64
User: ilya (534)
PHP: 7.3.31-1~deb10u7
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/ilya/data/www/kamforum.ru/sources/components_acp/gallery.php
<?php

/*
+--------------------------------------------------------------------------
|   Invision Gallery Module
|   ========================================
|   by Joshua Williams
|   (c) 2001 - 2003 Invision Power Services
|   http://www.invisionpower.com
|   ========================================
|   Web: http://www.invisiongallery.com
|   Email: josh@invisiongallery.com
+---------------------------------------------------------------------------
|
|   > 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("http://www.invisiongallery.com/?why");
		}
		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();
		}		
	}		
}

?>