Exemple #1
0
 function GetLocations()
 {
     import_request_variables("gp");
     global $slplus_plugin;
     //set the callback
     if (!isset($_REQUEST['callback'])) {
         $callback = '';
     } else {
         $callback = $_REQUEST['callback'];
     }
     if (!isset($_REQUEST['max'])) {
         $max = get_option(SLPLUS_PREFIX . '_maxreturned');
     } else {
         $max = $_REQUEST['max'];
     }
     //set a latitude
     if (!isset($_REQUEST['lat'])) {
         $lat = '';
     } else {
         $lat = $_REQUEST['lat'];
     }
     //set a longitude
     if (!isset($_REQUEST['lng'])) {
         $lng = '';
     } else {
         $lng = $_REQUEST['lng'];
     }
     //set a radius
     if (!isset($_REQUEST['radius'])) {
         $radius = 40000;
     } else {
         $radius = $_REQUEST['radius'];
     }
     //set tags
     if (!isset($_REQUEST['tags'])) {
         $tags = '';
     } else {
         $tags = $_REQUEST['tags'];
     }
     //set a name
     if (!isset($_REQUEST['name'])) {
         $name = '';
     } else {
         $name = $_REQUEST['name'];
     }
     //create a params object
     $params = array('center_lat' => $lat, 'center_lng' => $lng, 'radius' => $radius, 'tags' => $tags, 'name' => $name, 'callback' => $callback, 'max' => $max, 'apiKey' => '');
     $response = new csl_mobile_listener($params);
 }
Exemple #2
0
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
// file_options.php
include '../../mainfile.php';
include_once 'inc_dms_functions.php';
include 'defines.php';
import_request_variables("P", "post_");
$this_file = "file_options.php";
if ($HTTP_POST_VARS["hdn_obj_id"]) {
    $obj_id = $HTTP_POST_VARS['hdn_obj_id'];
} else {
    $obj_id = $HTTP_GET_VARS['obj_id'];
}
if ($HTTP_POST_VARS["hdn_update_options"]) {
    $query = "UPDATE " . $xoopsDB->prefix('dms_objects') . " SET ";
    $query .= "obj_name='" . $HTTP_POST_VARS['hdn_obj_name'] . "' ";
    $query .= "WHERE obj_id='" . $obj_id . "'";
    $xoopsDB->query($query);
    $query = "UPDATE " . $xoopsDB->prefix('dms_object_properties') . " SET ";
    $query .= "obj_descript='" . $HTTP_POST_VARS['hdn_obj_descript'] . "', ";
    $query .= "obj_keywords='" . $HTTP_POST_VARS['hdn_obj_keywords'] . "', ";
    $query .= "obj_authors='" . $HTTP_POST_VARS['hdn_obj_authors'] . "', ";
Exemple #3
0
/*
if (!get_magic_quotes_gpc()) {
	die("You must enable magic_quotes_gpc in php.ini in order to run phpShop. Read <a href=\"http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc\"> the docs</a>.");
}
*/
// Set global path
ini_set("include_path", "." . PATH_SEPARATOR . PS_BASE . PATH_SEPARATOR . PS_BASE . "modules");
// define webroot so that image uploads work
define("WEBROOT", dirname($_SERVER['SCRIPT_FILENAME']));
// left for backwards compatibility
define("MODROOT", PS_BASE . "modules/");
// Compatibility patch to be able to leave Register_globals = off
// &&
// XSS fixes
if (function_exists("import_request_variables") && False == ini_get('register_globals')) {
    import_request_variables("CGP", "");
    // php >=4.1
    $HTTP_GET_VARS = $_GET;
    $HTTP_POST_VARS = $_POST;
    $HTTP_COOKIE_VARS = $_COOKIE;
    $PHP_SELF = $_SERVER["PHP_SELF"];
    $SERVER_NAME = $_SERVER["SERVER_NAME"];
    $REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];
    $HTTP_X_FORWARDED_FOR = $_SERVER["HTTP_X_FORWARDED_FOR"];
    $HTTP_VIA = $_SERVER["HTTP_VIA"];
    foreach ($_FILES as $k => $v) {
        ${$k} = $v['tmp_name'];
        $k_name = $k . "_name";
        ${$k_name} = $v['name'];
        $k_size = $k . "_size";
        ${$k_size} = $v['size'];
Exemple #4
0
<?php

require_once 'common.inc';
require_once 'auth.inc';
import_request_variables('PG', 'req_');
$xml = false;
if (!strcasecmp($req_f, 'xml')) {
    $xml = true;
}
$json = false;
if (!strcasecmp($req_f, 'json')) {
    $json = true;
}
// pull in the test parameters
$test = array();
$test['url'] = trim($req_url);
$parts = explode('.', trim($req_location));
$test['location'] = $parts[0];
$test['connectivity'] = $parts[1];
$test['domElement'] = trim($req_domelement);
$test['login'] = trim($req_login);
$test['password'] = trim($req_password);
$test['runs'] = (int) $req_runs;
$test['fvonly'] = (int) $req_fvonly;
$test['connections'] = (int) $req_connections;
$test['speed'] = (int) $req_speed;
$test['private'] = $req_private;
$test['web10'] = $req_web10;
$test['ignoreSSL'] = $req_ignoreSSL;
$test['script'] = trim($req_script);
$test['block'] = $req_block;
/* Copyright 2005, 2006 Jochen Koubek - v0.1.2. 

For contributors see contributors.txt.

This file is part of the software 'Review Your Peers'.

'Review Your Peers' is free software; you can redistribute it and/or modify
it under the terms of the MIT License.

You should have received a copy of the MIT License
along with this program. See COPYING.txt.
The license-text is based on http://www.opensource.org/licenses/mit-license.php. */
-->

<?php 
import_request_variables("p", "postv_");
if (strtoupper($postv_input) == "GLOBAL THERMONUCLEAR WAR") {
    header('Location: http://deathball.net/notpron/levelone.htm');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
		<link href="../css/webstyle.css" rel="stylesheet" media="screen">
		
		<title>WOPR</title>
		<link href="webstyle.css" rel="stylesheet" media="screen">
		<style type="text/css" media="screen"><!--body{background: black;}
Exemple #6
0
<?php

import_request_variables("gP", "R_");
$dir_list_mask = "*.jpg";
//default values
$pix_width = 600;
//useless here but...
$pix_height = 150;
//useless here but...
if (isset($R_pl) && file_exists("{$R_pl}.playlist")) {
    include "{$R_pl}.playlist";
}
$pix_list = array();
$pix_count = 0;
foreach (glob($dir_list_mask) as $filename) {
    $pix_list[++$pix_count] = $filename;
}
if ($pix_count) {
    $name = $pix_list[rand(1, $pix_count)];
    $fp = fopen($name, 'rb');
    // send the right headers
    header("Content-Type: image/jpg");
    header("Content-Length: " . filesize($name));
    //header( ('Content-Disposition: inline; filename="random.jpg"') );
    header('Content-Disposition: inline; filename="' . $name . '";');
    fpassthru($fp);
    // dump the picture
} else {
    echo "no files available!";
}
exit;
function getrequest()
{
    ### magicquotes check
    if (!get_magic_quotes_gpc()) {
        array_walk_recursive($_GET, 'addslashes_gpc');
        array_walk_recursive($_POST, 'addslashes_gpc');
        array_walk_recursive($_COOKIE, 'addslashes_gpc');
        array_walk_recursive($_REQUEST, 'addslashes_gpc');
    }
    import_request_variables("gp", "r_");
}
Exemple #8
0
<?php

$links = array("Ten" => "http://ten.com.au/api/rest/session?key=movideoNetwork10&applicationalias=main-player", "OneHd" => "http://api.v2.movideo.com/rest/session?key=movideoOneHd&applicationalias=onehd-cutv-universal-flash", "Eleven" => "http://api.movideo.com/rest/session?key=movideoEleven&applicationalias=eleven-twix-flash&includeApplication=true", "Neighbours" => "http://api.movideo.com/rest/session?key=movideoNeighbours&applicationalias=neighbours-universal-flash", "Stargate Universe" => "http://api.v2.movideo.com/rest/session?key=movideoEleven&applicationalias=eleven-stargate", "Masterchef" => "http://api.v2.movideo.com/rest/session?key=movideoMasterChef&applicationalias=masterchef-2011", "The 7PM Project" => "http://api.v2.movideo.com/rest/session?key=movideo7pmProject&applicationalias=7pmproject-universal-flash", "Ready Steady Cook" => "http://api.v2.movideo.com/rest/session?key=movideo10&applicationalias=ready-steady-cook", "The Biggest Loser" => "", "The Circle" => "", "The Renovators" => "http://api.v2.movideo.com/rest/session\\?key\\=movideoRenovators\\&applicationalias\\=renovators-universal-flash");
import_request_variables('G', 'get_parameter_');
function get_url_contents($url)
{
    $crl = curl_init();
    $timeout = 5;
    curl_setopt($crl, CURLOPT_URL, $url);
    curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
    // curl_setopt ($crl, CURLOPT_HEADER, 1);
    curl_setopt($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
    $ret = curl_exec($crl);
    curl_close($crl);
    return $ret;
}
if (array_search($get_parameter_link, $links)) {
    echo get_url_contents($get_parameter_link);
} else {
    echo "Unknown: ";
    echo $get_parameter_link;
}
?>

Exemple #9
0
GAEVALquery.js"></script>

		<div id="mainWLS">
		<div id="maincontents">

		<h1 class="bottommargin1">GAEVAL analysis of <?php 
echo $X;
?>
 transcript annotations  <img id='gaeval_table' title='Search Help' class='xgdb-help-button' src='/XGDB/images/help-icon.png' alt='?' /></h1>

		
<?php 
global $cp_col_order, $cp_sort_ort, $cp_resultCols, $cp_ANNsrc, $PRIMARY_SQL, $cp_resultCols, $cp_ISgroup, $cp_SCSgroup, $cp_BS5group, $cp_BS5op, $cp_BS5val, $cp_BS5group, $cp_BS3group, $cp_BS3op, $cp_BS3val;
global $cp_APIgroup, $cp_APIop, $cp_APIval, $cp_AP5op, $cp_AP5group, $cp_AP5val, $cp_APCgroup, $cp_APCop, $cp_APCval, $cp_AP3group, $cp_AP3op, $cp_AP3val, $cp_APTval, $cp_APTgroup, $cp_APTop;
global $cp_sort_order, $cp_INC_FILTER, $cp_INCTYPES, $gtable, $GAEVAL_DBID;
import_request_variables("gp", "cp_");
//require('/Product/' . $X . 'GDB/conf/GAEVALconf.php'); // moved to top of file - dhrasmus
$SQL_svars = array('uid' => 'ann.uid', 'geneId' => 'geneId', 'integrity' => 'integrity', 'introns_confirmed' => 'introns_confirmed', 'introns_unsupported' => 'introns_unsupported', 'cds_size' => 'cds_size', 'utr5_size' => 'utr5_size', 'utr3_size' => 'utr3_size', 'exon_coverage' => 'exon_coverage', 'bound_5prime' => 'bound_5prime', 'bound_3prime' => 'bound_3prime');
$SQL_orderCmd = array('bound_5prime_ASC' => "bound_5prime DESC", 'bound_5prime_DESC' => "bound_5prime ASC", 'bound_3prime_ASC' => "bound_3prime DESC", 'bound_3prime_DESC' => "bound_3prime ASC", 'AltSplicing_ASC' => "CAST(((AS_AltIntron * (1 - AS_AltIntron_doc) * (1 - abs(AS_AltIntron_mindoc)) * (1 - abs(AS_AltIntron_maxdoc))) + (AS_AddIntron * (1 - AS_AddIntron_doc) * (1 - abs(AS_AddIntron_mindoc)) * (1 - abs(AS_AddIntron_maxdoc))) + (AS_ConIntron * (1 - AS_ConIntron_doc) * (1 - abs(AS_ConIntron_mindoc)) * (1 - abs(AS_ConIntron_maxdoc))) - AS_AltAnnIntron) AS SIGNED) DESC", 'AltSplicing_DESC' => "(GREATEST(0,AS_AltAnnIntron_maxdoc) + GREATEST(0,AS_AltIntron_maxdoc) + GREATEST(0,AS_AddIntron_maxdoc) + GREATEST(0,AS_ConIntron_maxdoc)) DESC,(ABS(LEAST(0,AS_AltAnnIntron_mindoc)) + ABS(LEAST(0,AS_AltIntron_mindoc)) + ABS(LEAST(0,AS_AddIntron_mindoc)) + ABS(LEAST(0,AS_ConIntron_mindoc))) DESC", 'AltTerm_ASC' => "(CM_AltCPS * (1 - CM_AltCPS_doc)) DESC", 'AltTerm_DESC' => "CM_AltCPS_maxdoc DESC,CM_AltCPS_mindoc ASC", 'Fission_ASC' => "(CM_Fission * (1 - CM_Fission_doc)) DESC", 'Fission_DESC' => "CM_Fission_maxdoc DESC,CM_Fission_mindoc ASC", 'Fusion_ASC' => "(CM_Fusion * (1 - CM_Fusion_doc)) DESC", 'Fusion_DESC' => "CM_Fusion_maxdoc DESC,CM_Fusion_mindoc ASC", 'AmbOlap_ASC' => "(AE_AmbOverlap * (1 - AE_AmbOverlap_doc)) DESC", 'AmbOlap_DESC' => "AE_AmbOverlap_maxdoc DESC,AE_AmbOverlap_mindoc ASC");
$DEFAULT_COLUMN_ORDER = array('geneId' => 1, 'url' => 2, 'integrity' => 3, 'custom_integrity' => 4, 'introns_confirmed' => 5, 'introns_unsupported' => 6, 'exon_coverage' => 7, 'utr5_size' => 8, 'cds_size' => 9, 'utr3_size' => 10, 'bound_5prime' => 11, 'bound_3prime' => 12, 'AltSplicing' => 13, 'AltTerm' => 14, 'Fission' => 15, 'Fusion' => 16, 'AmbOlap' => 17);
$DEFAULT_COLUMN_HEADER = array('geneId' => 'Annotation', 'url' => 'URLs', 'integrity' => 'Standard Integrity', 'custom_integrity' => 'Custom Integrity', 'introns_confirmed' => 'Introns Confirmed', 'introns_unsupported' => 'Introns Unsupported', 'cds_size' => 'CDS Size', 'utr5_size' => '5`UTR Size', 'utr3_size' => '3`UTR Size', 'exon_coverage' => '%Coverage', 'bound_5prime' => "<img alt='Upstream Extension' title='Upstream Extension' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend5}' />", 'bound_3prime' => "<img alt='Downstream Extension' title='Downstream Extension' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend3}' />", 'AltSplicing' => "<img alt='Alternative Splicing' title='Alternative Splicing' src='{$IMAGEDIR}{$GAEVAL_IMG_AltStr}' />", 'AltTerm' => "<img alt='Alternative Transcriptional Termination' title='Alternative Transcriptional Termination' src='{$IMAGEDIR}{$GAEVAL_IMG_AltCPS}' />", 'Fission' => "<img alt='Annotation Spliting / Fission' title='Annotation Spliting / Fission' src='{$IMAGEDIR}{$GAEVAL_IMG_Fission}' />", 'Fusion' => "<img alt='Annotation Merger / Fusion' title='Annotation Merger / Fusion' src='{$IMAGEDIR}{$GAEVAL_IMG_Fusion}' />", 'AmbOlap' => "<img alt='Erroneous Annotation Overlap' title='Erroneous Annotation Overlap' src='{$IMAGEDIR}{$GAEVAL_IMG_AmbOlap}' />");
$COLUMN_DESCRIPTION = array('geneId' => 'Annotation', 'url' => 'WWW links', 'integrity' => 'Standard Integrity', 'custom_integrity' => 'Custom Integrity', 'introns_confirmed' => 'Introns Confirmed', 'introns_unsupported' => 'Intons Unsupported', 'cds_size' => 'CDS Size', 'utr5_size' => '5`UTR Size', 'utr3_size' => '3`UTR Size', 'exon_coverage' => '%Coverage', 'bound_5prime' => "Upstream Boundary Extension<img alt='Upstream Extension' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend5}' />", 'bound_3prime' => "Downstream Boundary Extension<img alt='Downstream Extension' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend3}' />", 'AltSplicing' => "Alternative Splicing / Structure<img alt='Alternative Splicing' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AltStr}' />", 'AltTerm' => "Alternative Transcript Termination<img alt='Alternative Transcriptional Termination' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AltCPS}' />", 'Fission' => "Annotation Fission / Spliting<img alt='Annotation Spliting / Fission' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Fission}' />", 'Fusion' => "Annotation Fusion / Merger<img alt='Annotation Merger / Fusion' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Fusion}' />", 'AmbOlap' => "Erroneous Annotation Overlap<img alt='Erroneous Annotation Overlap' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AmbOlap}' />");
$DEFAULT_INC = array('altsp' => 'Alternative splicing / structure filter', 'altcps' => 'Alternative transcript termination (Cleavage / PolyA site) filter', 'fis' => 'Split annotation filter', 'fus' => 'Merged annotation filter', 'eolap' => 'Erroneous annotation overlap filter');
$FLAG_TYPES = array('No Incongruence', "<img alt='Undocumented' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc}' />Undocumented", "<img alt='Documented Isoforms' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docL}' />Documented Isoforms", "<img alt='User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docU}'  />User Annotations", "<img alt='Undocumented &amp; Documented Isoforms' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docL}' />Undocumented &amp; Documented Isoforms", "<img alt='Undocumented &amp; User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docU}' />Undocumented &amp; User Annotations", "<img alt='Isoforms &amp; User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docL_docU}' />Isoforms &amp; User Annotations", "<img alt='ALL Types' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docL_docU}' />ALL Types");
$INC_FLAG_SQL = array('altsp' => array('(!(AS_AddIntron || AS_AltIntron || AS_ConIntron || AS_AltAnnIntron))', '((AS_AddIntron AND !AS_AddIntron_doc)||(AS_AltIntron AND !AS_AltIntron_doc)||(AS_ConIntron AND !AS_ConIntron_doc))', '((AS_AddIntron_mindoc < 0)||(AS_AltIntron_mindoc < 0)||(AS_ConIntron_mindoc < 0)||(AS_AltAnnIntron_mindoc < 0))', '((AS_AddIntron_maxdoc > 0)||(AS_AltIntron_maxdoc > 0)||(AS_ConIntron_maxdoc > 0)||(AS_AltAnnIntron_maxdoc > 0))'), 'altcps' => array('(!CM_AltCPS)', '(CM_AltCPS AND !CM_AltCPS_doc)', '(CM_AltCPS_mindoc < 0)', '(CM_AltCPS_maxdoc > 0)'), 'fus' => array('(!CM_Fusion)', '(CM_Fusion AND !CM_Fusion_doc)', '(CM_Fusion_mindoc < 0)', '(CM_Fusion_maxdoc > 0)'), 'fis' => array('(!CM_Fission)', '(CM_Fission AND !CM_Fission_doc)', '(CM_Fission_mindoc < 0)', '(CM_Fission_maxdoc > 0)'), 'eolap' => array('(!AE_AmbOverlap)', '(AE_AmbOverlap AND !AE_AmbOverlap_doc)', '(AE_AmbOverlap_mindoc < 0)', '(AE_AmbOverlap_maxdoc > 0)'));
if ($cp_col_order) {
    eval('$COLUMN_ORDER = array(' . str_replace('\\', '', $cp_col_order) . ');');
} else {
    $COLUMN_ORDER = $DEFAULT_COLUMN_ORDER;
}
$displayCols = array_keys($COLUMN_ORDER);
Exemple #10
0
$progVersion = "v.0.9.2";
$datum = getdate(time());
$debug = "0";
$user = "******";
$pass = "******";
$database = "mercdb";
$server = "localhost";
$port = "3306";
$image_path = "items/";
$ext_info_url = "http://www.roempire.com/database/?page=items&act=view&iid=";
if (!isset($p_ROserver) || $p_ROserver == "") {
    $p_ROserver = "[Full] Chaos";
}
//
import_request_variables('p', 'p_');
import_request_variables('g', 'g_');
/*
** Changelog:
** - way too much right now
** -
** -
** -
**
**
**
*/
if (empty($_POST['username']) && $HTTP_COOKIE_VARS['username']) {
    $_POST['username'] = $HTTP_COOKIE_VARS['username'];
    $_POST['passwd'] = $HTTP_COOKIE_VARS['passwd'];
}
session_start();
		1. Der Autor
			(a) fehlt im Formular
			(b) ist keine Ziffernfolge
			(c) ist nicht angemeldet 
			(d) hat bereits ein Dokument eingereicht
		2. Das eingereichte Dokument
			(a) fehlt im Formular
			(b) entspricht nicht der Namenskonvention
	Falls kein Fehler auftritt:
		3. Dokument sichern	
		4. Daten eintragen
***************************************************/
/**************************************************
	0. Vertrauensvorbehalt
***************************************************/
import_request_variables("P", "dmvar_");
$autor = clean($dmvar_matrikelnr, 10);
$anmerkung = clean($dmvar_anmerkung, 32768);
$error_db = false;
/**************************************************
   1. Eingabe Ueberpruefen: Autor (Matrikelnr.)
***************************************************/
if ($autor == "") {
    $error_autor = true;
    $error_autor_text = "Bitte Autor/in angeben.";
} elseif (!ereg("^[0-9]*\$", $autor)) {
    $error_autor = true;
    $error_autor_text = "Bitte die Matrikelnummer des Autors angeben";
} else {
    $rs = mysql_query("SELECT * FROM gutachter WHERE matrikelnr='{$autor}'", $con);
    if (!$rs) {
Exemple #12
0
<?

//------------------------------------------------------------------------------
// niveau d'erreur
//------------------------------------------------------------------------------
//error_reporting(E_ALL);
error_reporting(E_ERROR);
//error_reporting(E_ERROR^E_PARSE^E_WARNING^E_NOTICE);
//error_reporting(E_ERROR^E_PARSE^E_WARNING);

if (false) {

//------------------------------------------------------------------------------
// rappatrie toutes les variables
//------------------------------------------------------------------------------
import_request_variables("gps","") ;
foreach (array_keys($_SESSION) as $var) {
  print "$var=".$_SESSION[$var];
  $GLOBALS[$var]=$_SESSION[$var];
}
}

if (false) {
//------------------------------------------------------------------------------
// flag debugging
//------------------------------------------------------------------------------
  $is_deb=0;
  $deb_opt=array(
	       "glob" => 0,       // montrer les variables globales
	        "post" => 0,      // montrer les variables postées
	       "o" => 0,          // message lie a la base : ordre sql
Exemple #13
0
<?php

call_user_method();
call_user_method_array();
define_syslog_variables();
dl();
ereg();
ereg_replace();
eregi();
eregi_replace();
import_request_variables();
mcrypt_generic_end();
mysql_db_query();
mysql_escape_string();
mysql_list_dbs();
mysqli_bind_param();
mysqli_bind_result();
mysqli_client_encoding();
mysqli_fetch();
mysqli_param_count();
mysqli_get_metadata();
mysqli_send_long_data();
magic_quotes_runtime();
session_register();
session_unregister();
session_is_registered();
set_magic_quotes_runtime();
set_socket_blocking();
split();
spliti();
sql_regcase();
<?php

$cfgProgDir = 'phpSecurePages/';
include $cfgProgDir . "secure.php";
//Establish GET & POST variables
import_request_variables("gp");
$PHP_SELF = $_SERVER['PHP_SELF'];
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
if (isset($_POST['submit']) and $_POST['submit'] == 'Delete') {
    //connect to database
    require "dbconn.php";
    $id = $_POST['id'];
    // delete record
    $sql = "DELETE FROM bike_ride WHERE id=" . $id . " LIMIT 1";
    if (@mysql_query($sql)) {
        if (@mysql_affected_rows($dbcnx) == 1) {
            $msg = "Item has been deleted.";
        } else {
            $error = "Error deleting item: " . mysql_error() . "<br>\n\t\t\tThe query being run was: " . $sql . "";
        }
    } else {
        print '<p class = "Colors_and_font">fail mysql_query (inside submit) because: ' . mysql_error() . '</p>
				  <p class = "Colors_and_font">running from query: ' . $sql . '</p>';
    }
}
?>
	
	<!doctype html>
	<html>
		<td>all files with the same extension:</td>
		<td>
		<input type='checkbox' name='dir'>
		</td>
	</tr>
	<tr>
		<td>Factor:</td>
		<td><input type='text' name='factor' value='4'></td>
	</tr>		
	<tr>
		<td><input type='button' value="let's go" onclick='validate()'></td>
		<td></td>
	</tr>
  </table>
  <?php 
import_request_variables('PG');
/*********PARAMS***************/
$countSymbolsFiles = 0;
$arraySymbolsFiles;
/********************************/
function modify($myDir, $myFile)
{
    global $factor;
    $myContent = fopen($myDir . "/" . $myFile, "r") or die("Datei " . $myDir . " / " . $myFile . " konnte nicht zum Lesen ge�ffnet werden!");
    $myNewContent = fopen($myDir . "/" . str_replace(".", "_" . $factor . ".", $myFile), "w") or die("Datei " . $myDir . " / " . str_replace(".", "_" . $factor . ".", $myFile) . " konnte nicht zum Schreiben ge�ffnet werden!");
    fputs($myNewContent, "#Modified by MapbenderTools" . "Date: " . date("d.m.Y") . "Factor: " . $factor . "\n\n");
    //fputs($myNewContent, "#Date: ". date("d.m.Y") . "Factor: ". $factor . "\n\n");
    //fputs($myNewContent, "#Factor: ". $factor . "\n\n");
    while (!feof($myContent)) {
        $myLine = fgets($myContent, 1024);
        if (preg_match("/\\bSIZE\\s*(\\d+.?\\d*)\\s*/i", $myLine, $matches)) {
/****************************************************************
*
*  This is security.php file, that needs to be included into
*  all pages written for the system
* 
*  -- PREPROCESS VARIABLES
*   $outsite 			= false; -- if true, it will not forward to the login page
*   $output  			= true;  -- if false, will not output any HTML 
*   $outputCloseHead 	= true   -- if false, the header tag will not be closed
*   $title   			= '';    -- tilte of the page for the browser
*   $initSecurity 		= true   -- if false, then security will not be initializaed
*   $initSession 		= true   -- if false, then sesssion will not be autostarted
*
*****************************************************************/
import_request_variables('GP');
// system db
$db = null;
// session global variables
$ses_update = false;
$ses_data = '';
$ses_userid = '';
// system variables
$sys_folder = str_replace("/security.php", "", str_replace("\\", "/", __FILE__));
$sys_path = substr($sys_folder, strlen($_SERVER["DOCUMENT_ROOT"]));
require_once $sys_folder . "/../conf.php";
if ($def_dbInit === true) {
    require_once $sys_folder . "/libs/phpDB.php";
}
class phpSecurity
{
<?php

$i = 1;
import_request_variables("gp", "rvar_");
echo "I am here";
session_register('test');
if (session_is_registered('test')) {
    $j = "2";
    $j1 = (int) $j;
}
$elements = explode(",", array("a,b,c"));
session_unregister('test');
along with this program. See COPYING.txt.
The license-text is based on http://www.opensource.org/licenses/mit-license.php. */
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
		<title>Review Your Peers &ndash; Administration &ndash; Gutachtennachtrag</title>
		<link href="../css/webstyle_admin.css" rel="stylesheet" media="screen">
	</head>
<?php 
require "../config/connect.php";
import_request_variables("PG");
if ($nr != "") {
    $gutachtennr = $nr;
}
if (!isset($send)) {
    $send = "";
}
?>

	<body bgcolor="#ffffff">
		<div id="content">
		<p><a href="index.php">Verwaltung</a> > <a href="status.php?nr=<?php 
echo $nr;
?>
">Status </a> > Gutachten nachtragen</p>
		<hr noshade size="1">
<?php

import_request_variables("gpc", "_");
var_dump($_GET, $_POST, $_COOKIE, $_FILES, $_REQUEST);
echo "Done\n";
Exemple #20
0
<?php

define('DEPLOY_APP', 9999);
// Remember to configure path settings and page name
require 'app/AssetDeployer.php';
import_request_variables('g', 'query_var_');
$d = AssetDeployer::instance();
$d->developmentUrl = 'localhost';
$d->productionUrl = 'pengxwang.com';
$d->stagingUrl = 'staging.pengxwang.com';
$d->forceDebug = isset($query_var_debug) && $query_var_debug;
//---------------------------------------
// DEPLOY CSS
//---------------------------------------
$d->devStylePath = '/Users/penguin/Sites/env.lamp/hlf-main-ndxz/ndxz-studio/site/pengxwang';
$d->prodStylePath = $d->buildPath($d->devStylePath, 'production');
$d->addStyles();
$d->publishStyles();
// TODO add lib css
if (isset($query_var_revert) && $query_var_revert) {
    $d->updateStyleCalls('test-page.php', true);
} else {
    $d->updateStyleCalls('test-page.php');
}
//---------------------------------------
// DEPLOY JS
//---------------------------------------
$d->devScriptPath = '/Users/penguin/Sites/env.lamp/hlf-main-ndxz/ndxz-studio/site/js';
$d->prodScriptPath = $d->buildPath($d->devScriptPath, 'production');
$d->addScripts();
$d->publishScripts();
Exemple #21
0
# =============================================
# EGSO 2003,2004 - by Max Jurcev
# INAF - Trieste Astronomical Observatory
# ---------------------------------------------
# SEC - SOAP client for the web user
# sec_soap.php
# last update 09-feb-2005
# =============================================
if (PHP_VERSION >= '5') {
    require_once 'domxml-php4-to-php5.php';
}
require_once 'nusoap.php';
require "sec_global.php";
require "sec_votable.php";
import_request_variables("pg");
echo sec_header("HELIO HEC - Results");
$xmldate = date("Ymd_His");
$xml1 = "hec1_{$xmldate}.xml";
$xml2 = "hec2_{$xmldate}.xml";
$txt1 = "hec1_{$xmldate}.txt";
$txt2 = "hec2_{$xmldate}.txt";
$max_xml_size = 100 * 1024;
// 100 KB is the max XML file size
$max_xml_error = "The VOTable result file is too large to display on this page, but the results can be downloaded from the XML result file link above. It is possible to reduce number of results by shortening the data selection interval or refining your query";
//	$sql=str_replace("\\","",$sql);
// prepare sql query string:
if ($qtype == 0) {
    $s1 = $sql;
} else {
    while (!checkdate($mo_from, $d_from, $y_from) and $d_from > 0) {
<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
		<meta name="generator" content="Adobe GoLive 6">
		<title>Review Your Peers &ndash; Administration &ndash; Gutachten anzeigen</title>
		<link href="../css/webstyle_admin.css" rel="stylesheet" media="screen">
	</head>

	<body bgcolor="#ffffff">
		<div id="content">
		<p><a href="index.php">Verwaltung</a> > <a href="status.php">Status</a> > Gutachten anzeigen</p>
		<hr noshade size="1">
<?php 
require "../config/connect.php";
import_request_variables("G", "");
if ($mode == "erase") {
    $query = "UPDATE auftraege SET gutachten = '', punkte = '', datum='0000-00-00 00:00:00' WHERE id = '{$id}'";
    $rs = mysql_query($query, $con);
    if (!$rs) {
        error_db();
    } else {
        echo "<p>{$Gutachten} {$id} wurde erfolgreich entfernt. Auftrag bleibt erhalten.</p>";
    }
} else {
    $query = "SELECT * FROM auftraege WHERE id = '{$id}'";
    $rs = mysql_query($query, $con);
    if (!$rs) {
        error_db();
    } else {
        $rs_array = mysql_fetch_row($rs);
	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
		<title>Review Your Peers &ndash; Administration &ndash; Gutachter beauftragen</title>
		<link href="../css/webstyle_admin.css" rel="stylesheet" media="screen">
	</head>

	<body bgcolor="#ffffff">
		<div id="content">
		<p><a href="index.php">Verwaltung</a> > Gutachter beauftragen</p>
		<hr noshade size="1">

<?php 
require "../config/connect.php";
//require "/Library/WebServer/mail.php";
import_request_variables("G", "getv_");
if ($getv_nr != "") {
    $gutachtennr = $getv_nr;
}
print "<h2>Gutachten f&uuml;r Aufgabe {$gutachtennr} in Auftrag geben</h2>";
if (!mysql_query("DELETE FROM {$database}.auftraege WHERE aufgabenr='{$gutachtennr}'")) {
    error_db();
} else {
    echo "<p>Alte Auftr&auml;ge der Aufgabe {$gutachtennr} gel&ouml;scht</p>";
}
switch ($getv_mode) {
    /***************************************************
    	Alle Auftraege zum aktuellen Gutachten loeschen
    ****************************************************/
    case "erase":
        if (!mysql_query("DELETE FROM auftraege WHERE aufgabenr='{$gutachtennr}'")) {
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * @author PGV Development Team
 * @package PhpGedView
 * @subpackage Admin
 * @version $Id: editconfig_gedcom.php 6879 2010-01-30 11:35:46Z fisharebest $
 */
define('PGV_SCRIPT_NAME', 'editconfig_gedcom.php');
require './config.php';
// editconfig.php and uploadgedcom.php make extensive use of
// import_request_variables and are heavily inter-dependent.
@import_request_variables('cgp');
if (isset($_REQUEST['action'])) {
    $action = $_REQUEST['action'];
}
if (empty($action)) {
    $action = "";
}
if (isset($_REQUEST['source'])) {
    $source = $_REQUEST['source'];
}
if (empty($source)) {
    $source = "";
}
// Set when loaded from uploadgedcom.php
if (!PGV_USER_GEDCOM_ADMIN) {
    header("Location: editgedcoms.php");
Exemple #25
0
<?php

include "init.inc";
import_request_variables("cpg", "rvar_");
header('Cache-Control: max-age=0, must-revalidate, no-cache, no-store');
header('Content-Type: text/plain');
$user = sanitize_word($rvar_user);
$client_script = "./client/netskel";
if (!is_dir("{$root_dir}{$user}")) {
    header('HTTP/1.0 404 Not Found');
    die;
}
$buf = custom_client_script($user);
header('Content-type: text/plain');
#  header('Content-Disposition: attachment; filename=netskel');
#  header('Content-Description: netskel client script');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
print $buf;
Exemple #26
0
// TinyMCE addition
/* ?> <script type="text/javascript" src="tinymce/tiny_mce.js"></script>
   <script type="text/javascript">
       tinyMCE.init({
               mode:"textareas",
               theme:"advanced",
               language:"en"
           });
    </script><?
*/
$verwritefile = "Editor v4.3.3 beta (c) dj--alex";
global $verwritefile, $vID, $vID2;
$enterpoint = $verwritefile;
// для показа точки входа
autoexecsql();
import_request_variables("PGC", "");
// универсальное решение проблем
//прием долбаных файлов
// часть некоторых загрузок переменных можно удалить
if (isset($_FILES["userfile"])) {
    ob_start();
}
// такое чувство что эта часть кода просто игнорируется.
$writefile = 1;
if ($pr[36]) {
    if (!isset($_SERVER['PHP_AUTH_USER']) || $_POST['SeenBefore'] == 1 && $_POST['OldAuth'] == $_SERVER['PHP_AUTH_USER']) {
        authenticate();
    }
}
if ($frameoldcore == 0) {
    $fil = getvar('fil');
Exemple #27
0
<?php

require('./setup.php');
require('./smarty/libs/Smarty.class.php');
$smarty = new Smarty();

$sitedir = getcwd();
$smarty->template_dir = $sitedir . '/smarty/templates';
$smarty->compile_dir  = $sitedir . '/smarty/templates_c';
$smarty->cache_dir    = $sitedir . '/smarty/cache';
$smarty->config_dir   = $sitedir . '/smarty/configs';

$link = mysql_connect($dbhost, $dbuser, $dbpass) or die('Could not connect: ' . mysql_error());
mysql_select_db($dbname) or die('Could not select database');

import_request_variables('pg', '__');

function q($q) {
  $res = mysql_query($q);
  if (mysql_error()) {
    return (-2);
  }
  $tabs = array();
  if ($res == 1) {
    return(1);
  }
  while ($c = mysql_fetch_array($res, MYSQL_ASSOC)) {
    array_push($tabs, $c);
  }
  mysql_free_result($res);
  return($tabs);
Exemple #28
-1
    function getmicrotime()
    {
        list($usec, $sec) = explode(" ", microtime());
        return (double) $usec + (double) $sec;
    }
}
error_reporting(5);
@ignore_user_abort(true);
@set_magic_quotes_runtime(0);
@set_time_limit(0);
if (!ob_get_contents()) {
    @ob_start();
    @ob_implicit_flush(0);
}
if (!ini_get("register_globals")) {
    import_request_variables("GPC");
}
$starttime = getmicrotime();
if (get_magic_quotes_gpc()) {
    if (!function_exists("strips")) {
        function strips(&$el)
        {
            if (is_array($el)) {
                foreach ($el as $k => $v) {
                    if ($k != "GLOBALS") {
                        strips($el["{$k}"]);
                    }
                }
            } else {
                $el = stripslashes($el);
            }
<?php

import_request_variables("gcp", "_");
var_dump($_1, $_2, $_3, $_4, $_5);
echo "Done\n";
<?php

//gets the POST variables
import_request_variables('p');
//calls the scraping function
$args = array($search_term, $d, $m, $Y);
$func_name = 'scrape_' . $name;
call_user_func_array($func_name, $args);
function scrape_lemonde($search_term, $d, $m, $y)
{
    $url = "http://www.lemonde.fr/web/recherche_resultats/1,13-0,1-0,0.html";
    $fields_string = "G_NBARCHIVES=1+107+196&num_page=1&query={$search_term}&booleen=et&query2=&dans=dansarticle&auteur=&periode=dateprecise&debutjour={$d}&debutmois={$m}&debutannee={$y}&finjour={$d}&finmois={$m}&finannee={$y}&cat=&artparpage=10&ordre=pertinence";
    $html = run_curl($url, $fields_string);
    $pattern = "/<b>(\\d*) élément[s|]<\\/b>  publi&#233;s/";
    if (preg_match($pattern, $html, $matches)) {
        $num_articles = $matches[1];
    } else {
        $num_articles = 0;
    }
    echo $num_articles;
}
function scrape_lefigaro($search_term, $d, $m, $y)
{
    $url = "http://recherche.lefigaro.fr/recherche/recherche.php?&date={$y}-{$m}-{$d}&ecrivez={$search_term}&page=articles&tri[0]=Date&typedate=dateprecise";
    $html = utf8_decode(run_curl($url));
    $pattern = "/<p>Il y a <span class=\"orange-string\" >(\\d*)<\\/span> r.sultats<\\/p>/";
    if (preg_match($pattern, $html, $matches)) {
        $num_articles = $matches[1];
    } else {
        $num_articles = 0;
    }