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["ForgotPassword_submit"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_forgotpassword_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateLE(strtolower(isset($_POST["Security_Code"]) ? $_POST["Security_Code"] : "") . "", (isset($_SESSION["captcha_Security_Code"]) ? strtolower($_SESSION["captcha_Security_Code"]) : "") . "", true, 1);
    $WAFV_Errors .= WAValidateLE(strtolower(isset($_POST["Security_Answer"]) ? $_POST["Security_Answer"] : "") . "", (isset($_SESSION["random_answer"]) ? strtolower($_SESSION["random_answer"]) : "") . "", true, 2);
    $WAFV_Errors .= WAValidateRX((isset($_POST["Hidden_Field"]) ? $_POST["Hidden_Field"] : "") . "", "/.* /", false, 3);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "forgotpassword");
    }
}
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter)
{
    $WA_MailObject = WA_SecurityAssist_Definition("", "", "", "", "", "");
    $WA_MailObject = WA_SecurityAssist_SendMail($WA_MailObject, "", "", "", $WA_Auth_Parameter["toAddress"], "", $WA_Auth_Parameter["fromAddress"], $WA_Auth_Parameter["subject"], $WA_Auth_Parameter["mailBody"]);
    $WA_MailObject = null;
}
// WA_SecurityAssist_Email_1_SendMail
if (isset($_POST["ForgotPassword_submit"])) {
    //WA SecurityAssist Email object="mail"
    $WA_Auth_Parameter = array("connection" => $bikes_db, "database" => $database_bikes_db, "tableName" => "pcms2_users", "filterColumn" => "UserEmail", "filterEncryption" => "", "columnValue" => "" . (isset($_POST["Forgot_Password_group_Email"]) ? $_POST["Forgot_Password_group_Email"] : "") . "", "columnType" => "text", "usernameColumn" => "UserFirstName", "usernameEncryption" => "", "passwordColumn" => "UserPassword", "passwordEncryption" => "", "selectColumns" => array("UserFirstName", "UserPassword", "UserEmail"), "sessionVariables" => array(""), "successRedirect" => "login.php?emailedPassword=1", "failRedirect" => "forgotpassword.php", "keepQueryString" => TRUE, "toAddressColumn" => "UserEmail", "toAddressEncryption" => "", "fromAddress" => "*****@*****.**", "fromAddressDisplay" => "Your Name", "subject" => "Forgotten Password", "mailBody" => "../../webassist/security_assist/email/forgotpassword_email.php", "emailFunction" => "WA_SecurityAssist_Email_1_SendMail");
    WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>
<?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);
Example #4
0
<?php

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";
require_once "../../webassist/database_management/wa_appbuilder_php.php";
if (isset($_POST["UserUpdate_submit"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_userupdate_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    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);
}
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
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
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array('UploadFolder' => "media", 'FileName' => "[FileName]", 'DefaultFileName' => "", 'ResizeType' => "0", 'ResizeWidth' => "0", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
Example #6
0
//check if email already sent
$sent = "-1";
if (isset($_GET['send'])) {
    $sent = $_GET['send'];
}
//insert email newsletter form
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_mailistinsert_Errors'] = "";
    if ($WAFV_Redirect == "") {
        $WAFV_Redirect = $_SERVER["PHP_SELF"];
    }
    $WAFV_Errors = "";
    $WAFV_Errors .= WAValidateEM((isset($_POST["mail_email"]) ? $_POST["mail_email"] : "") . "", true, 2);
    if ($WAFV_Errors != "") {
        PostResult($WAFV_Redirect, $WAFV_Errors, "mailistinsert");
    }
}
?>

<?php 
// WA DataAssist Insert
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WA_connection = $bikes_db;
    $WA_table = "mailist";
    $WA_sessionName = "WADA_Insert_mailist";
    $WA_redirectURL = "index.php?sent=1";
    if (function_exists("rel2abs")) {
        $WA_redirectURL = $WA_redirectURL ? rel2abs($WA_redirectURL, dirname(__FILE__)) : "";
    }
    $WA_keepQueryString = false;
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 = "")
    {
        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);
    //$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__)) : "";
    }
    $WA_keepQueryString = true;
    $WA_fieldNamesStr = "UserEmail|UserPassword|UserFirstName|UserLastName|UserAddress|UserAddress2|UserCity|UserState|UserZip|UserCountry|UserPhone|UserFax";
    $WA_fieldValuesStr = "" . (isset($_POST["Registration_group_Email"]) ? $_POST["Registration_group_Email"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_Password"]) ? $_POST["Registration_group_Password"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_Username"]) ? $_POST["Registration_group_Username"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_Last_Name"]) ? $_POST["Registration_group_Last_Name"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_Address"]) ? $_POST["Registration_group_Address"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_Address_2"]) ? $_POST["Registration_group_Address_2"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_City"]) ? $_POST["Registration_group_City"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_State"]) ? $_POST["Registration_group_State"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_10_Postcode"]) ? $_POST["Registration_group_10_Postcode"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_11_Country"]) ? $_POST["Registration_group_11_Country"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_1_Phone"]) ? $_POST["Registration_group_1_Phone"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["Registration_group_1_Fax"]) ? $_POST["Registration_group_1_Fax"] : "") . "";
    $WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
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;
        }
        $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_articlesinsert_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, "articlesinsert");
    }
}
date_default_timezone_set('UTC');
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/", 'FileName' => "[FileName]", 'DefaultFileName' => "", 'ResizeType' => "0", 'ResizeWidth' => "0", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
Example #11
0
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"] != "") {
    setcookie("RememberMeUN", "" . (isset($_POST["Log_In_group_Username"]) ? $_POST["Log_In_group_Username"] : "") . "", time() + 60 * 60 * 24 * 30, "/", "", 0);
}
if (isset($_POST["LogIn_submit"]) && !isset($_POST["Log_In_group_Log_me_in_automatically"]) && $_POST["LogIn_submit"] != "") {
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["Insert"]) || isset($_POST["Insert_x"])) {
    $WAFV_Redirect = "" . htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES) . "?invalid=true";
    $_SESSION['WAVT_categoryinsert_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, "categoryinsert");
    }
}
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");
}
?>

<?php 
//get father cats
mysql_select_db($database_bikes_db, $bikes_db);
$query_father = sprintf("SELECT cat_id, cat_name, cat_father_id,  hide, cat_metatitle, cat_metadesc, priority FROM category WHERE hide = 0 AND cat_father_id = 655 ORDER BY cat_id ASC");
$father = mysql_query($query_father, $bikes_db) or die(mysql_error());