当前位置: 首页>>代码示例>>PHP>>正文


PHP safeEscapeString函数代码示例

本文整理汇总了PHP中safeEscapeString函数的典型用法代码示例。如果您正苦于以下问题:PHP safeEscapeString函数的具体用法?PHP safeEscapeString怎么用?PHP safeEscapeString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了safeEscapeString函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: safeEscapeString

if (isset($_POST['submitted']) or isset($_POST['h_sys_submitted'])) {
    // get all variables from form
    $h_sys = safeEscapeString($_POST["h_sys"]);
    $name = safeEscapeString($_POST["name"]);
    $month = safeEscapeString($_POST["month"]);
    $day = safeEscapeString($_POST["day"]);
    $year = safeEscapeString($_POST["year"]);
    $hour = safeEscapeString($_POST["hour"]);
    $minute = safeEscapeString($_POST["minute"]);
    $timezone = safeEscapeString($_POST["timezone"]);
    $long_deg = safeEscapeString($_POST["long_deg"]);
    $long_min = safeEscapeString($_POST["long_min"]);
    $ew = safeEscapeString($_POST["ew"]);
    $lat_deg = safeEscapeString($_POST["lat_deg"]);
    $lat_min = safeEscapeString($_POST["lat_min"]);
    $ns = safeEscapeString($_POST["ns"]);
    // set cookie containing natal data here
    setcookie('name', stripslashes($name), time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('month', $month, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('day', $day, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('year', $year, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('hour', $hour, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('minute', $minute, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('timezone', $timezone, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('long_deg', $long_deg, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('long_min', $long_min, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('ew', $ew, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('lat_deg', $lat_deg, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('lat_min', $lat_min, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('ns', $ns, time() + 60 * 60 * 24 * 30, '/', '', 0);
    include 'header_natal.html';
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:sabian_form_wheel_2.php

示例2: safeEscapeString

     $ns1_txt = "s";
 }
 // get all variables from form - Person #2
 $name2 = safeEscapeString($_POST["name2"]);
 $month2 = safeEscapeString($_POST["month2"]);
 $day2 = safeEscapeString($_POST["day2"]);
 $year2 = safeEscapeString($_POST["year2"]);
 $hour2 = safeEscapeString($_POST["hour2"]);
 $minute2 = safeEscapeString($_POST["minute2"]);
 $timezone2 = safeEscapeString($_POST["timezone2"]);
 $long_deg2 = safeEscapeString($_POST["long_deg2"]);
 $long_min2 = safeEscapeString($_POST["long_min2"]);
 $ew2 = safeEscapeString($_POST["ew2"]);
 $lat_deg2 = safeEscapeString($_POST["lat_deg2"]);
 $lat_min2 = safeEscapeString($_POST["lat_min2"]);
 $ns2 = safeEscapeString($_POST["ns2"]);
 // set cookie containing natal data here
 setcookie('name2', stripslashes($name2), time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('month2', $month2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('day2', $day2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('year2', $year2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('hour2', $hour2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('minute2', $minute2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('timezone2', $timezone2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('long_deg2', $long_deg2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('long_min2', $long_min2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('ew2', $ew2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('lat_deg2', $lat_deg2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('lat_min2', $lat_min2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('ns2', $ns2, time() + 60 * 60 * 24 * 30, '/', '', 0);
 include 'header_davison.html';
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:davison_line.php

示例3: safeEscapeString

 $name1 = safeEscapeString($_POST["name1"]);
 $month1 = safeEscapeString($_POST["month1"]);
 $day1 = safeEscapeString($_POST["day1"]);
 $year1 = safeEscapeString($_POST["year1"]);
 $hour1 = safeEscapeString($_POST["hour1"]);
 $minute1 = safeEscapeString($_POST["minute1"]);
 $timezone1 = safeEscapeString($_POST["timezone1"]);
 $long_deg1 = safeEscapeString($_POST["long_deg1"]);
 $long_min1 = safeEscapeString($_POST["long_min1"]);
 $ew1 = safeEscapeString($_POST["ew1"]);
 $lat_deg1 = safeEscapeString($_POST["lat_deg1"]);
 $lat_min1 = safeEscapeString($_POST["lat_min1"]);
 $ns1 = safeEscapeString($_POST["ns1"]);
 $start_month = safeEscapeString($_POST["start_month"]);
 $start_day = safeEscapeString($_POST["start_day"]);
 $start_year = safeEscapeString($_POST["start_year"]);
 // set cookie containing natal data here
 setcookie('name', stripslashes($name1), time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('month', $month1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('day', $day1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('year', $year1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('hour', $hour1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('minute', $minute1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('timezone', $timezone1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('long_deg', $long_deg1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('long_min', $long_min1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('ew', $ew1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('lat_deg', $lat_deg1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('lat_min', $lat_min1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 setcookie('ns', $ns1, time() + 60 * 60 * 24 * 30, '/', '', 0);
 include 'header_progressions.html';
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:progressions_form_wheel.php

示例4: safeEscapeString

<?php

include "constants.php";
$rx1 = safeEscapeString($_GET["rx1"]);
$rx2 = safeEscapeString($_GET["rx2"]);
$ubt1 = safeEscapeString($_GET["ubt1"]);
$ubt2 = safeEscapeString($_GET["ubt2"]);
if ($ubt1 != 0 and $ubt1 != 1) {
    $ubt1 = 0;
}
if ($ubt2 != 0 and $ubt2 != 1) {
    $ubt2 = 0;
}
if (get_magic_quotes_gpc()) {
    $longitude1 = unserialize(stripslashes($_GET["p1"]));
    $hc1 = unserialize(stripslashes($_GET["hc1"]));
    $longitude2 = unserialize(stripslashes($_GET["p2"]));
    $hc2 = unserialize(stripslashes($_GET["hc2"]));
} else {
    $longitude1 = unserialize($_GET["p1"]);
    $hc1 = unserialize($_GET["hc1"]);
    $longitude2 = unserialize($_GET["p2"]);
    $hc2 = unserialize($_GET["hc2"]);
}
if ($ubt1 == 1) {
    for ($i = 1; $i <= 12; $i++) {
        $hc1[$i] = ($i - 1) * 30;
    }
    $hc1[13] = 0;
}
if ($ubt2 == 1) {
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:transit_wheel.php

示例5: safeEscapeString

<?php

include "constants.php";
$retrograde1 = safeEscapeString($_GET["rx"]);
$retrograde2 = safeEscapeString($_GET["rx2"]);
if (get_magic_quotes_gpc()) {
    $longitude1 = unserialize(stripslashes($_GET["p1"]));
    $hc1 = unserialize(stripslashes($_GET["hc1"]));
    $longitude2 = unserialize(stripslashes($_GET["p2"]));
    $hc2 = unserialize(stripslashes($_GET["hc2"]));
} else {
    $longitude1 = unserialize($_GET["p1"]);
    $hc1 = unserialize($_GET["hc1"]);
    $longitude2 = unserialize($_GET["p2"]);
    $hc2 = unserialize($_GET["hc2"]);
}
$longitude1[LAST_PLANET + 1] = $hc1[1];
$longitude1[LAST_PLANET + 2] = $hc1[10];
$longitude2[LAST_PLANET + 1] = $hc2[1];
$longitude2[LAST_PLANET + 2] = $hc2[10];
$Ascendant1 = $hc1[1];
$Ascendant2 = $hc2[1];
// set the content-type
header("Content-type: image/png");
// create the blank image
$overall_size = 640;
$im = @imagecreatetruecolor($overall_size, $overall_size) or die("Cannot initialize new GD image stream");
// specify the colors
$white = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
$blue = imagecolorallocate($im, 0, 0, 255);
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:synastry_wheel.php

示例6: safeEscapeString

<?php

include "constants.php";
$rx1 = safeEscapeString($_GET["rx1"]);
$rx2 = safeEscapeString($_GET["rx2"]);
if (get_magic_quotes_gpc()) {
    $longitude1 = unserialize(stripslashes($_GET["p1"]));
    $hc1 = unserialize(stripslashes($_GET["hc1"]));
    $longitude2 = unserialize(stripslashes($_GET["p2"]));
    $hc2 = unserialize(stripslashes($_GET["hc2"]));
} else {
    $longitude1 = unserialize($_GET["p1"]);
    $hc1 = unserialize($_GET["hc1"]);
    $longitude2 = unserialize($_GET["p2"]);
    $hc2 = unserialize($_GET["hc2"]);
}
$longitude1[LAST_PLANET + 1] = $hc1[1];
$longitude1[LAST_PLANET + 2] = $hc1[10];
$longitude2[LAST_PLANET] = 0;
//no progressed Vertex
//  $longitude2[LAST_PLANET + 1] = $hc2[1];
//  $longitude2[LAST_PLANET + 2] = $hc2[10];
// set the content-type
header("Content-type: image/png");
// create the blank image
$overall_size = 475;
//add a planet
$extra_width = 255 + 100;
//in order to make total width = 705 + 125
$margins = 20;
//left and right margins on the background graphic
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:prog_aspect_grid.php

示例7: safeEscapeString

<?php

include "constants.php";
$retrograde = safeEscapeString($_GET["rx"]);
if (get_magic_quotes_gpc()) {
    $longitude = unserialize(stripslashes($_GET["p1"]));
    $hc = unserialize(stripslashes($_GET["hc1"]));
} else {
    $longitude = unserialize($_GET["p1"]);
    $hc = unserialize($_GET["hc1"]);
}
$longitude[LAST_PLANET + 1] = $hc[1];
$longitude[LAST_PLANET + 2] = $hc[10];
$Ascendant = $hc[1];
// set the content-type
header("Content-type: image/png");
// create the blank image
$overall_size = 640;
$im = @imagecreatetruecolor($overall_size, $overall_size) or die("Cannot initialize new GD image stream");
// specify the colors
$white = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
$blue = imagecolorallocate($im, 0, 0, 255);
$magenta = imagecolorallocate($im, 255, 0, 255);
$yellow = imagecolorallocate($im, 255, 255, 0);
$cyan = imagecolorallocate($im, 0, 255, 255);
$green = imagecolorallocate($im, 0, 224, 0);
$grey = imagecolorallocate($im, 127, 127, 127);
$black = imagecolorallocate($im, 0, 0, 0);
$lavender = imagecolorallocate($im, 160, 0, 255);
$orange = imagecolorallocate($im, 255, 127, 0);
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:composite_wheel.php

示例8: safeEscapeString

<?php

include "constants.php";
$solar_arc = safeEscapeString($_GET["sa"]);
if ($solar_arc < 0 or $solar_arc >= 360) {
    $solar_arc = 0;
}
if (get_magic_quotes_gpc()) {
    $longitude1 = unserialize(stripslashes($_GET["p1"]));
    $hc1 = unserialize(stripslashes($_GET["hc1"]));
    //$longitude2 = unserialize(stripslashes($_GET["p2"]));
    $longitude3 = unserialize(stripslashes($_GET["p3"]));
} else {
    $longitude1 = unserialize($_GET["p1"]);
    $hc1 = unserialize($_GET["hc1"]);
    //$longitude2 = unserialize($_GET["p2"]);
    $longitude3 = unserialize($_GET["p3"]);
}
$longitude1[LAST_PLANET + 1] = $hc1[1];
$longitude1[LAST_PLANET + 2] = $hc1[10];
$Ascendant1 = $hc1[1];
for ($i = 0; $i <= LAST_PLANET; $i++) {
    $longitude2[$i] = Crunch($longitude1[$i] + $solar_arc);
}
$longitude2[LAST_PLANET + 1] = Crunch($hc1[1] + $solar_arc);
$longitude2[LAST_PLANET + 2] = Crunch($hc1[10] + $solar_arc);
// set the content-type
header("Content-type: image/png");
// create the blank image
$overall_size = 640;
$im = @imagecreatetruecolor($overall_size, $overall_size) or die("Cannot initialize new GD image stream");
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:transit_sa_wheel.php

示例9: safeEscapeString

<?php

include "constants.php";
$rx1 = safeEscapeString($_GET["rx1"]);
if (get_magic_quotes_gpc()) {
    $longitude = unserialize(stripslashes($_GET["p1"]));
    $hc1 = unserialize(stripslashes($_GET["hc1"]));
} else {
    $longitude = unserialize($_GET["p1"]);
    $hc1 = unserialize($_GET["hc1"]);
}
$longitude[LAST_PLANET + 1] = $hc1[1];
$longitude[LAST_PLANET + 2] = $hc1[10];
// set the content-type
header("Content-type: image/png");
// create the blank image
$overall_size = 450;
//add a planet
$extra_width = 255;
//in order to make total width = 680
$margins = 20;
//left and right margins on the background graphic
$im = @imagecreatetruecolor($overall_size + $extra_width, $overall_size) or die("Cannot initialize new GD image stream");
// specify the colors
$white = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
$blue = imagecolorallocate($im, 0, 0, 255);
$magenta = imagecolorallocate($im, 255, 0, 255);
$yellow = imagecolorallocate($im, 255, 255, 0);
$cyan = imagecolorallocate($im, 0, 255, 255);
$green = imagecolorallocate($im, 0, 224, 0);
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:natal_aspect_grid.php

示例10: safeEscapeString

if (isset($_POST['submitted']) or isset($_POST['h_sys_submitted'])) {
    $h_sys = safeEscapeString($_POST["h_sys"]);
    // get all variables from form - Person #1
    $name1 = safeEscapeString($_POST["name1"]);
    $month1 = safeEscapeString($_POST["month1"]);
    $day1 = safeEscapeString($_POST["day1"]);
    $year1 = safeEscapeString($_POST["year1"]);
    $hour1 = safeEscapeString($_POST["hour1"]);
    $minute1 = safeEscapeString($_POST["minute1"]);
    $timezone1 = safeEscapeString($_POST["timezone1"]);
    $long_deg1 = safeEscapeString($_POST["long_deg1"]);
    $long_min1 = safeEscapeString($_POST["long_min1"]);
    $ew1 = safeEscapeString($_POST["ew1"]);
    $lat_deg1 = safeEscapeString($_POST["lat_deg1"]);
    $lat_min1 = safeEscapeString($_POST["lat_min1"]);
    $ns1 = safeEscapeString($_POST["ns1"]);
    // set cookie containing natal data here
    setcookie('name', stripslashes($name1), time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('month', $month1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('day', $day1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('year', $year1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('hour', $hour1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('minute', $minute1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('timezone', $timezone1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('long_deg', $long_deg1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('long_min', $long_min1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('ew', $ew1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('lat_deg', $lat_deg1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('lat_min', $lat_min1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    setcookie('ns', $ns1, time() + 60 * 60 * 24 * 30, '/', '', 0);
    include 'header_transits.html';
开发者ID:pumi11,项目名称:astro,代码行数:31,代码来源:now_line.php


注:本文中的safeEscapeString函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。