From 3d99ce9dadca82765832ab669dabc22c554fd78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 19 Jan 2015 13:37:32 +0100 Subject: travis configuration --- inc/3rdparty/libraries/MOBIClass/Settings.php | 97 --------------------------- 1 file changed, 97 deletions(-) delete mode 100644 inc/3rdparty/libraries/MOBIClass/Settings.php (limited to 'inc/3rdparty/libraries/MOBIClass/Settings.php') diff --git a/inc/3rdparty/libraries/MOBIClass/Settings.php b/inc/3rdparty/libraries/MOBIClass/Settings.php deleted file mode 100644 index ddcf2054..00000000 --- a/inc/3rdparty/libraries/MOBIClass/Settings.php +++ /dev/null @@ -1,97 +0,0 @@ -values = array( - "attributes"=>0, - "version"=>0, - "creationTime"=>time()+94694400, - "modificationTime"=>time()+94694400, - "backupTime"=>0, - "modificationNumber"=>0, - "appInfoID"=>0, - "sortInfoID"=>0, - "prcType"=>"BOOK", - "creator"=>"MOBI", - "uniqueIDSeed"=>rand(), - "nextRecordListID"=>0, - "recordAttributes"=>0, - "compression"=>NO_COMPRESSION, - "recordSize"=>RECORD_SIZE, - "encryptionType"=>NO_ENCRYPTION, - "mobiIdentifier"=>"MOBI", - "mobiHeaderLength"=>0xe8, - "mobiType"=>MOBIPOCKET_BOOK, - "textEncoding"=>UTF8, - "uniqueID"=>rand(), - "fileVersion"=>6, - "locale"=>0x09, - "inputLanguage"=>0, - "outputLanguage"=>0, - "minimumVersion"=>6, - "huffmanRecordOffset"=>0, - "huffmanRecordCount"=>0, - "exthFlags"=>0x40, - "drmOffset"=>0xFFFFFFFF, - "drmCount"=>0, - "drmSize"=>0, - "drmFlags"=>0, - "extraDataFlags"=>0, - "exthIdentifier"=>"EXTH", - // These can be changed without any risk - "title"=>"Unknown title", - "author"=>"Unknown author", - "subject"=>"Unknown subject" - ); - - foreach($additionalSettings as $key=>$value){ - $this->values[$key] = $value; - } - } - - /** - * Get a value from the settings - * @param string $key Key of the setting - * @return mixed The value of the setting - */ - public function get($key){ - return $this->values[$key]; - } - - /** - * Checks if a value is set - * @param string $key Key of the setting - * @return bool True if the value exists - */ - public function exists($key){ - return isset($this->values[$key]); - } - - public function __toString() { - $out = "Settings: {\n"; - foreach($this->values as $key=>$value){ - $out .= "\t".$key.": ".$value."\n"; - } - $out .= "}"; - return $out; - } -} -?> -- cgit v1.2.3