$job->sub_sort = "DESC"; $job->SearchVacancy($where, array("count" => $per_page)); } if ($hidden_array['subaction'] != "edit" && $job->vacancies) { unset($hidden_array['subaction']); $tpl->OpenTable(); $tpl->OpenSubtable($job->lang['vac_filter']); $tpl->OpenGetForm($PHP_SELF, $hidden_array); $tpl->echo = FALSE; echo "<table width=\"100%\" id=\"filter\"><tr>\n\t\t\t\t\t<td class=\"title\"><b>ID</b></td><td class=\"value\"> " . $tpl->InputText('where[id]', $where['id']) . "</td>\n\t\t\t\t\t<td class=\"title\"><b>{$job->lang['salary']}</b></td><td> " . $job->lang['from'] . $tpl->InputText('where[salary]', $where['salary'], "size='10'") . " " . $tpl->selection($currecy_array, 'where[currency]', $where['currency']) . " " . $tpl->selection(Job::$currecy_array, 'where[currency]', $where['currency']) . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"title\"><b>{$job->lang['company']}</b></td><td class=\"value\"> " . $tpl->selection(array("" => $job->lang['vac_no_company']) + $job->GetCompaniesArray(), 'where[company_id]', $where['company_id']) . "</td>\n\t\t\t\t\t<td class=\"title\"><b>{$job->lang['vac_descr']}</b></td><td class=\"value\"> " . $tpl->InputText('where[description]', urldecode($where['description']), 'size="40"') . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"title\"><b>{$job->lang['sel_sphere']}</b></td><td class=\"value\"> " . $tpl->selection($job->GetSpheres('search'), 'where[sphere_id]', $where['sphere_id'], 'id="sphere_id_search"') . "</td>\n\t\t\t\t\t<td class=\"title\"><b>{$job->lang['sel_specialty']}</b> </td><td class=\"value\">" . $tpl->selection($job->GetSpecialties($where['sphere_id'], 'search'), 'specialties', '', 'id="specialty_id_search"') . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t"; $tpl->echo = TRUE; $tpl->CloseSubtable($job->lang['btn_search']); $tpl->CloseForm(); $tpl->CloseTable(); $tpl->echo = FALSE; $nav = $tpl->navigation($page, $per_page, $job->vacancies_count, $PHP_SELF . PageURL($where)); $tpl->echo = TRUE; $tpl->OpenTable(); $tpl->OpenSubtable($job->lang['vacancies']); $tpl->OTable(array("ID", !$job->use_country && !$job->use_city ? "" : $job->lang['vac_country_city'], $job->lang['specialty'], $job->lang['company'], $job->lang['salary'], $job->lang['vac_added'], $job->lang['vac_exp_date'], $job->lang['action']), "id='vacancies'"); if ($nav) { $tpl->row($nav, true, true); } foreach ($job->vacancies as $vacancy) { $tpl->row(array('style="padding: 2px;"' => $vacancy->allow_site ? $vacancy->id : "<font color='red'>" . $vacancy->id . "</font>", ($vacancy->country_name ? $vacancy->country_name . "/" : "") . $vacancy->city_name, $vacancy->specialty_name, $vacancy->company ? $vacancy->company->name : " - ", $vacancy->salary, $vacancy->add_date, $vacancy->date_exp, "[<a href=\"{$PHP_SELF}&subaction=edit&id={$vacancy->id}\" >{$job->lang['action_edit']}</a>]\n\t\t\t\t\t\t[<a OnClick=\"if (confirm('{$job->lang['vac_del_confirm']}'))return true; else return false;\" href=\"{$PHP_SELF}&subaction=del&id={$vacancy->id}\" >{$job->lang['action_del']}</a>]")); } if ($nav) { $tpl->row($nav, false, true); } $tpl->CTable(); $tpl->CloseSubtable();
$data .= "\$setting['" . $keys[$i] . "'] = '" . addslashes($values[$i][0]) . "';" . "\n"; } } } $data .= "if (substr(\$setting['siteurl'], -1) != '/') \$setting['siteurl'] .= '/';\n?>"; unset($name); unset($setting); unset($value); $file = 'includes/config.inc.php'; $h = fopen($file, 'w'); fwrite($h, $data); fclose($h); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.yourarcadescript.com/handshake.php"); curl_setopt($ch, CURLOPT_POST, 3); curl_setopt($ch, CURLOPT_POSTFIELDS, 'or=' . urlencode(PageURL()) . '&fo=install&ver=2.6'); $result = curl_exec($ch); curl_close($ch); echo "<br/>Site data set. YAS26install.php must be renamed or deleted before you can use your site.<br/><br/>"; echo '</div> </div> </body> </html>'; exit; } if (!isset($_POST['form'])) { if (!is_dir("includes") || !is_dir("templates") || !is_dir("admin")) { echo "Script folders are missing. Please upload all files and folders before installing."; echo '</div> </div> </body>
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"] . $_SERVER["QUERY_STRING"]; } return $pageURL; } function secureURL() { $pageURL = 'https'; $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"] . $_SERVER["QUERY_STRING"]; } else { $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"] . $_SERVER["QUERY_STRING"]; } return $pageURL; } $thisPhp = PageURL(); $auth = $ldap->TO_AUTH; if (isset($HTTP_COOKIE_VARS['LDAPCookie'])) { $ldap->loadCredentials($HTTP_COOKIE_VARS['LDAPCookie']); $auth = $ldap->Authenticate(); } else { if (isset($_POST['username']) && isset($_POST['password'])) { $ldap->setCredentials($_POST['username'], $_POST['password']); $auth = $ldap->Authenticate(); } } if ($auth === $ldap->AUTH_SUCCESSFULL) { /* Non fa nulla */ } else { //Mostra la pagina di login e poi fa un die per proteggere la pagina sottostante.. (ricordarsi che questo file va usato come include nelle pagine che si vogliono proteggere prima di ogni altro header) ?>
<?php $Url = PageURL(); $Url = explode('/', explode('?', $Url)[1]); //Show($Url); if ($Url[0] == 'group') { $UnHash = explode(',', base64_decode($Url[1])); } else { $UnHash = array($Url[1], $Url[0]); } $Hash = array(); //Show($UnHash); for ($i = 0; $i <= count($UnHash); $i += 2) { $TYPE = strtolower($UnHash[$i + 1]); $ID = $UnHash[$i]; if (!$TYPE || !$ID) { continue; } //Show($TYPE); switch ($TYPE) { case 'item': $RES = $DB->SQL("SELECT ID, Icon, Model, Material, Slot, Name_" . $LAN[$Language] . " AS NAME, Type AS TYPE FROM models WHERE ID = '" . $ID . "' AND Type='" . strtoupper($TYPE) . "'")[0]; //Show($RES); if ($RES) { $Hash[] = array("id" => $RES["ID"], "model" => $RES["Model"], "icon" => Iconize($RES["Icon"]), "type" => $RES["TYPE"], "material" => $RES["Material"], "menu" => 'player', "type" => 'item', "name" => $RES["NAME"], "slot" => $RES["Slot"]); } break; case 'monster': case 'pet': case 'primal': case 'summon':