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_ucp/gallery.php
<?php

/*
+--------------------------------------------------------------------------
|   Invision Power Board v2.1.2
|   =============================================
|   by Matthew Mecham
|   (c) 2001 - 2005 Invision Power Services, Inc.
|   http://www.invisionpower.com
|   =============================================
|   Web: http://www.invisionboard.com
|   Time: Tue, 18 Oct 2005 19:30:11 GMT
|   Release: 95f5a3c9ea538e4ebb097b9464fc22d2
|   Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|   > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
|   > $Revision: 23 $
|   > $Author: matt $
+---------------------------------------------------------------------------
|
|   > UCP: LIBRARY
|   > Module written by Matt Mecham
|   > Date started: 18th April 2005
+--------------------------------------------------------------------------
*/

if ( ! defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
	exit();
}

//-----------------------------------------
// Must be "components_ucp_{component name}
//-----------------------------------------

class components_ucp_gallery
{
	/*-------------------------------------------------------------------------*/
	// Build menu
	// Use: $content .= menu_bar_new_link( $url, $name ) for the links
	// Use: menu_bar_new_category( 'Blog', $content ) for the content
	/*-------------------------------------------------------------------------*/

	function ucp_build_menu()
	{
		//-----------------------------------------
		// INIT
		//-----------------------------------------
		
		$content = "";
		
		//-----------------------------------------
		// Get links
		//-----------------------------------------
		
		if ( $this->ipsclass->vars['gallery_images_path'] != "" )
		{
			$content .= $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_link( "{$this->ipsclass->base_url}automodule=gallery&cmd=albums",
																							$this->ipsclass->lang['m_gallery_albums'] );
			$content .= $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_link( "{$this->ipsclass->base_url}automodule=gallery&cmd=favs",
																							$this->ipsclass->lang['m_gallery_favs'] );
		}
		
		if ( $content )
		{
			return $this->ipsclass->compiled_templates['skin_ucp']->menu_bar_new_category( $this->ipsclass->lang['m_gallery'], $content );
		}
		else
		{
			return '';
		}
	}
}

?>