$_config .= "define('LOG_DIR', 'logfile/');\n"; $_config .= "define('FILES_LST', LOG_DIR.'Rx08_2208081410_f1L3Z.lst');\n"; $_config .= "define('IP_L33CH_L0G', LOG_DIR.'Rx08_2208081410_IP_L33CH_L0G.lst');\n"; $_config .= "define('VISITOR_LST', LOG_DIR.'Rx08_2208081410_v1zit0r.lst');\n"; $_config .= "define('TRAFFIC_LST', LOG_DIR.'Rx08_2208081410_tR4fic.txt');\n"; $_config .= "define('LOG_PHP', LOG_DIR.'Rx08_2208081410_d4Mn.log.php');\n"; $_config .= "define('LASTLOG_LST', LOG_DIR.'Rx08_2208081410_d4Mn_Last.txt');\n"; $_config .= "define('MYUPLOAD_LST', LOG_DIR.'myuploads.txt');\n"; $_config .= "define('ONGOING_LST', LOG_DIR.'Rx08_2208081410_ongoingTask.lst');\n\n"; $_config .= "###-VIEW-CONFIG\n"; $_config .= "\$navi_left = array(\n"; $field = array("showcpanel", "showplugins", "showaudl", "showauul", "showlynx", "showmtn", "showmtnconfig", "showmtntext", "shownotes", "server_info"); $_config .= fillField($field); $_config .= ");\n\n"; $field = array("forbid_audl", "forbid_auul", "forbid_lynx", "forbid_mtn", "forbid_notes"); $_config .= fillField($field, 1); // not an array sets $_config .= " \$cpuUsageNFO = " . (isset($_POST['cpuUsageNFO']) && $_POST['cpuUsageNFO'] == 'on' ? 'true' : 'false') . "; // require server_info = true\n"; $_config .= "\$OnlineVisitor = " . (isset($_POST['onlinevisit']) && $_POST['onlinevisit'] == 'on' ? 'true' : 'false') . "; //Show Online Visitor\n\n"; $_config .= "\$premix_status = " . (isset($_POST['showpremixstatus']) && $_POST['showpremixstatus'] == 'on' ? 'true' : 'false') . "; // enable acc premix status\n"; $_config .= "\$ip_premixstat_list = array(" . $cain_ip . "); // trusted ip, can view detil acc.\n\n"; $_config .= "###-MTN-CONFIG\n"; $_config .= "\$mtn_cs = '" . $_POST['mtn_cs'] . "';\n"; $_config .= "\$mtn_rs = '" . $_POST['mtn_rs'] . "';\n"; $_config .= "\$mtn_w = '" . $_POST['mtn_w'] . "';\n"; $_config .= "\$mtn_h = '" . $_POST['mtn_h'] . "';\n"; $_config .= "\$mtn_T = '" . $_POST['mtn_T'] . "';\n"; $_config .= "\$mtn_o = '" . $_POST['mtn_o'] . "';\n"; $_config .= "\$mtn_k = '" . $_POST['mtn_k'] . "';\n"; $_config .= "\$mtn_j = '" . $_POST['mtn_j'] . "';\n"; $_config .= "\$mtn_g = '" . $_POST['mtn_g'] . "';\n";
// here we go! foreach ($module->fields as $name => $field) { // FOR EACH FIELD ON THIS MODULE/DATABASE ... if ($field[CONS_XML_TIPO] == CONS_TIPO_SERIALIZED) { if (isset($data[$name]) && $data[$name] != '') { $data[$name] = @unserialize($data[$name]); if ($data[$name] === false) { unset($data[$name]); $core->errorControl->raise(188, $name, $module->name); } } foreach ($field[CONS_XML_SERIALIZEDMODEL] as $exname => $exfield) { fillField($core, $module, $name . "_" . $exname, $exfield, $data, $p, true, $name); } } else { fillField($core, $module, $name, $field, $data, $p); } } #################################### EXTRA JS AND TEMPLATING #################################### // if we had some image, add and prepare shadowbox if ($p['hasImages']) { $core->addScript('shadowbox', array('handleOversize' => '"resize"')); } // max file size if ($p['isMup']) { $p['mfs'] = 1048576 * $p['maxMUPupload']; } else { $phpmfs = ini_get('upload_max_filesize'); // detect hard limit if (strpos($phpmfs, "M") !== false) { $phpmfs = substr($phpmfs, 0, -1) * 1048576;