403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.101
Web Server : Apache
System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : bsiadvisil ( 110003)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bsiadvisil/www/libraries/msframework/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bsiadvisil/www/libraries/msframework/helpers/bootstrap.php
<?php
/**
 * MS Framework
 *
 * @package    	MS Framework Library
 * @version 	1.2.1.573
 *
 * @author 		Michael Snoeren
 * @link 		https://snoerendevelopment.nl/
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

// Deny direct access
defined('_JEXEC') or die;

abstract class MSFrameworkBootstrap
{
	/**
	 * Helper Variables
	 * @var 	Mixed
	 * @access 	Protected
	 */
	protected static $type 		= 3;

	protected static $colMap	= [
		2 						=> [
			1					=> 'span1',
			2					=> 'span2',
			3					=> 'span3',
			4					=> 'span4',
			5					=> 'span5',
			6					=> 'span6',
			7					=> 'span7',
			8					=> 'span8',
			9					=> 'span9',
			10					=> 'span10',
			11					=> 'span11',
			12					=> 'span12'
		],
		3 						=> [
			1					=> 'col-[type]-1',
			2					=> 'col-[type]-2',
			3					=> 'col-[type]-3',
			4					=> 'col-[type]-4',
			5					=> 'col-[type]-5',
			6					=> 'col-[type]-6',
			7					=> 'col-[type]-7',
			8					=> 'col-[type]-8',
			9					=> 'col-[type]-9',
			10					=> 'col-[type]-10',
			11					=> 'col-[type]-11',
			12					=> 'col-[type]-12'
		],
		4 						=> [
			1					=> 'col-[type]-1',
			2					=> 'col-[type]-2',
			3					=> 'col-[type]-3',
			4					=> 'col-[type]-4',
			5					=> 'col-[type]-5',
			6					=> 'col-[type]-6',
			7					=> 'col-[type]-7',
			8					=> 'col-[type]-8',
			9					=> 'col-[type]-9',
			10					=> 'col-[type]-10',
			11					=> 'col-[type]-11',
			12					=> 'col-[type]-12'
		]
	];

	protected static $offsetMap = [
		2 						=> [
			1 					=> 'offset1',
			2 					=> 'offset2',
			3 					=> 'offset3',
			4 					=> 'offset4',
			5 					=> 'offset5',
			6 					=> 'offset6',
			7 					=> 'offset7',
			8 					=> 'offset8',
			9 					=> 'offset9',
			10 					=> 'offset10',
			11 					=> 'offset11',
			12 					=> 'offset12'
		],
		3 						=> [
			1					=> 'col-[type]-offset-1',
			2					=> 'col-[type]-offset-2',
			3					=> 'col-[type]-offset-3',
			4					=> 'col-[type]-offset-4',
			5					=> 'col-[type]-offset-5',
			6					=> 'col-[type]-offset-6',
			7					=> 'col-[type]-offset-7',
			8					=> 'col-[type]-offset-8',
			9					=> 'col-[type]-offset-9',
			10					=> 'col-[type]-offset-10',
			11					=> 'col-[type]-offset-11',
			12					=> 'col-[type]-offset-12'
		],
		4 						=> [
			1					=> 'offset-[type]-1',
			2					=> 'offset-[type]-2',
			3					=> 'offset-[type]-3',
			4					=> 'offset-[type]-4',
			5					=> 'offset-[type]-5',
			6					=> 'offset-[type]-6',
			7					=> 'offset-[type]-7',
			8					=> 'offset-[type]-8',
			9					=> 'offset-[type]-9',
			10					=> 'offset-[type]-10',
			11					=> 'offset-[type]-11',
			12					=> 'offset-[type]-12'
		]
	];

	/**
	 * Set the Bootstrap type
	 * @param 	Integer $type 	The Bootstrap type to use
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function setType($type)
	{
		if (!array_key_exists($type, self::$colMap)) {
			return false;
		}

		self::$type 			= (int) $type;
		return true;
	}

	/**
	 * Get a column
	 * @param 	Integer $size 	The size of the column
	 * @param 	String 	$type 	The type of column (xs, sm, md, lg)
	 * @access 	Public
	 * @return 	String
	 */
	public static function col($size, $type = 'md')
	{
		if (!array_key_exists($size, self::$colMap[self::$type])) {
			return '';
		}

		// Dont allow other types than md for BS2
		if (self::$type === 2 && $type !== 'md') {
			return '';
		}

		return str_replace('[type]', $type, self::$colMap[self::$type][$size]);
	}

	/**
	 * Get an offset
	 * @param 	Integer $size 	The size of the offset
	 * @access 	Public
	 * @return 	String
	 */
	public static function offset($size)
	{
		if (!array_key_exists($size, self::$offsetMap[self::$type])) {
			return '';
		}

		return str_replace('[type]', $type, self::$offsetMap[self::$type][$size]);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit