function MotpList() { $this->app->Tpl->Set(UEBERSCHRIFT, "mOTP Generator"); $submit = $this->app->Secure->GetPOST("submit"); if ($submit != "") { $pin = $this->app->Secure->GetPOST("pin"); $secret = $this->app->Secure->GetPOST("secret"); $this->app->Tpl->Set(MESSAGE, '<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;"> <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span> <strong>Hinweis:</strong>Die neue PIN und das neue Secret wurden gespeichert!</p> </div>'); $tmp = new INI(); $arr = $tmp->read("/opt/fred/apps/motp/motp.ini"); $arr[motp][secret] = $secret; $arr[motp][pin] = $pin; $tmp->write("/opt/fred/apps/motp/motp.ini", $arr); // exec("echo '$pin' > /root/otppin"); // exec("echo '$secret' > /root/otpsecret"); } $tmp = new INI(); $arr = $tmp->read("/opt/fred/apps/motp/motp.ini"); //$pin = shell_exec("cat /root/otppin"); $this->app->Tpl->Set(PIN, $arr[motp][pin]); //$secret = shell_exec("cat /root/otpsecret"); $this->app->Tpl->Set(SECRET, $arr[motp][secret]); date_default_timezone_set('UTC'); $uhrzeit = date('d.m.Y H:i:s'); $this->app->Tpl->Set(UHRZEIT, $uhrzeit); $this->app->Tpl->Parse(UEBERSCHRIFT, "mOTP"); $this->app->Tpl->Parse(PAGE, "motp.tpl"); }
function load() { global $config; if ($this->exists() == true) { $this->import(); } else { global $config, $admconfig; $this->data = array(); $myini = new INI(); $servers = explode(';', $admconfig['package_server']); if (is_array($servers)) { foreach ($servers as $server) { $content = get_remote($server . '/external.ini'); if ($content != REMOTE_CLIENT_ERROR) { $inis = $myini->parse($content); if (!isset($inis['files'])) { break; } foreach ($inis['files'] as $type => $remotefile) { if (!isset($this->data[$type])) { $this->data[$type] = array(); } if (empty($remotefile)) { continue; } $path = $server . '/' . $remotefile; $content = get_remote($path); if ($content != REMOTE_CLIENT_ERROR) { $new_data = $myini->parse($content); if (!isset($new_data['categories'])) { continue; } foreach ($new_data['categories'] as $cid => $cname) { $this->data[$type]['categories'][$cid] = array('name' => $cname, 'entries' => 0); $this->data[$type][$cid] = array(); } foreach ($new_data as $key => $row) { if ($key == 'categories') { continue; } else { if (!isset($row['category']) || !isset($this->data[$type]['categories'][$row['category']])) { continue; } if (isset($this->data[$type][$row['internal']]) && version_compare($this->data[$type][$this->data[$type][$row['internal']]][$row['internal']]['version'], $row['version'], ">") || !isset($this->data[$type][$row['internal']])) { $row['server'] = $server; $this->data[$type]['categories'][$row['category']]['entries']++; $this->data[$type][$row['category']][$row['internal']] = $row; $this->data[$type][$row['internal']] = $row['category']; } } } } } } } } $this->export(); } }
function setPackagesInactive() { global $db; require_once '../classes/class.ini.php'; $myini = new INI(); $result = $db->query("SELECT id, internal FROM {$db->pre}packages"); $data = array(); $disable = array(); $dependencies = array(); $assoc = array(); while ($row = $db->fetch_assoc($result)) { $ini = $myini->read("../modules/{$row['id']}/package.ini"); if (!isset($ini['dependency']) || !is_array($ini['dependency'])) { $ini['dependency'] = array(); } $min_compatible = !empty($ini['min_version']) && version_compare(VISCACHA_VERSION, $ini['min_version'], '>=') || empty($ini['min_version']); $max_compatible = !empty($ini['max_version']) && version_compare(VISCACHA_VERSION, $ini['max_version'], '<=') || empty($ini['max_version']); $data[$row['id']] = array('min_version' => !empty($ini['min_version']) ? $ini['min_version'] : '', 'max_version' => !empty($ini['max_version']) ? $ini['max_version'] : '', 'id' => $row['id'], 'internal' => $row['internal'], 'dependency' => isset($ini['dependency']) && is_array($ini['dependency']) ? $ini['dependency'] : array(), 'compatible' => $min_compatible && $max_compatible); if ($data[$row['id']]['compatible'] == false) { $disable[$row['id']] = $row['internal']; } $dependencies = array_merge($dependencies, $ini['dependency']); if (isset($assoc[$row['internal']])) { $assoc[$row['internal']][] = $row['id']; } else { $assoc[$row['internal']] = array($row['id']); } } $n = 0; while (count($dependencies) > 0) { reset($dependencies); $value = current($dependencies); $key = key($dependencies); if (isset($assoc[$value])) { foreach ($assoc[$value] as $id) { if (isset($data[$id]['dependency']) && is_array($data[$id]['dependency'])) { foreach ($data[$id]['dependency'] as $int) { if (!in_array($int, $disable) && !in_array($int, $dependencies)) { $dependencies[] = $int; } } } if (!isset($disable[$id])) { $disable[$id] = $value; } } } unset($dependencies[$key]); $n++; if ($n > 10000) { trigger_error("setPackagesInactive(): Your database is inconsistent - Please ask the Viscacha support for help.", E_USER_ERROR); // Break loop, Database seems to be inconsistent (or thousands of packages are installed) } } if (count($disable) > 0) { $in = implode(',', array_keys($disable)); $db->query("UPDATE {$db->pre}packages SET active = '0' WHERE id IN ({$in})"); } }
/** * Used to set the, for ex: </RA_php_error>, error-append-tag. Any open tag has a closing tag. This tag is appended after the error * string. In combination, these tags can help us actually catch the error that PHP has given us, so we can report it back to the * developer and make the developer fix that certain issue; * * @param S $errorAppendString The string to append errors with * @return B Will return true if the path was set * @author Catalin Z. Alexandru <*****@*****.**> * @copyright Under the terms of the GNU General Public License v3 * @version $Id: 03_INI.php 313 2009-10-09 13:27:52Z catalin.zamfir $ * @since Version 1.0 * @access protected * @static * @final */ protected static final function setRAErrorAppendString(S $errorAppendString) { // Just set the INTERNAL objErrorAppendString ... if (self::$objErrorAppendString = $errorAppendString) { // Do return ... return new B(TRUE); } else { // Do return ... return new B(FALSE); } }
$sqlwhere = ""; } $file = 'smileys_' . gmdate('Ymd', times()) . '.zip'; $tempdir = "temp/"; $smilieconfig = $config['smileypath'] . '/smileys.ini'; $result = $db->query('SELECT `id`, `search`, `replace`, `desc` FROM `' . $db->pre . 'smileys` ' . $sqlwhere); $files = array(); $filedata = array(); while ($row = $db->fetch_assoc($result)) { $filepath = str_replace('{folder}', $config['smileypath'], $row['replace']); $filedata[$row['id']] = array('search' => $row['search'], 'replace' => $row['replace'], 'desc' => $row['desc']); if (!preg_match('~http(s)?:\\/\\/~i', $filepath)) { $files[] = $filepath; } } $myini = new INI(); $myini->write($smilieconfig, $filedata); $files[] = $smilieconfig; $files = array_unique($files); require_once 'classes/class.zip.php'; $archive = new PclZip($tempdir . $file); // Have to parse $dir with PclZipUtilTranslateWinPath to have equal paths at $files-Array and $dir (PclZip-Bug?) $v_list = $archive->create($files, PCLZIP_OPT_REMOVE_PATH, PclZipUtilTranslateWinPath($config['smileypath'])); if ($v_list == 0) { echo head(); unset($archive); $filesystem->unlink($smilieconfig); error('admin.php?action=bbcodes&job=smileys', $archive->errorInfo(true)); } else { viscacha_header('Content-Type: application/zip'); viscacha_header('Content-Disposition: attachment; filename="' . $file . '"');
$info = $db->fetch_assoc($result); $file = convert2adress($info['name']) . '.zip'; $dirs = array(); if ($tpl == 1) { $dirs[] = array('dir' => "templates/{$info['template']}/", 'func' => 'export_template_list'); } if ($img == 1) { $dirs[] = array('dir' => "images/{$info['images']}/", 'func' => ''); } if ($css == 1) { $dirs[] = array('dir' => "designs/{$info['stylesheet']}/", 'func' => ''); } $tempdir = "temp/"; $error = false; $settings = $tempdir . 'design.ini'; $myini = new INI(); $myini->write($settings, $info); require_once 'classes/class.zip.php'; $archive = new PclZip($tempdir . $file); $v_list = $archive->create($settings, PCLZIP_OPT_REMOVE_PATH, $tempdir); if ($v_list == 0) { $error = true; } else { foreach ($dirs as $dir) { $archive = new PclZip($tempdir . $file); if (!empty($dir['func']) && viscacha_function_exists($dir['func'])) { $list = $dir['func']($dir['dir']); $v_list = $archive->add($list, PCLZIP_OPT_REMOVE_PATH, $dir['dir'], PCLZIP_OPT_ADD_PATH, extract_dir($dir['dir'], false)); } else { $v_list = $archive->add($dir['dir'], PCLZIP_OPT_REMOVE_PATH, $dir['dir'], PCLZIP_OPT_ADD_PATH, extract_dir($dir['dir'], false)); }
<?php if (defined('VISCACHA_CORE') == false) { die('Error: Hacking Attempt'); } // PK: MultiLangAdmin $lang->group("admin/packages"); require 'admin/lib/function.language.php'; require 'classes/class.phpconfig.php'; include 'admin/lib/function.settings.php'; $myini = new INI(); define('DO_UPD_ADD', '+'); define('DO_UPD_DEL', '-'); define('DO_UPD_CHNG', '~'); define('DO_UPD_EQU', '='); function array_diff_all($arr_new, $arr_old, $assoc = false) { if ($assoc == true) { $intersect = 'array_intersect_assoc'; $diff = 'array_diff_assoc'; } else { $intersect = 'array_intersect'; $diff = 'array_diff'; } $arr_equ = $intersect($arr_new, $arr_old); $arr_del = $diff($arr_old, $arr_new); $arr_add = $diff($arr_new, $arr_old); return array(DO_UPD_EQU => $arr_equ, DO_UPD_DEL => $arr_del, DO_UPD_ADD => $arr_add); } function count_diff_all($diff) {
function _build_code($pos) { global $db, $filesystem; $group = $this->_group($pos); $file = 'cache/modules/' . $group . '.php'; if ($this->sqlcache == null) { $this->sqlcache = array(); $this->sqlcache[$group] = array(); $result = $db->query("\n\t \tSELECT m.id, m.module, m.position\n\t \tFROM {$db->pre}plugins AS m\n\t \t\tLEFT JOIN {$db->pre}packages AS p ON m.module = p.id\n\t \tWHERE p.active = '1' AND m.active = '1'\n\t \tORDER BY m.ordering\n\t ", __LINE__, __FILE__); while ($row = $db->fetch_assoc($result)) { $row['group'] = $this->_group($row['position']); $this->sqlcache[$row['group']][$row['position']][$row['id']] = $row['module']; } } if (!isset($this->sqlcache[$group])) { $this->sqlcache[$group] = array(); } $myini = new INI(); $cfgdata = array(); $code = array(); foreach ($this->sqlcache[$group] as $position => $mods) { $code[$position] = ''; foreach ($mods as $id => $plugin) { if (!isset($cfgdata[$plugin])) { $inifile = $this->plugdir . $plugin . '/plugin.ini'; $cfgdata[$plugin] = $myini->read($inifile); } if (isset($cfgdata[$plugin]['php'])) { foreach ($cfgdata[$plugin]['php'] as $phpposition => $phpfile) { if ($position == $phpposition) { $sourcefile = $this->plugdir . $plugin . '/' . $phpfile; if (file_exists($sourcefile)) { $source = file_get_contents($sourcefile); if (!isset($code[$position][$id])) { $code[$position][$id] = ''; } $code[$position][$id] .= '$pluginid = "' . $plugin . '";' . "\r\n" . $source . "\r\n"; } } } } } } $save = serialize($code); $filesystem->file_put_contents($file, $save); return $code; }
$slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $my->p = $slog->Permissions(); $my->pb = $slog->GlobalPermissions(); $breadcrumb->Add($lang->phrase('portal_title')); echo $tpl->parse("header"); // Start Generator define('IMPTYPE_PACKAGE', 1); define('IMPTYPE_DESIGN', 2); define('IMPTYPE_SMILEYPACK', 3); define('IMPTYPE_LANGUAGE', 4); define('IMPTYPE_BBCODE', 5); include 'classes/class.zip.php'; $myini = new INI(); $types = array(1 => 'packages', 2 => 'designs', 3 => 'smileys', 4 => 'languages', 5 => 'bbc'); ?> <div class="border"> <h3>Browser Database Generator</h3> <div class="bbody"> Files generated (5): <a href="viscacha/files/external.ini">external.ini</a> <?php foreach ($types as $key => $dir) { $ini = array(); $cwd = getcwd(); chdir("viscacha/files/{$dir}/"); $files = array(); $dirs = glob("*", GLOB_ONLYDIR); foreach ($dirs as $key2 => $dir2) { chdir($dir2);
<?php require_once 'php/ini.php'; $ini = INI::read('config.ini'); $stat = 0; if (@$_POST && $_POST['isIni']) { foreach ($_POST as $key => $value) { $pos = strpos($key, '|'); $key1 = substr($key, 0, $pos); $key2 = substr($key, $pos + 1); if (strlen($key1)) { $ini[$key1][$key2] = $value; } } is_writeable('config.ini') ? $stat = 1 : ($stat = -1); INI::write('config.ini', $ini); } echo "<form method='post' id='frm_settings'>\n"; echo "<input type=\"hidden\" name=\"isIni\" value=\"1\">"; echo "<table>\n"; foreach ($ini as $key => $value) { echo "<tr align=\"left\">\n"; echo "<td colspan=\"2\"><span id=\"{$key}\"><b>{$key}</b><span></td>\n"; echo "</tr>\n"; foreach ($value as $subkey => $subvalue) { echo "<tr align=\"left\">\n"; $ln = strlen($subvalue) + 5; echo "<td>{$subkey}:</td><td><input name=\"{$key}|{$subkey}\" id=\"{$key}|{$subkey}\" value=\"{$subvalue}\" size=\"" . ($ln < 60 ? $ln : 60) . "\"><br></td>\n"; echo "</tr>\n"; } }
<?php if (defined('VISCACHA_CORE') == false) { die('Error: Hacking Attempt'); } global $db, $config; $result = $db->query("SELECT COUNT(*) FROM {$db->pre}topics"); list($topics) = $db->fetch_num($result); $result = $db->query("SELECT COUNT(*) FROM {$db->pre}replies"); list($posts) = $db->fetch_num($result); $result = $db->query("SELECT COUNT(*) FROM {$db->pre}user WHERE confirm = '11'"); list($members) = $db->fetch_num($result); include "language/{$config['langdir']}/settings.lng.php"; $lngc = $lang['lang_code']; if (!empty($lang['country_code'])) { $lngc .= '_' . $lang['country_code']; } $data = array('settings' => array('url' => $config['furl'], 'name' => $config['fname'], 'description' => $config['fdesc'], 'version' => $config['version'], 'language' => $lngc), 'statistics' => array('topics' => intval($topics), 'posts' => intval($posts), 'members' => intval($members))); $myini = new INI(); $myini->write('feeds/board_data.ini', $data);
/** * manage keys */ static function manage_keys(&$ini, $key, $val) { if (preg_match('/^([a-z0-9_-]+)\\.(.*)$/i', $key, $m)) { INI::manage_keys($ini[$m[1]], $m[2], $val); } else { if (preg_match('/^([a-z0-9_-]+)\\[(.*)\\]$/i', $key, $m)) { if ($m[2] !== '') { $ini[$m[1]][INI::get_key($m[2])] = INI::get_value($val); } else { $ini[$m[1]][] = INI::get_value($val); } } else { $ini[INI::get_key($key)] = INI::get_value($val); } } }
static function convert($iniPath, $extension) { ob_start(); $privNS = "https://github.com/AKSW/{$extension}/raw/master/doap.n3#"; //!!!!REMOVE THIS LINE AFTER YOU HAVE REVIEWED/FIXED THIS FILE!!!! echo <<<EOT @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. @prefix doap: <http://usefulinc.com/ns/doap#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owconfig: <http://ns.ontowiki.net/SysOnt/ExtensionConfig/> . @prefix extension: <http://ns.ontowiki.net/Extensions/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix event: <http://ns.ontowiki.net/SysOnt/Events/> . @prefix : <{$privNS}> . EOT; require_once __DIR__ . '/../../libraries/Zend/Config.php'; require_once __DIR__ . '/../../libraries/Zend/Config/Ini.php'; $config = INI::read($iniPath); //var_dump($config); if (!isset($config['default'])) { $config['default'] = array(); } foreach ($config as $sectionname => $sectionconf) { if (!in_array($sectionname, array('default', 'events', 'private'))) { $config['default'][$sectionname] = $sectionconf; unset($config[$sectionname]); } } //var_dump($config); exit; $subject = ':' . $extension; $es = new ExtensionSerializer(); $es->printStatement('<>', 'foaf:primaryTopic', $subject); $es->printStatement($subject, 'a', 'doap:Project'); $es->printStatement($subject, 'doap:name', '"' . $extension . '"'); $es->printStatement($subject, 'owconfig:privateNamespace', '<' . $privNS . '>'); $mp = new NestedPropertyAndModuleHandler($es, $subject); foreach ($config as $sectionname => $sectionconf) { if ($sectionname == 'private') { $mp->properties = $sectionconf; continue; } if (is_array($sectionconf)) { foreach ($sectionconf as $property => $value) { if ($property == 'modules') { $mp->modules = array_merge_recursive($mp->modules, $value); continue; } else { if ($property == 'priority' || $property == 'contexts' || $property == 'caching' || $property == 'title') { $mp->modules = array_merge_recursive($mp->modules, array('default' => array($property => $value))); } else { if ($sectionname == 'default' && $property == 'helperEvents') { $predicate = 'owconfig:helperEvent'; if (is_array($value)) { foreach ($value as $v) { $object = 'event:' . $v; $es->printStatement($subject, $predicate, $object); } } else { $object = 'event:' . $value; $es->printStatement($subject, $predicate, $object); } } else { if ($sectionname == 'events') { $predicate = 'owconfig:pluginEvent'; if (is_array($value)) { foreach ($value as $v) { $object = 'event:' . $v; $es->printStatement($subject, $predicate, $object); } } else { $object = 'event:' . $value; $es->printStatement($subject, $predicate, $object); } } else { //this is not in global section and not in events $predicate = $es->getPredicate($property, $sectionname); if (is_array($value)) { //should never happen } else { $object = $es->getObject($property, $value); $es->printStatement($subject, $predicate, $object); } } } } } } } else { //parsing a property that has no section -> global section (the first lines until the first section) $property = $sectionname; $value = $sectionconf; $predicate = $es->getPredicate($property, $sectionname); $object = $es->getObject($property, $value); $es->printStatement($subject, $predicate, $object); } } $mp->printN3(); $version = ':v1-0'; $es->printStatement($subject, 'doap:release', $version); $es->printStatement($version, 'a', 'doap:Version'); $es->printStatement($version, 'doap:revision', '"1.0"'); //make sure the destructors are called $es = null; $mp = null; $res = ob_get_clean(); //some wtf fixes :) $res = str_replace(";;", ";", $res); $res = str_replace("[;", "[", $res); $res = str_replace("; ;", ";", $res); $res = str_replace("[ ;", "[", $res); $res = preg_replace("/\\]\\s*\\.?\n\\s*_:[0-9]*/", "];\n", $res); $res = preg_replace("/.\n\\s*_:[0-9]*/", ";\n", $res); return $res; }
/** * */ public function set_k_DB() { $data = array('data_base' => array('HOST' => $_POST['host'], 'DB' => $_POST['db'], 'USER' => $_POST['user'], 'PASS' => $_POST['pass']), 'superadmin' => array('USER' => $_POST['user_kadmin'], 'PASS' => sha1($_POST['pass_kadmin'])), 'project' => array('NAME' => $_POST['project'], 'DEFAULT_LANG' => $_COOKIE[COOKIE_LANG], 'MULTILANG' => isset($_POST['multilang']) ? 1 : 0, 'GROUP_USERS' => isset($_POST['group_users']) ? 1 : 0)); $ini = new INI(K_CONFIG); $ini->create_ini($data); }
<?php if (defined('VISCACHA_CORE') == false) { die('Error: Hacking Attempt'); } // MM/AM: MultiLangAdmin $lang->group("admin/settings"); $lang->group("timezones"); // Loading Config-Data include 'classes/class.phpconfig.php'; include 'admin/lib/function.settings.php'; $c = new manageconfig(); $myini = new INI(); ($code = $plugins->load('admin_settings_jobs')) ? eval($code) : null; if ($job == 'admin') { $config = $gpc->prepare($config); $loadlanguage_obj = $scache->load('loadlanguage'); $language = $loadlanguage_obj->get(); echo head(); ?> <form name="form" method="post" action="admin.php?action=settings&job=admin2"> <table class="border" border="0" cellspacing="0" cellpadding="4" align="center"> <tr> <td class="obox" colspan="2"><?php echo $lang->phrase('admin_admin_control_panel_settings'); ?> </td> </tr> <tr> <td class="mbox" width="50%"><?php echo $lang->phrase('admin_use_extended_navigation_interface');
*/ error_reporting(E_ALL); define('SCRIPTNAME', 'components'); define('VISCACHA_CORE', '1'); include "data/config.inc.php"; include "classes/function.viscacha_frontend.php"; $my->p = $slog->Permissions(); $cid = $gpc->get('cid', int); $com = $scache->load('components'); $cache = $com->get(); ($code = $plugins->load('components_start')) ? eval($code) : null; if (isset($cache[$cid])) { DEFINE('COM_CID', $cid); DEFINE('COM_ID', $cache[$cid]['package']); DEFINE('COM_DIR', 'modules/' . COM_ID . '/'); $myini = new INI(); $ini = $myini->read(COM_DIR . 'component.ini'); $mod = $gpc->get('file', str, 'frontpage'); if (!isset($ini['module'][$mod])) { DEFINE('COM_MODULE', 'frontpage'); } else { DEFINE('COM_MODULE', $mod); } DEFINE('COM_MODULE_FILE', $ini['module'][COM_MODULE]); DEFINE('COM_FILE', $ini['module']['frontpage']); if (!file_exists(COM_DIR . COM_FILE)) { error($lang->phrase('section_not_available')); } else { define('COM_LANG_OLD_DIR', $lang->getdir(true)); $lang->setdir(COM_LANG_OLD_DIR . DIRECTORY_SEPARATOR . COM_DIR); ($code = $plugins->load('components_prepared')) ? eval($code) : null;
<?php if (defined('VISCACHA_CORE') == false) { die('Error: Hacking Attempt'); } // PK: MultiLangAdmin $lang->group("admin/cms"); require 'classes/class.phpconfig.php'; $myini = new INI(); function BBCodeToolBox($id, $content = '', $taAttr = '') { global $tpl, $lang, $scache, $config; $lang->group("bbcodes"); $taAttr = ' ' . trim($taAttr); $cache = $scache->load('custombb'); $cbb = $cache->get(); foreach ($cbb as $key => $bb) { if (empty($bb['buttonimage'])) { unset($cbb[$key]); continue; } $cbb[$key]['title'] = htmlspecialchars($bb['title']); if ($bb['twoparams']) { $cbb[$key]['href'] = "InsertTags('{$id}', '[{$bb['bbcodetag']}=]','[/{$bb['bbcodetag']}]');"; } else { $cbb[$key]['href'] = "InsertTags('{$id}', '[{$bb['bbcodetag']}]','[/{$bb['bbcodetag']}]');"; } } $codelang = $scache->load('syntaxhighlight'); $clang = $codelang->get(); $cache = $scache->load('smileys');
// Get current microtime to calculate execution time $time_start = microtime(true); // Include the configuration file parser. include_once 'cfg/parse.php'; // Include the functions needed to run Phavison. include_once 'phavison.dependants.php'; // Define key variables for the phavison application. $return_data = array(); $error_code = 0; $error_message = ""; $call_data = null; $para = null; $function = null; // Define and populate our phavison settings. $ini = new INI("cfg/config.ini"); $settings_phavison_enabled = $ini->getSetting('SETTINGS', 'ENABLE'); $settings_phavison_secure = $ini->getSetting('SETTINGS', 'ENABLE_SECURE_MODE'); $settings_phavison_get_enabled = $ini->getSetting('SETTINGS', 'ENABLE_GET'); $settings_php_dir = $ini->getSetting('FILES', 'INCLUDE_DIR'); $settings_non_include_dir = $ini->getSetting('FILES', 'NON_INCLUDE_DIR'); $settings_dir_perm = $ini->getSetting('FILES', 'DIR_PERM'); // Check if the user has enabled this Application to run. if (!$settings_phavison_enabled) { $error_message = "Your configuration settings are not allowing phavison to run"; $error_code = "I-Err_1"; $call_data = null; } /* Check if the Phavison's include and non include PHP directories exists, if not, make the directories. -------- START FOLDER PROCESSING -------- */ if (!file_exists($settings_php_dir)) {