$retval = rating_insert($r); if ($retval) { vol_new_rating($vol, $rating); } } if (!$retval) { echo mysql_error(); boinc_error_page("database error"); } page_head("Feedback recorded"); echo "Your feedback has been recorded. Thanks.\n <p>\n <a href=help.php>Return to BOINC Help</a>.\n "; page_tail(); } else { page_head("Help Volunteer: {$vol->name}"); skype_script(); echo show_info($vol); if (false) { $status = skype_status($vol->skypeid); if ($status != $vol->status) { $vol->status = $status; $vol->last_check = time(); if (online($vol->status)) { $vol->last_online = time(); } vol_update_status($vol); } $image = button_image($status); echo "\n <script type=\"text/javascript\" src=\"http://download.skype.com/share/skypebuttons/js/skypeCheck.js\"></script>\n <img src=images/help/{$image}><p>\n "; echo "<table class=box cellpadding=8 width=100%><tr><td width=40%>"; if (online($status)) { live_contact($vol);
$res = show_info('succ', '处理成功'); } else { $res = show_info('succ', '处理成功'); } echo json_encode($res); log_info("set friend action: send_notice_to_uid {$ret}"); return 0; } else { log_info("set friend action fail: 请选择执行的动作"); $res = show_info('fail', '请选择执行的动作'); echo json_encode($res); return 0; } } catch (PDOException $e) { $db->rollback(); log_info("set friend action fail, " . $e->getMessage()); $res = show_info('fail', $e->getMessage()); $res['localdes'] = $e->getMessage(); echo json_encode($res); return 1; } return 0; } else { log_info("set friend action fail: parameters error"); $res['status'] = 'fail'; $res['des'] = 'parameters error'; } echo json_encode($res); ?>
} } elseif ($action == 'ziped') { if ($dir) { require_once THIS_DIR . '/pclzip.lib.php'; unlink($dir . '/folder.zip'); $archive = new PclZip($dir . '/folder.zip'); $archive->add($dir, PCLZIP_OPT_REMOVE_PATH, $dir); } else { show_info('info', 'Ошибка: директория не найдена'); } } elseif ($action == 'createDir') { $dirname = isset($_POST['dirname']) ? replase($_POST['dirname']) : false; if ($dirname && $dirname !== '') { @mkdir($dir . '/' . $dirname); } else { show_info('info', 'Ошибка при создании директории'); } } elseif ($action == 'edit') { print @file_get_contents($dir . '/' . $idName); } elseif ($action == 'save_edit') { $dataf = convert_ch(stripcslashes(trim($_POST['data']))); print @file_put_contents($dir . '/' . $idName, $dataf); } elseif ($action == 'convert') { $p = isset($_POST['p']) ? intval($_POST['p']) : false; $fileload = @file_get_contents($dir . '/' . $idName); if ($p) { $fileload = mb_convert_encoding($fileload, "Windows-1251", "UTF-8"); @file_put_contents($dir . '/' . $idName, $fileload); } else { $fileload = mb_convert_encoding($fileload, "UTF-8", "Windows-1251"); @file_put_contents($dir . '/' . $idName, $fileload);
$stmt->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $g_member = array(); $g_member['uid'] = $row['id']; $g_member['nickname'] = $row['nickname']; $g_member['birthday'] = $row['birthday']; $g_member['gender'] = $row['gender']; $g_member['status'] = $row['status']; $g_member['icon'] = get_avatar_url($row['id']); $g_member_list[] = $g_member; } //不管执行成功还是失败最后都要在关闭自动提交 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, 1); log_info("make group succ. uid:{$uid}"); $group_data = array(); $group_data['gid'] = $gid; $group_data['nickname'] = $group_name; $group_data['owner'] = $owner_id; $group_data['status'] = 0; $group_data['icon'] = get_group_avatar_url($gid); $group_data['members'] = $g_member_list; $res = show_info('succ', '注册成功!'); $res['group'] = $group_data; echo json_encode($res); return 0; } else { log_info("register fail, parameters error"); $res['status'] = 'fail'; $res['des'] = 'parameters error'; echo json_encode($res); }
} if (!checkgroup($data['access']) && $prp->settings['hide_cats']) { continue; } $cnt_cats = prp_count_cats($id); $cnt_downs = prp_count_dl($all_cats, $id); $cats[$id] = array("name" => $data['name'], "cnt_downs" => $cnt_downs, "cnt_cats" => $cnt_cats, "desc" => parseubb($data['desc'])); } } prp_render_cats($catid, $review->id, $path, $cats); unset($path, $cats); if (!is_null($access_group)) { if ($prp->settings['hide_cats']) { fallback("error.php?type=access"); } show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215'])); } } /*************************************************************************** * DOWNLOADS * ***************************************************************************/ if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) { $rowstart = 0; if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) { $rowstart = $_GET['rowstart']; } $downs = array(); if (isset($catid)) { $get = array('type' => 'cat', 'data' => $catid); } else { $get = array('type' => 'none');
$sel_cat = "<option value='0'>" . $locale['PDP033'] . "</option>\n{$sel_cat}"; /* * CREATE LICENSE SEL */ $query_id = dbquery("SELECT license_id, license_name" . " FROM " . DB_PDP_LICENSES); $sel_license = "<option value='0'>" . $locale['PDP033'] . "</option>\n"; while ($data = dbarray($query_id)) { $sel_license .= "<option value='" . $data['license_id'] . "'>" . $data['license_name'] . "</option>\n"; } /* * GUI */ opentable($locale['PDP860']); pdp_admin_menu(); if (count($all_cats) == 0) { show_info($locale['PDP825']); } // php fusion downloads -> pro/download downloads $query_id = dbquery("SELECT download_title, download_cat_name, download_url,\n\tdownload_id, download_license\n\tFROM " . DB_DOWNLOADS . "\n\tLEFT JOIN " . DB_DOWNLOAD_CATS . "\n\t\tON download_cat=download_cat_id"); echo "<p>" . $locale['PDP863'] . "\n<p><form method='post' action='" . FUSION_SELF . "?do_import=yes'>\n<table class='tbl-border' width='100%' cellspacing='1'>\n<tr>\n\t<th colspan='3'>" . $locale['PDP864'] . "</th>\n\t<th width='1%'><img src='" . THEME . "images/right.gif' alt='-->'></th>\n\t<th colspan='2'>" . $locale['PDP865'] . "</th>\n</tr>\n<tr>\n\t<td class='tbl2' width='1%'></td>\n\t<td class='tbl2'><b>" . $locale['PDP002'] . "</b></td>\n\t<td class='tbl2'><b>" . $locale['PDP217'] . " / " . $locale['PDP012'] . " / " . $locale['pdp_license'] . "</b></td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl2'></td>\n</tr>\n"; while ($data = dbarray($query_id)) { $id = $data['download_id']; if (!isset($imported[$id])) { $imported[$id] = ""; } echo "<tr>\n\t<td class='tbl1' style='white-space:nowrap;'>" . $imported[$id] . "<input type='checkbox' name='take[{$id}]' checked></td>\n\t<td class='tbl1'>" . $data['download_title'] . "</td>\n\t<td class='tbl1' colspan='3'><input type='text' class='textbox' size='60'" . " value='" . $data['download_url'] . "' name='down[{$id}]'></td>\n</tr>\n<tr>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'>" . $data['download_cat_name'] . "</td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl1'><select name='cat[{$id}]' class='textbox'>{$sel_cat}</select></td>\n</tr>\n<tr>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'></td>\n\t<td class='tbl1'>" . $data['download_license'] . "</td>\n\t<td class='tbl2'><img src='" . THEME . "images/right.gif' alt='-->'></td>\n\t<td class='tbl1'><select name='license[{$id}]' class='textbox'>{$sel_license}</select></td>\n</tr>\n<tr>\n\t<td class='forum-caption' colspan='5'></td>\n</tr>\n"; } echo "</table>\n"; if ($do_import) { echo "\n<p>\n\t<strong>" . $locale['PDP861'] . "</strong>\n</p>\n"; } else {
} if ($host) { $libdir = $libdir . "/{$host}"; $imgdir = "img/{$host}"; } $handle = opendir($libdir); $hosts = array(); while ($file = readdir($handle)) { if ($file != "." && is_dir("{$libdir}/{$file}")) { if (file_exists("{$libdir}/{$file}/{$as_pkg}.state")) { $hosts[] = $file; } } } if (extension_loaded('Reflection') && $debug == 'true') { $dbg_msg .= show_info('dummy', 0); } /* * Finish up the html with the description of the message classifications */ if ($legend == 'true') { $legend_msg = "<table style=\"font-size:x-small;\" cellpadding=0 border=0 cellspacing=0>\n\t<tr>\n\t\t<td><b><font color=green>Passed CLEAN</font></b>:</td><td> </td><td>clean or '\$tag_level' < '\$tag2_level'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed SPAM</font></b>:</td><td></td><td>classified as SPAM but delivered because '\$tag_level' < '\$kill_level'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed BANNED</font></b>:</td><td></td><td>classified as BANNED but delivered</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=green>Passed BAD-HEADER</font></b>:</td><td></td><td>classified as BAD-HEADER but delivered</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked SPAM</font></b>:</td><td></td><td>not delivered, spam classified with '\$tag_level' >= '\$kill_level' and '\$final_spam_destiny' != 'pass'</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked BANNED</font></b>:</td><td></td><td>not delivered, banned file extension attached.</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked BAD-HEADER</font></b>:</td><td></td><td>not delivered, contains bad headers.</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Blocked INFECTED</font></b>:</td><td></td><td>not delivered, contains virus</td>\n\t</tr>\n\t<tr>\n\t\t<td><b><font color=red>Not Delivered</font></b>:</td><td></td><td>could not be delivered, e.g. destination host refuses to accept delivery.</td>\n\t</tr>\n</table>\n"; } $template = new Template($as_root_path . $template_path); $template->assign_vars(array("PAGE_TITLE" => $title)); $template->set_filenames(array('body' => 'index_body.tpl')); $template->assign_vars(array('S_CONTENT_DIRECTION' => 'ltr', 'S_CONTENT_ENCODING' => 'iso-8859-1', 'RATE' => $rate, 'META_REFRESH' => $refresh && is_numeric($refresh) && $refresh > 0 ? "<meta http-equiv=\"refresh\" content=\"{$refresh}\">" : NULL, 'REFRESH' => $refresh && is_numeric($refresh) && $refresh > 0 ? $refresh : 0, 'LEGEND' => $legend, 'LEGEND_MSG' => $legend_msg, 'SPAN' => $span, 'PGRAPH' => asLoadStats($host) ? asPGraph("{$imgdir}/passed-{$span}.png", $now, $span) : "No statistics available.", 'VGRAPH' => asLoadStats($host) ? asVGraph("{$imgdir}/virus-{$span}.png", $now, $span) : "No statistics available.", 'SBGRAPH' => asLoadStats($host) ? asSBGraph("{$imgdir}/sb-{$span}.png", $now, $span) : "No statistics available.", 'VERSION' => $as_version, 'OUT_MSG' => $out_msg ? $out_msg : '', 'DBG_MSG' => $dbg_msg ? $dbg_msg : '', "PAGE_TITLE" => $title, 'HOST' => $host)); $template->assign_block_vars("time_date_row", array("CURRENT_DATE" => strftime("%A %B %d %H:%M:%S (GMT%z)", time()))); $template->assign_block_vars("button_row", array("BUTTON" => $debug != 'true' ? "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug=true&rate={$rate}&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=debug\"></a>" : "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug=false&rate={$rate}&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=nodebug\"></a>")); $template->assign_block_vars("button_row", array("BUTTON" => $rate != 3600 ? "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug={$debug}&rate=3600&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=hour\"></a>" : "<a href=\"{$me}?host={$host}&span={$span}&refresh={$refresh}&debug={$debug}&rate=60&legend={$legend}\"><img src=\"{$me}?button={$button_unselected}&text=min\"></a>")); $button_text = array('daily', 'weekly', 'monthly', 'yearly');
***************************************************************************/ if (!defined('IN_FUSION') || !checkrights('IP')) { die; } /**************************************************************************** * CHECK FOR FILE UPDATES */ $obsolete_files = array('tooltips.js', 'cross.js', 'week.php', 'browse.php'); $files_to_delete = array(); foreach ($obsolete_files as $file) { if (file_exists($file)) { $files_to_delete[] = $file; } } if (count($files_to_delete)) { show_info($files_to_delete, 'warning', $locale['awec_pls_delete']); } /**************************************************************************** * CHECK FOR DB UPDATES */ $mysql = array(); switch ($awec_settings['version']) { case "0.2.0": case "0.3.0": $newver = "0.3.5"; $mysql[] = "ALTER TABLE " . DB_PREFIX . "aw_ec_events\n\t\tADD COLUMN ev_login_limit tinyint(1) unsigned NOT NULL default '0'"; $mysql[] = "ALTER TABLE " . DB_PREFIX . "aw_ec_events\n\t\tCHANGE COLUMN ev_rep_year ev_repeat tinyint(1) unsigned NOT NULL default '0'"; break; case "0.3.5": case "0.4.1": $newver = "0.3.7";
* Copyright (C) pirdani * * pirdani@hotmail.de * * http://pirdani.de/ * * * * Copyright (C) 2005 EdEdster (Stefan Noss) * * http://edsterathome.de/ * * * * Copyright (C) 2006-2008 Artur Wiebe * * wibix@gmx.de * * http://wibix.de/ * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ require_once 'include/common.php'; require_once 'include/theme_funcs.php'; if (isset($_GET['type']) && isset($locale['PDP341'][$_GET['type']])) { $err = $_GET['type']; } else { $err = '-'; } opentable($pdp->settings['title']); pdp_menu(); closetable(); opentable($locale['PDP049']); echo '<p>' . $locale['PDP340'] . '</p>'; show_info('<strong>' . $locale['PDP341'][$err] . '</strong>', 'warning'); closetable(); require_once 'include/die.php';
} $res = dbquery("SELECT ev.*, user_name,\n\tDATE_FORMAT(ev_start, '" . $awec_settings['date_fmt'] . "') AS date,\n\tDATE_FORMAT(ev_end, '" . $awec_settings['date_fmt'] . "') AS end_date,\n\tDATE_FORMAT(ev_end_time, '" . $awec_settings['time_fmt'] . "') AS end_time,\n\tDATE_FORMAT(ev_start_time, '" . $awec_settings['time_fmt'] . "') AS start_time\n\tFROM " . AWEC_DB_EVENTS . " AS ev\n\tLEFT JOIN " . DB_USERS . " AS fu USING(user_id)\n\tWHERE ev_id='" . $_GET['id'] . "' {$user_access}"); if (dbrows($res) == 0) { fallback('index.php'); } $event = dbarray($res); if (!empty($user_access) && !checkgroup($event['ev_access'])) { fallback('index.php'); } $event['date'] = '<a href="day.php?date=' . $event['ev_start'] . '">' . $event['date'] . '</a>'; $event['hide_logins'] = true; /**************************************************************************** * GUI */ //opentable($locale['EC300']); opentable($event['ev_title']); awec_menu(); if ($event['ev_status']) { show_info($locale['awec_status_longdesc'][$event['ev_status']]); } awec_render_event($event, '&time=' . $event['ctime']); closetable(); /* require_once INCLUDES."comments_include.php"; showcomments("E","aw_ec_events","ev_id",$event['ev_id'],FUSION_SELF.'?id='.$event['ev_id']); */ $can_login = checkgroup($event['ev_login_access']); if ($event['ev_allow_logins'] && ($can_login || !$event['hide_logins'])) { require_once 'include/event_logins.php'; } require_once 'include/die.php';
.transbox{ background:rgba(0, 0, 0, .07); border-radius: 10px; box-shadow: 1px 7px 36px -5px; } </style> </head> <body> <?php static $row; $row = get_user_data(); ?> <div class="container text-center top-container"> <h1>Welcome <?php show_info("first_name"); ?> </h1> </div> <div class="container top-container transbox"> <div class="container text-center"> <a href="add_realtor.php"> Create A Realtor</a> </div><br> <div class="container text-center"> <a href="admin_database.php"> Edit Listings</a> </div><br> <div class="container text-center"> <a href="contactUsers.php"> User Messages</a> </div> </div>
<?php @session_start(); @set_time_limit(0); @error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE); @ini_set('display_errors', true); @ini_set('html_errors', false); @ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE); define('ROOT_DIR', dirname(dirname(__FILE__))); define('THIS_DIR', dirname(__FILE__)); require_once THIS_DIR . '/function.php'; require_once THIS_DIR . '/login.php'; if (!$is_logged) { show_info('sesion'); } $is_logged = login_alt($is_logged); @mkdir(ROOT_DIR . '/cache/' . $is_logged); $loadSt = isset($_GET['prew']) ? false : true; ?> <!DOCTYPE HTML> <head> <title>RAID - Iframe Result</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="styleIframe.css" type="text/css" /> <?php if ($loadSt) { print html_js('../lib/js', array('jquery')); print html_js('../lib/js', array('iframe_result')); ?> <script> $(document).ready(function(){
* Copyright (C) pirdani * * pirdani@hotmail.de * * http://pirdani.de/ * * * * Copyright (C) 2005 EdEdster (Stefan Noss) * * http://edsterathome.de/ * * * * Copyright (C) 2006-2008 Artur Wiebe * * wibix@gmx.de * * http://wibix.de/ * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ require_once 'include/common.php'; require_once 'include/theme_funcs.php'; if (isset($_GET['type']) && isset($locale['PDP341'][$_GET['type']])) { $err = $_GET['type']; } else { $err = '-'; } opentable($pdp->settings['title']); pdp_menu(); closetable(); opentable($locale['PDP049']); echo '<p>' . $locale['PDP340'] . '</p>'; show_info('<img src="icons/messagebox_warning.png" alt="' . $locale['pdp_warning'] . '" style="float:left; padding-right:10px;" /> <strong>' . $locale['PDP341'][$err] . '</strong>', 'warning', true); closetable(); require_once 'include/die.php';
foreach ($values as $style => $value) { $compliteStyle .= ' ' . $style . ': ' . $value . ";\n"; } $compliteStyle .= "}\n"; } } } } $compliteStyle .= "</style>\n"; } $compliteStyle = preg_replace("'<style[^>]*>\\s*<\\/style>'si", '', $compliteStyle); @mkdir(ROOT_DIR . '/userData/userData/' . $is_logged); @file_put_contents(ROOT_DIR . '/userData/userData/' . $is_logged . '/' . $filenames . '.html', $compliteStyle . $dataPost); } } else { show_info('info', 'Возникла ошибка получения данных.'); } } elseif ($action == 'allPrj') { $file = my_fileBuld($dirName); $allowed = array('prj'); if (count($file['dir']) > 0) { foreach ($file['dir'] as $name) { $p++; $p = $p > 2 ? 1 : $p; $date = @date("F d Y", @filemtime($dirName . '/' . $name)); $size = FSizeNumber(sizeFolder($dirName . '/' . $name)); $prj .= '<li class="li_prj_' . $name . ' p_' . $p . '"><div class="lineB"><img src="lib/images/future_projects.png" class="left" /><div class="left textPad" style="min-width: 100px; font-weight: bold">' . $name . '</div><div class="left grayColor textPad" style="min-width: 110px">' . $date . '</div><div class="left grayColor textPad">' . $size . '</div><div class="right"><div class="grayBtn" style="margin-right: 10px" onclick="file.open(\'' . $name . '\')">Открыть</div><div class="grayBtn" onclick="file.del(\'' . $name . '\')">Удалить</div></div><div class="clear"></div></div></li>'; } print '<ul class="ul tableList projectList">' . $prj . '</ul>'; } else { print 'Вы еще не создали ни один проект.';
show_end(); unset($_SESSION["option"]); unset($_SESSION["info"]); unset($_SESSION["history"]); session_destroy(); } } else { # i.e. strcmp($option, 'choice') == 0 $value = $_POST["value"]; # Get the choice $_SESSION["history"][] = $value; # Update the history if ($value == 1) { # Show correct output based on choice show_header(); show_info(); show_menu(); show_end(); } elseif ($value == 2) { show_header(); $time = time(); $strtime = date("Y-m-d-H:i:s", $time); # see date() function echo "{$strtime} <br />"; show_menu(); show_end(); } elseif ($value == 3) { show_header(); $hist = $_SESSION["history"]; foreach ($hist as $key => $value) { echo "{$key}: ";
if (!$id) { continue; } $sel_mod_grp .= "<option value='{$id}'" . ($id == $prp->settings['mod_grp'] ? " selected" : "") . ">" . "{$name}</option>\n"; } $new_days_long = ""; for ($i = 0; $i <= 30; $i++) { $new_days_long .= "<option" . ($i == $prp->settings['new_days_long'] ? " selected" : "") . ">{$i}</option>\n"; } /**************************************************************************** * GUI */ opentable($locale['PRP700']); prp_admin_menu(); if (isset($_GET['errno'])) { show_info($locale['PRP708']); } $allow_comments = ""; $allow_votes = ""; foreach ($locale['PRP729'] as $val => $text) { $allow_comments .= "<option value='{$val}'" . ($prp->settings['kommentare'] == $val ? "selected" : "") . ">{$text}</option>"; if ($val) { $allow_votes .= "<option value='{$val}'" . ($prp->settings['bewertungen'] == $val ? "selected" : "") . ">{$text}</option>"; } } $broken_text_legend = ""; foreach ($locale['PRP732'] as $code => $text) { $broken_text_legend .= "<b>{$code}</b> - {$text}<br>\n"; } $sel_theme = "<option value=''>" . $locale['PRP740'] . "</option>\n"; $handle = opendir("../themes");
/** * Performs import of uploaded KML file * * @param string $filename */ protected function itemsImportKml($filename, $mapId, $type) { $mapId = vf($mapId, 3); $type = vf($type); $toImport = array(); $importCount = 0; if (file_exists(self::UPLOAD_PATH . '/' . $filename)) { $rawData = file_get_contents(self::UPLOAD_PATH . '/' . $filename); if (!empty($rawData)) { $rawData = zb_xml2array($rawData); if (isset($this->allMaps[$mapId])) { if (!empty($rawData)) { if (isset($rawData['kml'])) { if (isset($rawData['kml']['Document'])) { $importDocument = $rawData['kml']['Document']; if (!empty($importDocument)) { //turbo GPS 3 broken format foreach ($importDocument as $io => $each) { if ($io == 'Placemark') { $toImport = $each; } else { //natural google earth format if (is_array($each)) { foreach ($each as $ia => $deeper) { if ($ia == 'Placemark') { $toImport = $deeper; } } } } //extracting placemarks if (!empty($toImport)) { $placemarks = $this->kmlExtractPlacemarks($toImport); if (!empty($placemarks)) { foreach ($placemarks as $ix => $importPm) { $this->itemCreate($mapId, $type, $importPm['geo'], $importPm['name'], ''); $importCount++; } show_info(__('Objects') . ': ' . $importCount); show_window('', wf_Link('?module=custmaps&showitems=' . $mapId, wf_img('skins/refresh.gif') . ' ' . __('Renew'), false, 'ubButton')); } } } } } else { show_error(self::EX_WRONG_KML); } } else { show_error(self::EX_WRONG_KML); } } else { show_warning(__('Empty file') . ' ' . self::EX_WRONG_KML); } } else { show_error(self::EX_NO_MAP_ID); } } else { show_warning(__('Empty file') . ' (.kml)'); } } else { show_error(self::EX_NO_FILE); } }
if (!isset($_SESSION['ID']) or $_SESSION['ID'] == 0) { if (isset($_POST["macs_login"]) and isset($_POST["macs_pw_md5"]) and !empty($_POST["macs_login"]) and !empty($_POST["macs_pw_md5"])) { $stmt = $db->prepare("SELECT `hash`,`id` FROM `macs`.`user` where login=:login and active=1"); $stmt->bindParam(":login", $_POST["macs_login"], PDO::PARAM_STR); $stmt->execute(); foreach ($stmt as $row) { //echo "<br>given ".$_POST["macs_pw_md5"]." vs ".$row["hash"]; if ($row["hash"] == $_POST["macs_pw_md5"]) { //echo "i guess you are in"; $_SESSION['ID'] = $row["id"]; $login = 1; //show_info("Good to see you again, ".$_POST["macs_login"]); echo "<script>window.location.replace('index.php?msg=Good to see you again, " . $_POST["macs_login"] . "');</script>"; break; } } } if (!$login) { include_once "html.php"; $o = '<form action="index.php?" method="post" id="login_form">'; $o .= '<table class="logintable">'; $o .= '<tr><td><input type="text" id="macs_login" name="macs_login"></td><td><input type="password" id="macs_pw" name="macs_pw"></td></tr>'; $o .= '<tr><td colspan="2"><input type="hidden" name="macs_pw_md5" id="macs_pw_md5"><input type="submit"></td></tr></table></form>'; echo $header . $o . $footer; exit(0); } } else { if (isset($_GET['msg'])) { show_info($_GET['msg']); } }
while ($data = dbarray($res)) { $ok = dbquery("DELETE FROM " . AWEC_DB_LOGINS . "\n\t\t\tWHERE ev_id='" . array_shift($data) . "'"); } // delete events $ok = dbquery("DELETE FROM " . AWEC_DB_EVENTS . "\n\t\tWHERE " . $where); if ($ok) { fallback(FUSION_SELF . '?errno=1'); } } /* * GUI */ opentable($locale['EC715']); awec_menu(); if (isset($_GET['errno']) && isset($locale['EC717'][$_GET['errno']])) { show_info($locale['EC717'][$_GET['errno']]); } echo ' <p>' . $locale['EC716'] . '</p> <p>' . $locale['EC716_'] . '</p> <form method="get" action="' . FUSION_SELF . '"> <input type="text" class="textbox" name="days" value="180" size="3"> <label>' . $locale['EC721'] . '</label> <p> <label><input type="checkbox" name="del_events" /> ' . $locale['awec_confirm_del'] . '</label> </p> <input type="submit" class="button" value="' . $locale['EC305'] . '"> </form>';
- <input type='button' value='".AWEC_BREAK."' class='button' onClick=\"insertText('comment_message', '".AWEC_BREAK."');\">\n"; */ opentable($event['ev_id'] ? $locale['EC101'] : $locale['EC100']); awec_menu(); if ($event['ev_id']) { echo ' <div style="text-align:right"> <strong>' . $locale['awec_status'] . ':</strong> ' . $locale['awec_status_desc'][$event['ev_status']] . ' | <a href="view_event.php?id=' . $event['ev_id'] . '">' . $locale['EC102'] . '</a> </div>'; } if (count($errors)) { show_info($errors, 'warning'); } if (isset($_GET['errno']) && isset($locale['EC113'][$_GET['errno']])) { show_info($locale['EC113'][$_GET['errno']], 'info'); } $tabs = array('desc' => $locale['awec_description'], 'repeat' => $locale['awec_repeat'], 'logins' => $locale['awec_logins']); if (!empty($cats)) { $tabs['cats'] = $locale['awec_cats']; } awec_tabs($tabs); awec_open_tab('desc', $locale['awec_description']); echo ' <form action="' . $action . '" method="post" name="inputform"> <p> <label for="title">' . $locale['EC103'] . ':</label> <span class="small">' . $locale['awec_mandatory'] . '</span><br /> <input type="text" name="title" id="title" class="textbox" size="40" maxlength="200" value="' . $event['ev_title'] . '" />
$post_ex = explode("_", $post); if ($post_ex[0] == "c" and count($post_ex) == 3) { $stmt = $db->prepare("INSERT INTO `macs`.`access` (`user_id`, `mach_id`) VALUES (:uid, :mid);"); $stmt->bindParam(":uid", $post_ex[2], PDO::PARAM_INT); $stmt->bindParam(":mid", $post_ex[1], PDO::PARAM_INT); $stmt->execute(); } } // mark all machines as updateable $stmt = $db->prepare("SELECT `id` FROM `macs`.`mach`"); $stmt->execute(); foreach ($stmt as $row) { set_mach_outdated($row["id"], $db); } add_log("-", "-", "access right updated", "-"); show_info("access right updated"); } } ////////////////// USER /////////////// ////////////////// DB CHANGES /////////////// $o = $header . '<table class="maintable"><tr class="header click ' . hide_table("user") . '"><td>+ Add/Edit User</td></tr> <tr><td><table class="fillme" id="usertable"> <tr class="subheader"><td>Name</td><td>eMail</td><td>Badge-ID</td><td>Admin access</td><td>last used</td><td>edit</td></tr>'; ///////////////// GET USER /////////////// $o_user = ""; $stmt = $db->prepare('SELECT * FROM user where active=1'); $stmt->execute(); foreach ($stmt as $row) { $last_seen = date("Y/m/d H:i", $row["last_seen"]); if ($row["last_seen"] == 0) { $last_seen = "-";
function parse_options() { global $html_out, $config_values; $filler = "<br>"; array_keys($_GET); $commands = array_keys($_GET); if (empty($commands)) { return FALSE; } if (preg_match("/^\\//", $commands[0])) { $commands[0] = preg_replace("/^\\//", '', $commands[0]); } switch ($commands[0]) { case 'getClientData': if ($_REQUEST['recent']) { $response = getClientData(1); } else { $response = getClientData(0); } echo $response; exit; case 'delTorrent': $response = delTorrent($_REQUEST['delTorrent'], $_REQUEST['trash'], $_REQUEST['batch']); echo "{$response}"; exit; case 'stopTorrent': $response = stopTorrent($_REQUEST['stopTorrent'], $_REQUEST['batch']); echo "{$response}"; exit; case 'startTorrent': $response = startTorrent($_REQUEST['startTorrent'], $_REQUEST['batch']); echo "{$response}"; exit; case 'moveTo': $response = moveTorrent($_REQUEST['moveTo'], $_REQUEST['torHash'], $_REQUEST['batch']); echo "{$response}"; exit; case 'updateFavorite': $response = update_favorite(); if (preg_match("/^Error:", $response)) { echo "<div id=\"fav_error\" class=\"dialog_window\" style=\"display: block\">{$response}</div>"; } break; case 'updateFeed': update_feed(); break; case 'clearCache': clear_cache(); break; case 'setGlobals': update_global_config(); write_config_file(); break; case 'matchTitle': $feedLink = $_GET['rss']; foreach ($config_values['Feeds'] as $key => $feed) { if ($feed['Link'] == "{$feedLink}") { $idx = $key; } } if ($config_values['Feeds'][$idx]['seedRatio']) { $seedRatio = $config_values['Feeds'][$idx]['seedRatio']; } else { $seedRatio = $config_values['Settings']['Default Seed Ratio']; } if (!$seedRatio) { $seedRatio = -1; } if ($tmp = guess_match(html_entity_decode($_GET['title']), TRUE)) { $_GET['name'] = trim(strtr($tmp['key'], "._", " ")); if ($config_values['Settings']['MatchStyle'] == "glob") { $_GET['filter'] = trim(strtr($tmp['key'], " ._", "???")); $_GET['filter'] .= '*'; } else { $_GET['filter'] = trim($tmp['key']); } $_GET['quality'] = $tmp['data']; $_GET['feed'] = $_GET['rss']; $_GET['button'] = 'Add'; $_GET['savein'] = 'Default'; $_GET['seedratio'] = $seedRatio; } else { $_GET['name'] = $_GET['title']; $_GET['filter'] = $_GET['title']; $_GET['quality'] = 'All'; $_GET['feed'] = $_GET['rss']; $_GET['button'] = 'Add'; $_GET['savein'] = 'Default'; $_GET['seedratio'] = $seedRatio; } if ($config_values['Settings']['Default Feed All'] && preg_match('/^(\\d+)x(\\d+)p?$|^(\\d{8})$/i', $tmp['episode'])) { $_GET['feed'] = 'All'; } $response = update_favorite(); if ($response) { echo "{$response}"; } //break; exit; case 'hide': $response = add_hidden(ucwords($_GET['hide'])); if ($response) { echo "ERROR:{$response}"; } else { $guess = guess_match(html_entity_decode($_GET['hide']), TRUE); echo $guess['key']; } exit; case 'delHidden': del_hidden($_GET['unhide']); break; case 'dlTorrent': // Loaded via ajax foreach ($config_values['Favorites'] as $fav) { $guess = guess_match(html_entity_decode($_GET['title'])); $name = trim(strtr($guess['key'], "._", " ")); if ($name == $fav['Name']) { $downloadDir = $fav['Save In']; } } if ((!isset($downloadDir) || $downloadDir == "Default") && isset($config_values['Settings']['Download Dir'])) { $downloadDir = $config_values['Settings']['Download Dir']; } $r = client_add_torrent(preg_replace('/ /', '%20', trim($_GET['link'])), $downloadDir, $_GET['title'], $_GET['feed']); if ($r == "Success") { $torHash = get_torHash(add_cache($_GET['title'])); } if (isset($torHash)) { echo $torHash; } else { echo $r; } exit(0); break; case 'clearHistory': // Loaded via ajax if (file_exists($config_values['Settings']['History'])) { unlink($config_values['Settings']['History']); } display_history(); close_html(); exit(0); break; case 'get_client': global $config_values; echo $config_values['Settings']['Client']; exit; case 'version_check': echo version_check(); exit; case 'post_bug': global $tw_version; $response = post_bug($_POST['Summary'], $_POST['Name'], $_POST['Email'], $_POST['Priority'], $_POST['Description']); echo $response; exit; case 'get_dialog_data': switch ($_GET['get_dialog_data']) { case '#favorites': display_favorites(); exit; case '#configuration': display_global_config(); exit; case '#hidelist': display_hidelist(); exit; case '#feeds': display_feeds(); exit; case '#history': display_history(); exit; case '#show_legend': display_legend(); exit; case '#report_bug': report_bug(); exit; case '#clear_cache': display_clearCache(); exit; case '#show_transmission': display_transmission(); exit; case '#show_info': show_info(urldecode($_GET['episode_name'])); exit; default: exit; } default: $output = "<script type='text/javascript'>alert('Bad Paramaters passed to " . $_SERVER['PHP_SELF'] . ": " . $_SERVER['REQUEST_URI'] . "');</script>"; } if (isset($exec)) { exec($exec, $output); } if (isset($output)) { if (is_array($output)) { $output = implode($filler, $output); } $html_out .= str_replace("\n", "<br>", "<div class='execoutput'>{$output}</div>"); echo $html_out; $html_out = ""; } return; }
$c_user = urldecode(stripinput($_GET['comm_user'])); $c_text = urldecode(stripinput($_GET['comm_text'])); $c_smileys = $_GET['comm_smileys'] == "1" ? "1" : "0"; } else { $c_user = ""; $c_text = ""; $c_smileys = "1"; } if (iMEMBER) { $name_line = ""; } else { $name_line = $locale['PDP002'] . ": <input type='text' size='32' maxlength='50'" . " class='textbox' name='comment_name'" . " value='" . $c_user . "' /><br />\n"; } opentable($locale['PDP211']); if (isset($_GET['wrong_captcha'])) { show_info($locale['pdp_wrong_captcha']); } echo "\n<a name='new_comment'></a>\n<p></p>\n<form action='include/do_did.php?did=" . $download->id . "' method='post'\n\tname='inputform'>\n<div align='center'>\n{$name_line}\n\n<textarea cols='60' rows='5' class='textbox' name='comm_text'>" . $c_text . "</textarea><br />" . pdp_get_bb_smileys("comm_text", $c_smileys, true) . ' <hr />'; if (!iMEMBER) { echo ' <p></p> <label>' . $locale['pdp_captcha'] . ':</label><br /> ' . make_captcha() . ' <input type="text" class="textbox" name="user_code" size="5" />'; } echo ' <p></p> <input type="submit" value="' . $locale['PDP211'] . '" class="button" name="add_comment" /> </div>
<div class="container top-container transbox"> <div class="container text-center"> <h1>Contact Information</h1> <a href="edit_user.php"> Edit</a> </div> <div class="input-group input-group-sm col-sm-offset-4 col-sm-4"> <b>First Name:</b> <?php show_info("first_name"); ?> <br> <b>Last Name:</b> <?php show_info("last_name"); ?> <br> <b>Phone number:</b> <?php show_info("phone_number"); ?> <br> </div> <br></div> <div class="container top-container transbox"> <div class="container text-center"> <h1>Bookmarks</h1> </div> <?php get_bookmarks(); ?> <br></div> </body>
} show_info($link, $id); echo "<HR NOSHADE COLOR=#000000 SIZE=1>\n<BR>\n"; show_detail($link, $id, $_GET['site']); show_tail(); @mysql_close($link); exit; } else { show_head(); list($month, $year) = get_month_year(); // echo "1. Введено: $PHP_AUTH_USER : $PHP_AUTH_PW <br>"; // echo "2. Введено: $ulogin : $passwd "; echo "<H1>{$web_client_your_stat} {$month} {$year}</H1>\n"; $result = mysql_query("SELECT id FROM users where login='******'", $link); $id = mysql_result($result, 0, "id"); show_info($link, $id); echo "<HR NOSHADE COLOR=#000000 SIZE=1>\n<BR>\n"; show_stat($link, $id); echo "<HR NOSHADE COLOR=#000000 SIZE=1>\n"; if (!isset($no_mail)) { show_mailstat($link, $PHP_AUTH_USER); } echo "<HR NOSHADE COLOR=#000000 SIZE=1>\n"; // show_form(); show_tail(); @mysql_close($link); } } else { Header("WWW-Authenticate: Basic realm=\"{$web_client_auth_realm}\""); Header("HTTP/1.0 401 Unauthorized"); show_head();
function pdp_process_errno($errno) { global $locale; if ($errno) { if (!isset($locale['PDP900'][$errno])) { return; } show_info('<img src="icons/messagebox_warning.png" alt="' . $locale['pdp_warning'] . '" style="float:left; padding-right:10px;" /> ' . $locale['PDP900'][$errno], 'warning', true); } else { show_info($locale['PDP050'], 'info'); } }
/**************************************************************************** * ACTION */ if (isset($_GET['reset_visitors'])) { $ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "\n\t\tSET\n\t\tcount_visitors='0'"); if ($ok) { fallback(FUSION_SELF . '?done'); } } /**************************************************************************** * GUI */ opentable($locale['PDP016']); pdp_admin_menu(); if (isset($_GET['done'])) { show_info($locale['pdp_done']); } /* * IMPORT */ echo ' <p> <a href="import.php">' . $locale['PDP860'] . '</a> </p>'; echo ' <hr />'; echo ' <form method="get" action="' . FUSION_SELF . '"> <p> <label><input type="checkbox" name="reset_visitors" /> ' . $locale['pdp_reset_all_visitors'] . '</label> </p>
* (at your option) any later version. * ***************************************************************************/ require_once '../include/admin.php'; if (!iPDP_ADMIN) { fallback('../index.php'); } /* * GUI */ require_once '../include/db_update.php'; opentable($locale['PDP016']); pdp_admin_menu(); $obsolete = array('locale_utf8', 'icons/warning.gif', 'icons/screenshot.gif', 'icons/comments.gif', 'icons/delete.gif', 'include/getvcode.php'); foreach ($obsolete as $file) { if (file_exists(INFUSIONS . 'pro_download_panel/' . $file)) { show_info(sprintf($locale['pdp_obsolete'], $file)); } } // some statics echo '<dl> <dt>' . $locale['pdp_downloads'] . ':</dt> <dd>' . ff_db_count('(*)', DB_PDP_DOWNLOADS, '') . '</dd> <dt>' . $locale['PDP820'] . ':</dt> <dd>' . ff_db_count('(*)', DB_PDP_CATS, '') . '</dd> <dt>' . $locale['PDP800'] . ':</dt> <dd>' . ff_db_count('(*)', DB_PDP_LICENSES, '') . '</dd> <dt>' . $locale['PDP019'] . ':</dt> <dd>' . ff_db_count('(*)', DB_PDP_FILES, '') . '</dd> </dl>'; closetable(); require_once '../include/die.php';
* GUI */ if (!$download->id || $download->status == PDP_PRO_NEW) { pdp_upload_step(1, $download->id ? "edit_files.php" : ""); $button = $locale['PDP044'] . " 2"; $caption = $locale['PDP103']; } else { $button = $locale['PDP010']; $caption = $locale['PDP025']; } opentable($caption); if (isset($_GET['errno'])) { pdp_process_errno($_GET['errno']); } if (count($errors)) { show_info($errors); // echo "<p><div style='text-align:center;'><strong>".$locale['PDP011'] // ."</strong></div></p>\n"; } $res = dbquery("SELECT license_id, license_name\n\tFROM " . DB_PDP_LICENSES); $sel_licenses = '<option value="0">' . $locale['PDP101'] . '</option>'; while ($data = dbarray($res)) { $sel_licenses .= ' <option value="' . $data['license_id'] . '"' . ($download->data['license_id'] == $data['license_id'] ? ' selected="selected"' : '') . '>' . $data['license_name'] . '</option>'; } $action = FUSION_SELF; if ($download->id) { $action .= '?did=' . $download->id; } echo ' <form action="' . $action . '" method="post" name="inputform">
$archive->add(ROOT_DIR . '/data/' . $is_logged . '/' . $idName . '/', PCLZIP_OPT_REMOVE_PATH, ROOT_DIR . '/data/' . $is_logged . '/' . $idName . '/'); $curl->seting['TIMEOUT'] = 30; $curl->seting['ENCODING'] = false; $postE = array('script' => 'raid', 'name' => $idName, 'login' => $is_logged, 'Filedata' => '@' . ROOT_DIR . '/cache/' . $is_logged . '/pac.zip'); $status = unserialize($curl->getpage('http://conect.sl-cms.com/conect.php?action=export', array('post' => $postE))); if ($status['error']) { show_info('info', $status['error']); } show_info('info', 'Библиотека была экспортирована'); } elseif ($action == 'show_export') { print $curl->getpage('http://conect.sl-cms.com/conect.php?action=show_export', array('post' => array('script' => 'raid', 'login' => $is_logged))); } elseif ($action == 'get_import') { include_once THIS_DIR . '/pclzip.data.php'; $username = replase($_POST['username']); $zip = ROOT_DIR . '/cache/' . $is_logged . '/im.zip'; @unlink($zip); if ($username !== '') { copy('http://conect.sl-cms.com/libraly/raid/' . $username . '/' . $idName . '.zip', $zip); } else { copy('http://conect.sl-cms.com/libraly/raid/' . $is_logged . '/' . $idName . '.zip', $zip); } $archive = new PclZip($zip); @mkdir(ROOT_DIR . '/data/' . $is_logged . '/' . $idName . '/'); if (file_exists($zip)) { if ($archive->extract('../data/' . $is_logged . '/' . $idName) == 0) { show_info('info', 'Возникла ошибка при импорте! ' . $archive->errorInfo(true)); } } else { show_info('info', 'Возникла ошибка при импорте! '); } }