예제 #1
0
<?php

require_once "webassist/form_validations/wavt_scripts_php.php";
require_once "webassist/form_validations/wavt_validatedform_php.php";
if (isset($_POST["enviar"]) || isset($_POST["enviar_x"])) {
    $WAFV_Redirect = "";
    $_SESSION['WAVT_index_650_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["nombre"]) ? $_POST["nombre"] : "") . "", false, 1);
    $WAFV_Errors .= WAValidateEM((isset($_POST["email"]) ? strtolower($_POST["email"]) : "") . "", true, 2);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Celular"]) ? $_POST["Celular"] : "") . "", false, 3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "index_650");
    }
}
if (ValidatedField('index_650', 'index_650')) {
    if (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "1" . ",") !== false || "1" == "" || (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "2" . ",") !== false || "2" == "") || (strpos("," . ValidatedField("index_650", "index_650") . ",", "," . "3" . ",") !== false || "3" == "")) {
        if (!false) {
            echo "error";
            exit;
            //WAFV_Conditional enviar.php index_650(1,2,3:)
        }
    }
}
ob_start();
if (!session_id()) {
    session_start();
}
<?php

require_once "../../webassist/form_validations/wavt_scripts_php.php";
require_once "../../webassist/form_validations/wavt_validatedform_php.php";
require_once '../../Connections/bikes_db.php';
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_advertisingupdate_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["ad_title"]) ? $_POST["ad_title"] : "") . "", true, 1);
    //$WAFV_Errors .= WAValidateDT((isset($_POST["ad_expire"])?$_POST["ad_expire"]:"") . "",true,"","","",false,"","","",false,3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "advertisingupdate");
    }
}
require_once "../../webassist/file_manipulation/helperphp.php";
require_once "../../webassist/database_management/wa_appbuilder_php.php";
require_once "../../webassist/security_assist/helper_php.php";
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
    WA_Auth_RestrictAccess("../user-admin/login.php");
}
if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
        if (PHP_VERSION < 6) {
            $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
        }
        $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
예제 #3
0
<?php

require_once "../../webassist/form_validations/wavt_scripts_php.php";
require_once "../../webassist/form_validations/wavt_validatedform_php.php";
require_once '../../Connections/bikes_db.php';
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_articlesupdate_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    //$WAFV_Errors .= WAValidateRQ((isset($_POST["articlesName"]) ? $_POST["articlesName"] : "") . "", true, 1);
    //$WAFV_Errors .= WAValidateRQ((isset($_POST["articlesType"]) ? $_POST["articlesType"] : "") . "", true, 2);
    //$WAFV_Errors .= WAValidateRQ((isset($_POST["artlicesLive"]) ? $_POST["artlicesLive"] : "") . "", true, 3);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["articlesIntro"]) ? $_POST["articlesIntro"] : "") . "", true, 4);
    //$WAFV_Errors .= WAValidateRQ((isset($_POST["articlesBody"]) ? $_POST["articlesBody"] : "") . "", true, 5);
    //$WAFV_Errors .= WAValidateDT((isset($_POST["articlesPublishDate"]) ? $_POST["articlesPublishDate"] : "") . "", true, "", "", "", false, "", "", "", false, 6);
    //$WAFV_Errors .= WAValidateNM((isset($_POST["articlesPDF"]) ? $_POST["articlesPDF"] : "") . "", "", "", 0, ",.", false, 7);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "articlesupdate");
    }
}
require_once "../../webassist/file_manipulation/helperphp.php";
require_once "../../webassist/database_management/wa_appbuilder_php.php";
require_once "../../webassist/security_assist/helper_php.php";
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
    WA_Auth_RestrictAccess("../user-admin/login.php");
}
if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
<?php

require_once "../../webassist/form_validations/wavt_scripts_php.php";
require_once "../../webassist/form_validations/wavt_validatedform_php.php";
require_once '../../Connections/bikes_db.php';
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_advertisinginsert_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["ad_title"]) ? $_POST["ad_title"] : "") . "", true, 1);
    $WAFV_Errors .= WAValidateRQ((isset($_FILES["ad_image"]) && isset($_FILES["ad_image"]["name"]) ? $_FILES["ad_image"]["name"] : "") . "", true, 2);
    //$WAFV_Errors .= WAValidateDT((isset($_POST["ad_expire"])?$_POST["ad_expire"]:"") . "",true,"","","",false,"","","",false,3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "advertisinginsert");
    }
}
require_once "../../webassist/file_manipulation/helperphp.php";
require_once "../../webassist/database_management/wa_appbuilder_php.php";
require_once "../../webassist/security_assist/helper_php.php";
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
    WA_Auth_RestrictAccess("../user-admin/login.php");
}
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array('UploadFolder' => "media/thumbs", 'FileName' => "[FileName]", 'DefaultFileName' => "", 'ResizeType' => "2", 'ResizeWidth' => "180", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
예제 #5
0
<?php

require_once "../../webassist/ckeditor/ckeditor.php";
require_once "../../webassist/form_validations/wavt_scripts_php.php";
require_once "../../webassist/form_validations/wavt_validatedform_php.php";
require_once '../../Connections/bikes_db.php';
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_categoryupdate_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["cat_name"]) ? $_POST["cat_name"] : "") . "", true, 1);
    $WAFV_Errors .= WAValidateNM((isset($_POST["priority"]) ? $_POST["priority"] : "") . "", "", "", 0, ",.", false, 3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "categoryupdate");
    }
}
require_once "../../webassist/file_manipulation/helperphp.php";
require_once "../../webassist/database_management/wa_appbuilder_php.php";
require_once "../../webassist/security_assist/helper_php.php";
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
    WA_Auth_RestrictAccess("../user-admin/login.php");
}
if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
        if (PHP_VERSION < 6) {
            $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
        }
예제 #6
0
function WAValidateUnique($connName, $conn, $db, $tableName, $keyCol, $keyType, $keyValue, $filterCol, $filterType, $filterValue, $required, $number)
{
    $WAFV_ErrorMessage = $required ? WAValidateRQ($filterValue, true, $number) : "";
    if (!$WAFV_ErrorMessage) {
        $isValid = true;
        mysql_select_db($db, $conn);
        $WA_UniqueWhere = Validations_generateWhereClause(array($filterCol, $keyCol), array($filterType, $keyType), array($filterValue, $keyValue), array("=", "<>"));
        $WA_UniqueSQL = "SELECT `" . $keyCol . "` FROM `" . $tableName . "` WHERE " . $WA_UniqueWhere->sqlWhereClause;
        $WA_UniqueRS = mysql_query($WA_UniqueSQL, $conn) or die(mysql_error());
        $WA_UniqueRows = mysql_num_rows($WA_UniqueRS);
        if ($WA_UniqueRows) {
            $isValid = false;
        }
        if (!$isValid) {
            $WAFV_ErrorMessage .= "," . $number;
        }
    }
    return $WAFV_ErrorMessage;
}
예제 #7
0
//error_reporting(E_ALL);
//ini_set('display_errors', 1)
@session_start();
require_once '../../Connections/bikes_db.php';
require_once "../../webassist/form_validations/wavt_scripts_php.php";
require_once "../../webassist/form_validations/wavt_validatedform_php.php";
require_once "../../webassist/security_assist/helper_php.php";
if (isset($_POST["LogIn_submit"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_login_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Log_In_group_Username"]) ? $_POST["Log_In_group_Username"] : "") . "", true, 1);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Log_In_group_Password"]) ? $_POST["Log_In_group_Password"] : "") . "", true, 2);
    $WAFV_Errors .= WAValidateEL((isset($_POST["Log_In_group_Password"]) ? $_POST["Log_In_group_Password"] : "") . "", 6, 500, true, 3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "login");
    }
}
if (isset($_POST["LogIn_submit"]) && !isset($_POST["Log_In_group_Remember_my_information"]) && $_POST["LogIn_submit"] != "") {
    setcookie("RememberMePWD", "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["LogIn_submit"]) && !isset($_POST["Log_In_group_Remember_my_information"]) && $_POST["LogIn_submit"] != "") {
    setcookie("RememberMeUN", "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["LogIn_submit"]) && isset($_POST["Log_In_group_Remember_my_information"]) && $_POST["Log_In_group_Remember_my_information"] != "") {
    setcookie("RememberMePWD", "" . (isset($_POST["Log_In_group_Password"]) ? $_POST["Log_In_group_Password"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["LogIn_submit"]) && isset($_POST["Log_In_group_Remember_my_information"]) && $_POST["Log_In_group_Remember_my_information"] != "") {
예제 #8
0
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Email"]) ? $_POST["Registration_group_Email"] : "") . "", true, 1);
    $WAFV_Errors .= WAValidateUnique("bikes_db", $bikes_db, $database_bikes_db, "pcms2_users", "UserID", "none,none,NULL", "" . (isset($_SESSION["SecurityAssist_UserID"]) ? $_SESSION["SecurityAssist_UserID"] : "0") . "", "UserEmail", "',none,''", "" . (isset($_POST["Registration_group_Email"]) ? $_POST["Registration_group_Email"] : "") . "", true, 2);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Password"]) ? $_POST["Registration_group_Password"] : "") . "", true, 3);
    $WAFV_Errors .= WAValidateEL((isset($_POST["Registration_group_Password"]) ? $_POST["Registration_group_Password"] : "") . "", 6, 500, true, 4);
    $WAFV_Errors .= WAValidateLE((isset($_POST["Registration_group_Confirm"]) ? $_POST["Registration_group_Confirm"] : "") . "", (isset($_POST["Registration_group_Confirm"]) ? $_POST["Registration_group_Confirm"] : "") . "", true, 5);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Username"]) ? $_POST["Registration_group_Username"] : "") . "", true, 6);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Last_Name"]) ? $_POST["Registration_group_Last_Name"] : "") . "", true, 7);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Address"]) ? $_POST["Registration_group_Address"] : "") . "", true, 8);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_Address_2"]) ? $_POST["Registration_group_Address_2"] : "") . "", true, 9);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_City"]) ? $_POST["Registration_group_City"] : "") . "", true, 10);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_State"]) ? $_POST["Registration_group_State"] : "") . "", true, 11);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_10_Postcode"]) ? $_POST["Registration_group_10_Postcode"] : "") . "", true, 12);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["Registration_group_1_Fax"]) ? $_POST["Registration_group_1_Fax"] : "") . "", true, 13);
    $WAFV_Errors .= WAValidateLE(strtolower(isset($_POST["Security_Code"]) ? $_POST["Security_Code"] : "") . "", (isset($_SESSION["captcha_Security_Code"]) ? strtolower($_SESSION["captcha_Security_Code"]) : "") . "", true, 14);
    $WAFV_Errors .= WAValidateLE(strtolower(isset($_POST["Security_Answer"]) ? $_POST["Security_Answer"] : "") . "", (isset($_SESSION["random_answer"]) ? strtolower($_SESSION["random_answer"]) : "") . "", true, 15);
    $WAFV_Errors .= WAValidateRX((isset($_POST["Hidden_Field"]) ? $_POST["Hidden_Field"] : "") . "", "/.* /", false, 16);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "registration");
    }
}
// WA DataAssist Insert
if (isset($_POST["Registration_submit"]) && $_POST["Registration_submit"] != "") {
    $WA_connection = $bikes_db;
    $WA_table = "pcms2_users";
    $WA_sessionName = "SecurityAssist_UserID";
    $WA_redirectURL = "login.php?success=1";
    if (function_exists("rel2abs")) {
        $WA_redirectURL = $WA_redirectURL ? rel2abs($WA_redirectURL, dirname(__FILE__)) : "";
예제 #9
0
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Email"]) ? $_POST["User_Update_group_Email"] : "") . "", true, 1);
    $WAFV_Errors .= WAValidateUnique("bikes_db", $bikes_db, $database_bikes_db, "pcms2_users", "UserID", "none,none,NULL", "" . (isset($_SESSION["SecurityAssist_UserID"]) ? $_SESSION["SecurityAssist_UserID"] : "0") . "", "UserEmail", "',none,''", "" . (isset($_POST["User_Update_group_Email"]) ? $_POST["User_Update_group_Email"] : "") . "", true, 2);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Password"]) ? $_POST["User_Update_group_Password"] : "") . "", true, 3);
    $WAFV_Errors .= WAValidateEL((isset($_POST["User_Update_group_Password"]) ? $_POST["User_Update_group_Password"] : "") . "", 6, 500, true, 4);
    $WAFV_Errors .= WAValidateLE((isset($_POST["User_Update_group_Confirm"]) ? $_POST["User_Update_group_Confirm"] : "") . "", (isset($_POST["User_Update_group_Confirm"]) ? $_POST["User_Update_group_Confirm"] : "") . "", true, 5);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Username"]) ? $_POST["User_Update_group_Username"] : "") . "", true, 6);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Last_Name"]) ? $_POST["User_Update_group_Last_Name"] : "") . "", true, 7);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Address"]) ? $_POST["User_Update_group_Address"] : "") . "", true, 8);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_Address_2"]) ? $_POST["User_Update_group_Address_2"] : "") . "", true, 9);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_City"]) ? $_POST["User_Update_group_City"] : "") . "", true, 10);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_State"]) ? $_POST["User_Update_group_State"] : "") . "", true, 11);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_10_Postcode"]) ? $_POST["User_Update_group_10_Postcode"] : "") . "", true, 12);
    $WAFV_Errors .= WAValidateRQ((isset($_POST["User_Update_group_1_Fax"]) ? $_POST["User_Update_group_1_Fax"] : "") . "", true, 13);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "userupdate");
    }
}
if (isset($_POST["UserUpdate_submit"]) && isset($_COOKIE["RememberMePWD"]) && isset($_POST["User_Update_group_Password"]) && $_POST["User_Update_group_Password"] != "") {
    setcookie("RememberMePWD", "" . (isset($_POST["User_Update_group_Password"]) ? $_POST["User_Update_group_Password"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["UserUpdate_submit"]) && isset($_COOKIE["RememberMeUN"]) && isset($_POST["User_Update_group_Username"]) && $_POST["User_Update_group_Username"] != "") {
    setcookie("RememberMeUN", "" . (isset($_POST["User_Update_group_Username"]) ? $_POST["User_Update_group_Username"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["UserUpdate_submit"]) && isset($_COOKIE["AutoLoginPWD"]) && isset($_POST["User_Update_group_Password"]) && $_POST["User_Update_group_Password"] != "") {
    setcookie("AutoLoginPWD", "" . (isset($_POST["User_Update_group_Password"]) ? $_POST["User_Update_group_Password"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["UserUpdate_submit"]) && isset($_COOKIE["AutoLoginUN"]) && isset($_POST["User_Update_group_Username"]) && $_POST["User_Update_group_Username"] != "") {
    setcookie("AutoLoginUN", "" . (isset($_POST["User_Update_group_Username"]) ? $_POST["User_Update_group_Username"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);