<?php require_once('includes/requirecompere.inc.php'); $err=TGET('err'); $errcode=TGET('errcode'); $errinfo=TGET('errorinfo'); $dataset['style.zip.size']=$Config->ThemeLimits['style.zip.size']; $dataset['style.expanded.size']=$Config->ThemeLimits['style.expanded.size']; $dataset['style.zip.size.kb']=$dataset['style.zip.size']/1024; $dataset['style.expanded.size.kb']=$dataset['style.expanded.size']/1024; $dataset['errorcode']=$errcode; $dataset['errorinfo']=$errinfo; $dataset['ERROR']=$err?array(0):array(); $dataset['ERROR-NOFILE']=$err=='nofile'?array(0):array(); $dataset['ERROR-FAILED']=$err=='failed'?array(0):array(); $dataset['ERROR-FILETYPE']=$err=='filetype'?array(0):array(); $dataset['ERROR-FILESIZE']=$err=='filesize'?array(0):array(); $dataset['ERROR-STRUCTURE']=$err=='dirstruct'?array(0):array(); $dataset['ERROR-IMAGETYPE']=$err=='imagetype'?array(0):array(); $dataset['ERROR-SNAPSHOT-NONE']=$err=='nosnapshot'?array(0):array(); $dataset['ERROR-SNAPSHOT-UNSET']=$err=='snapshotunset'?array(0):array(); $dataset['THEME-UPDATABLE']=is_current_theme_updatable_by_user(current_mb_id())?array(0):array(); $dataset['UPLOAD-SUPPORTED']=is_executable('/usr/bin/unzip')?array(0):array(); $dataset['ERROR-UPLOAD-UNSUPPORTED']=$dataset['UPLOAD-SUPPORTED']?array():array(0); $dataset['theme.path']=realpath($Config->Paths['theme.shared']); ?>