• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP filter_input函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: searchSend

 public function searchSend()
 {
     $weather = new \Models\Weather();
     if (isset($_POST["day"]) && isset($_POST["month"]) && isset($_POST["year"]) && isset($_POST["type"])) {
         $day = htmlspecialchars(filter_input(INPUT_POST, 'day', FILTER_SANITIZE_NUMBER_INT));
         $month = htmlspecialchars(filter_input(INPUT_POST, 'month', FILTER_SANITIZE_NUMBER_INT));
         $year = htmlspecialchars(filter_input(INPUT_POST, 'year', FILTER_SANITIZE_NUMBER_INT));
         $type = htmlspecialchars(filter_input(INPUT_POST, 'type', FILTER_SANITIZE_STRING));
         $date = $year . "-" . $month . "-" . $day;
         $data["response"] = $weather->getAllByTypeAndDate($type, $date);
         echo json_encode($data["response"]);
     } else {
         if (isset($_POST["month"]) && isset($_POST["year"]) && isset($_POST["type"])) {
             $month = htmlspecialchars(filter_input(INPUT_POST, 'month', FILTER_SANITIZE_NUMBER_INT));
             $year = htmlspecialchars(filter_input(INPUT_POST, 'year', FILTER_SANITIZE_NUMBER_INT));
             $type = htmlspecialchars(filter_input(INPUT_POST, 'type', FILTER_SANITIZE_STRING));
             $data["response"] = $weather->getAllByTypeAndMonth($type, $month, $year, "text");
             echo json_encode($data["response"]);
         } else {
             if (isset($_POST["year"]) && isset($_POST["type"])) {
                 $year = htmlspecialchars(filter_input(INPUT_POST, 'year', FILTER_SANITIZE_NUMBER_INT));
                 $type = htmlspecialchars(filter_input(INPUT_POST, 'type', FILTER_SANITIZE_STRING));
                 $data["response"] = $weather->getAllByTypeAndYear($type, $year, "text");
                 echo json_encode($data["response"]);
             }
         }
     }
 }
开发者ID:XxP1asmaxX,项目名称:MeteoColmar,代码行数:28,代码来源:Historic.php


示例2: private_core

 protected function private_core()
 {
     $this->almacen = new almacen();
     $this->clientes = new cliente();
     $this->rutas_all = new distribucion_rutas();
     $this->distribucion_clientes = new distribucion_clientes();
     //Mandamos los botones y tabs
     $this->shared_extensions();
     //Verificamos los accesos del usuario
     $this->allow_delete = $this->user->admin ? TRUE : $this->user->allow_delete_on(__CLASS__);
     $fecha_pedido = filter_input(INPUT_POST, 'fecha_pedido');
     $fecha_facturacion = filter_input(INPUT_POST, 'fecha_facturacion');
     $ruta = filter_input(INPUT_POST, 'ruta');
     $codalmacen = filter_input(INPUT_POST, 'codalmacen');
     $codcliente = filter_input(INPUT_POST, 'codcliente');
     $this->fecha_pedido = $fecha_pedido ? $fecha_pedido : \date('d-m-Y');
     $this->fecha_facturacion = $fecha_facturacion ? $fecha_facturacion : \date('d-m-Y', strtotime('+1 day'));
     $this->ruta = $ruta ? $ruta : false;
     $this->codalmacen = $codalmacen ? $codalmacen : false;
     $this->codcliente = $codcliente ? $codcliente : false;
     if ($this->codcliente) {
         $this->cliente = $this->clientes->get($this->codcliente);
         $this->cliente_nombre = $this->cliente->nombre;
     }
     $cliente = filter_input(INPUT_GET, 'buscar_cliente');
     if ($cliente) {
         $this->buscar_cliente($cliente);
     }
     $this->rutas = $this->codalmacen ? $this->rutas_all->all_rutasporalmacen($this->empresa->id, $this->codalmacen) : array();
     if ($this->ruta and $this->codalmacen) {
         $this->clientes_ruta = $this->distribucion_clientes->clientes_ruta($this->empresa->id, $this->codalmacen, $this->ruta);
     }
 }
开发者ID:joenilson,项目名称:distribucion,代码行数:33,代码来源:distribucion_venta.php


示例3: verifValue

function verifValue($bdd, $image, $montant, $idnote)
{
    $resultatRetour = false;
    //Verifie qu'un fichier est bien présent
    if (!isset($image) || !$image['error'] == 0) {
        echo 'Erreur avec le justificatif (image)';
    } else {
        if (!strtotime(nl2br(filter_input(INPUT_POST, 'date')))) {
            echo 'Erreur lors de la saisie de la Date  ';
        } else {
            if (strlen(filter_input(INPUT_POST, 'description')) > 255) {
                echo 'Description trop longue (255 caractères maximum !).';
            } else {
                if (!is_numeric($montant) || $montant > 50000 || $montant < 0) {
                    echo 'Montant incorrect, merci de mettre des . pour les centimes ex : 22.90';
                } else {
                    if (is_numeric($idnote)) {
                        $check = $bdd->prepare('SELECT * FROM note_frais WHERE statut_id = 1 AND id=:id limit 1');
                        $check->execute(array(":id" => $idnote));
                        if ($check->rowCount() != 1) {
                            echo 'Stop F12 !';
                        } else {
                            $resultatRetour = true;
                        }
                    } else {
                        $resultatRetour = true;
                    }
                }
            }
        }
    }
    return $resultatRetour;
}
开发者ID:JuanTrochez,项目名称:enote,代码行数:33,代码来源:fraisController.php


示例4: __construct

 public function __construct()
 {
     $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_SPECIAL_CHARS);
     $url = rtrim($url, '/');
     $url = explode('/', $url);
     $file = ROOT . '/controller/' . $url[0] . '.class.php';
     define('METHOD', $url[1]);
     if (file_exists($file)) {
         require $file;
     } else {
         if (empty($url[0])) {
             header("Location: /article/all");
             exit;
         } else {
             require ROOT . '/controller/error.class.php';
             $controller = new Error();
             return false;
         }
     }
     $controller = new $url[0]();
     if (isset($url[2])) {
         $controller->{$url}[1]($url[2]);
     } else {
         if (isset($url[1])) {
             $controller->{$url}[1]();
         } else {
             $controller->defaultClass();
         }
     }
 }
开发者ID:barabash97,项目名称:vladicms,代码行数:30,代码来源:bootstrap.class.php


示例5: returnGoodsStatus

 public function returnGoodsStatus($i10dabd0ff3063e4a86ec016d1e108ad0fbecba80)
 {
     $i30127f0cd4894803854852241754c6b654188778 = filter_input(INPUT_POST, "notifySms");
     if ($i30127f0cd4894803854852241754c6b654188778 || !isset($i30127f0cd4894803854852241754c6b654188778)) {
         $this->hooks->returnGoodsStatus(filter_input(INPUT_POST, "return_status_id"), filter_input(INPUT_POST, "comment"), $i10dabd0ff3063e4a86ec016d1e108ad0fbecba80);
     }
 }
开发者ID:mirzavu,项目名称:clothfarm,代码行数:7,代码来源:events.php


示例6: validateInputVar

 /**
  * Фильтрует переменную, переданную методами post или get
  * @param string $name имя переменной (ключ в массиве post или get)
  * @param string $method константа метода, которым передана переменная (например 'INPUT_POST')
  * @param string $type тип переменной
  * @return mixed отфильтрованная переменная
  */
 static function validateInputVar($name, $method, $type = '')
 {
     switch ($type) {
         case 'int':
             $filter = FILTER_SANITIZE_NUMBER_INT;
             break;
         case 'str':
             $filter = FILTER_SANITIZE_STRING;
             break;
         case 'url':
             $filter = FILTER_SANITIZE_URL;
             break;
         case 'email':
             $filter = FILTER_SANITIZE_EMAIL;
             break;
         case 'html':
             $filter = 'html';
             break;
         default:
             $filter = FILTER_DEFAULT;
     }
     if (!defined($method)) {
         if (!preg_match('/^input/i', $method)) {
             $method = 'INPUT_' . strtoupper($method);
         }
     }
     $method = constant($method);
     if (filter_has_var($method, $name)) {
         if ($filter === 'html') {
             return strip_tags(filter_input($method, $name), '<a><p><b><strong><table><th><tr><td><area><article><big><br><center><dd><div><dl><dt><dir><em><embed><figure><font><hr><h1><h2><h3><h4><h5><h6><img><ol><ul><li><small><sup><sub><tt><time><tfoot><thead><tbody><u>');
         } else {
             return filter_input($method, $name, $filter);
         }
     }
 }
开发者ID:ralf000,项目名称:newshop,代码行数:42,代码来源:Validate.class.php


示例7: post_restore

 public function post_restore()
 {
     if (isset($_POST['job_id']) && isset($_POST['backup_uniqid']) && isset($_POST['_wpnonce']) && isset($_POST['method'])) {
         $nonce = filter_input(INPUT_POST, '_wpnonce', FILTER_SANITIZE_STRING);
         if (!wp_verify_nonce($nonce, 'my-wp-backup-restore-backup')) {
             wp_die(esc_html__('Nope! Security check failed!', 'my-wp-backup'));
         }
         $id = absint($_POST['job_id']);
         $uniqid = sanitize_key($_POST['backup_uniqid']);
         $method = filter_input(INPUT_POST, 'method', FILTER_SANITIZE_STRING);
         $backup = self::get($id, $uniqid);
         if (!isset($backup['duration'])) {
             add_settings_error('', '', __('Invalid backup id/uniqid.', 'my-wp-backup'));
             set_transient('settings_errors', get_settings_errors());
             wp_safe_redirect($this->admin->get_page_url('backup', array('settings-updated' => 1)));
         }
         if (!$backup->has_archives()) {
             // No local copy and no remote copy === DEAD END.
             if (empty($backup['destinations'])) {
                 add_settings_error('', '', __('Backup files missing.', 'my-wp-backup'));
                 set_transient('settings_errors', get_settings_errors());
                 wp_safe_redirect($this->admin->get_page_url('backup', array('settings-updated' => 1)));
             }
             if (!isset($backup['destinations'][$method])) {
                 add_settings_error('', '', sprintf(__('No backup files from %s.', 'my-wp-backup'), Job::$destinations[$method]));
                 set_transient('settings_errors', get_settings_errors());
                 wp_safe_redirect($this->admin->get_page_url('backup', array('settings-updated' => 1)));
             }
         }
         wp_schedule_single_event(time(), 'wp_backup_restore_backup', array(array($id, $uniqid, $method)));
         wp_safe_redirect($this->admin->get_page_url('backup', array('uniqid' => $uniqid, 'action' => 'viewprogress', 'id' => $id)));
     }
 }
开发者ID:guysyml,项目名称:software,代码行数:33,代码来源:Backup.php


示例8: fireAction

 public function fireAction()
 {
     $row = filter_input(INPUT_POST, 'row');
     $col = filter_input(INPUT_POST, 'col');
     $view = new \View();
     if (!$row || !$col) {
         $view->dislayJson(array('status' => 0, 'msg' => 'Invalid coordinates!'));
         return;
     }
     //fire
     $status = $this->fire($row, $col);
     $view->grid = $this->board->getGrid();
     $view->symbols = $this->getBoardSymbols();
     $view->rows = $this->getRowsNames();
     $view->cols = $this->getColsNames();
     //Get the html for the board
     ob_start();
     $view->display('Web/board');
     $html = ob_get_contents();
     ob_clean();
     $data = array('status' => 1, 'msg' => $this->getMessageByStatus($status), 'html' => $html, 'tries' => $this->board->getTries());
     $view->dislayJson($data);
     //Reset the game if it's over
     if ($this->isGameOver()) {
         $this->reset();
     }
 }
开发者ID:wildalmighty,项目名称:BattleShips,代码行数:27,代码来源:GameWEB.php


示例9: saveProcess

 private function saveProcess()
 {
     if ($_SERVER['REQUEST_METHOD'] != 'POST') {
         View::setMessageFlash("danger", "Form tidak valid");
         return FALSE;
     }
     // form validation
     if (!filter_input(INPUT_POST, "form_token") || Form::isFormTokenValid(filter_input(INPUT_POST, "form_token"))) {
         View::setMessageFlash("danger", "Form tidak valid");
         return FALSE;
     }
     // required fields
     $filter = array("name" => FILTER_SANITIZE_STRING, "phone" => FILTER_SANITIZE_STRING, "address" => FILTER_SANITIZE_STRING);
     $input = filter_input_array(INPUT_POST, $filter);
     if (in_array('', $input) || in_array(NULL, $input)) {
         View::setMessageFlash("danger", "Kolom tidak boleh kosong");
         return FALSE;
     }
     // set member object
     $staff = Authentication::getUser();
     $staff->setData('name', $input['name']);
     $staff->setData('phone', $input['phone']);
     $staff->setData('address', $input['address']);
     if (!($update = $staff->update())) {
         View::setMessageFlash("danger", "Penyimpanan Gagal");
         return;
     }
     View::setMessageFlash("success", "Penyimpanan Berhasil");
 }
开发者ID:bahrul221,项目名称:tc-tgm,代码行数:29,代码来源:StaffProfileController.php


示例10: is_current_section

 /**
  * Check if this is the current section.
  * @return boolean True if this is the currently active section.
  */
 public function is_current_section()
 {
     if (!isset($this->active)) {
         $this->active = filter_input(INPUT_GET, 'section') == $this->get_slug();
     }
     return $this->active;
 }
开发者ID:Air-Craft,项目名称:air-craft-www,代码行数:11,代码来源:Section.php


示例11: show

    public function show()
    {
        //取得頁數資訊
        //控制參數
        $qlimit = array();
        $modelName = $this->getModelName();
        $model = new $modelName();
        $searchSQL = self::getJQGridSearchParams();
        //echo($searchSQL);
        $id = filter_input(INPUT_GET, 'row_id', FILTER_SANITIZE_NUMBER_INT);
        if ($id) {
            //$id = $this->parseDataInFormat($id, 'd_id');
            $qlimit[] = 'a.m_id=' . $id;
        }
        if ($searchSQL) {
            $qlimit[] = $searchSQL;
        }
        $qlimit = self::implodeQueryFilters($qlimit);
        return $model->getJQGridGridData($qlimit, array('SQL_SELECT' => 'a.m_id, a.m_name, a.m_sat_name, a.s_property, a.m_img,
					a.m_place, a.m_subplace, a.m_lv, a.m_meet, a.m_mission, b.m_subject,
					a.m_npc, a.m_npc_message, a.hp, a.sp, a.at, a.df, a.mat, a.mdf,
					a.str, a.smart, a.agi, a.life, a.vit, a.au, a.be, 
					a.skill_1, a.skill_2, a.skill_3, a.skill_4, a.skill_5, 
					a.time_1, a.time_2, a.time_3, a.m_job_Exp, a.d_id, a.m_topr
				', 'SQL_FROM' => 'wog_monster a LEFT JOIN wog_mission_main b ON b.m_id=a.m_mission', 'sanitize' => array('MonsterController', 'sanitizeShowData')));
    }
开发者ID:WeishengChang,项目名称:wogap,代码行数:26,代码来源:MonsterController.php


示例12: __construct

 function __construct()
 {
     $this->getCluster = filter_input(INPUT_POST, "getParam");
     $this->userid = filter_input(INPUT_POST, "userid");
     $this->part = 'modelfile/' . $this->userid . '/';
     $this->getContent();
 }
开发者ID:tappy,项目名称:ServerEMining,代码行数:7,代码来源:getClusterModel.php


示例13: __construct

 public function __construct()
 {
     if (isset($_GET['url'])) {
         //se verifica que la variable url no este vacia, en caso de que no entra en la condicion y la filtra
         $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL);
         //se le envia la manera como va a llegar sea por post o get, despues la variable, y con el sanitize se limpia de caracteres especiales
         $url = explode('/', $url);
         //se recorre la url, y cada vez que encuentre un slas la separa y crea un array
         $url = array_filter($url);
         //recorre el array y lo limpia de los caracteres especiales
         $this->_controlador = strtolower(array_shift($url));
         //coje la primera posicion del array, la convierte en minuscula con strlower y la asigna a la variable _controlador
         $this->_metodo = strtolower(array_shift($url));
         //coje la primera posicion del array, la convierte en minuscula con strlower y la asigna a la variable _metodo
         $this->_parametros = $url;
         //coje lo que queda en el array y lo mete en la variable _parametros
     }
     if (!$this->_controlador) {
         $this->_controlador = DEFAULT_CONTROLLER;
     }
     //en caso de que la url venga vacia asigna el controlador index por defecto el que se creo en el config
     if (!$this->_metodo) {
         $this->_metodo = 'index';
         //en caso de que el metodo venga vacio asigna el metod index por defecto
     }
     if (!isset($this->_parametros)) {
         $this->_parametros = array();
         //si los parametros no existen le dira a la variable que va a ser de tipo array
     }
 }
开发者ID:b3nkos,项目名称:sevg,代码行数:30,代码来源:request.php


示例14: setRoute

 private function setRoute()
 {
     $this->route = filter_input(INPUT_GET, 'request', FILTER_SANITIZE_URL);
     $this->route = trim($this->route, "/");
     $this->route = explode("/", $this->route);
     $this->checkForEmptyRoute();
 }
开发者ID:wamacs,项目名称:CRUDMVC,代码行数:7,代码来源:router.php


示例15: private_core

 public function private_core()
 {
     $this->allow_delete = $this->user->allow_delete_on(__CLASS__);
     $this->almacen = new almacen();
     $this->agencia_transporte = new agencia_transporte();
     $this->distribucion_tipounidad = new distribucion_tipounidad();
     $this->distribucion_unidades = new distribucion_unidades();
     $delete = \filter_input(INPUT_GET, 'delete');
     $codalmacen = \filter_input(INPUT_POST, 'codalmacen');
     $codtrans = \filter_input(INPUT_POST, 'codtrans');
     $placa_val = \filter_input(INPUT_POST, 'placa');
     $capacidad = \filter_input(INPUT_POST, 'capacidad');
     $tipounidad = \filter_input(INPUT_POST, 'tipounidad');
     $estado_val = \filter_input(INPUT_POST, 'estado');
     $estado = isset($estado_val) ? true : false;
     $placa = !empty($delete) ? $delete : $placa_val;
     $unidad = new distribucion_unidades();
     $unidad->idempresa = $this->empresa->id;
     $unidad->placa = trim(strtoupper($placa));
     $unidad->codalmacen = $codalmacen;
     $unidad->codtrans = (string) $codtrans;
     $unidad->tipounidad = (int) $tipounidad;
     $unidad->capacidad = (int) $capacidad;
     $unidad->estado = $estado;
     $unidad->usuario_creacion = $this->user->nick;
     $unidad->fecha_creacion = \Date('d-m-Y H:i:s');
     $condicion = !empty($delete) ? 'delete' : 'update';
     $valor = !empty($delete) ? $delete : $placa;
     if ($valor) {
         $this->tratar_unidad($valor, $condicion, $unidad);
     }
     $this->listado = $this->distribucion_unidades->all($this->empresa->id);
 }
开发者ID:joenilson,项目名称:distribucion,代码行数:33,代码来源:distrib_unidades.php


示例16: execute

/**
 * 
 * 
 * @return \simpleResponse
 */
function execute()
{
    $response = new simpleResponse();
    try {
        include './inc/incWebServiceSessionValidation.php';
        $app_id = filter_input(INPUT_GET, "app_id");
        $appToModify = da_apps_registry::GetApp($app_id);
        $appToModify->account_id = filter_input(INPUT_GET, "account_id");
        $appToModify->app_nickname = filter_input(INPUT_GET, "app_nickname");
        $appToModify->app_description = filter_input(INPUT_GET, "app_description");
        $appToModify->visibility_type_id = filter_input(INPUT_GET, "visibility_type_id");
        if ($appToModify->account_id > 0 && $appToModify->app_nickname != "" && $appToModify->app_description != "" && $appToModify->visibility_type_id > 0) {
            $modifiedApp = da_apps_registry::UpdateApp($appToModify);
            $response->status = "OK";
            $response->message = "SUCCESS";
            $response->data = $modifiedApp;
        } else {
            $response->status = "ERROR";
            if (!$appToModify->account_id > 0) {
                $response->message = "Parámetros Inválidos - AccountID";
            }
            if ($appToModify->app_nickname == "") {
                $response->message = "Parámetros Inválidos - Nickname";
            }
            if ($appToModify->app_description == "") {
                $response->message = "Parámetros Inválidos - Description";
            }
        }
    } catch (Exception $ex) {
        $response->status = "EXCEPTION";
        $response->message = $ex->getMessage();
    }
    return $response;
}
开发者ID:JulioOrdonezV,项目名称:pvcloud,代码行数:39,代码来源:app_modify.php


示例17: get_id_view

 protected function get_id_view()
 {
     $prep = $this->connection->prepare('
         SELECT d.dept_name,
             v.margin,
             d.dept_no AS deptID
         FROM departments AS d
             LEFT JOIN VendorSpecificMargins AS v ON v.deptID=d.dept_no AND v.vendorID=?
         ORDER BY d.dept_no
     ');
     $res = $this->connection->execute($prep, array($this->id));
     $ret = '<form method="post" action="' . filter_input(INPUT_SERVER, 'PHP_SELF') . '">';
     $ret .= '<table class="table table-bordered table-striped">
             <tr><th>Dept#</th><th>Name</th><th>Margin</th></tr>';
     while ($row = $this->connection->fetchRow($res)) {
         $ret .= sprintf('<tr>
             <td>%d<input type="hidden" name="id[]" value="%d" /></td>
             <td>%s</td>
             <td>
                 <div class="input-group">
                 <input type="text" class="form-control" name="margin[]" value="%.2f" />
                 <span class="input-group-addon">%%</span>
                 </div>
             </td>
             </tr>', $row['deptID'], $row['deptID'], $row['dept_name'], 100 * $row['margin']);
     }
     $ret .= '</table>
         <input type="hidden" name="vendorID" value="' . $this->id . '" />
         <p><button type="submit" class="btn btn-default btn-core">Save</button></p>
         </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:32,代码来源:VendorMarginsPage.php


示例18: checkRegisterParams

function checkRegisterParams()
{
    // Create DB connection
    require_once __ROOT__ . '/admin/include/DBclass.php';
    $sqlConn = new DBclass();
    // Check for the submit data
    $email = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'email', FILTER_DEFAULT));
    $firstname = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'firstname', FILTER_DEFAULT));
    $lastname = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'lastname', FILTER_DEFAULT));
    $password = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'password', FILTER_DEFAULT));
    $passwordRe = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'passwordRe', FILTER_DEFAULT));
    $address = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'address', FILTER_DEFAULT));
    $postnumber = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'postnumber', FILTER_DEFAULT));
    $city = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'city', FILTER_DEFAULT));
    $phone = $sqlConn->realEscapeString(filter_input(INPUT_POST, 'phone', FILTER_DEFAULT));
    // Check inputs validity
    // Encrypt password
    $passwordEncypt = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($email), $password, MCRYPT_MODE_CBC, md5(md5($email))));
    // Record current date and time
    $timeAndDate = date("Y-m-d h:i:sa");
    // Insert:
    $query = "INSERT INTO user (firstname, lastname, password, address,\n            email, phone, city, postnumber, usertype_idusertype, timeAndDate) \n            VALUES ('" . $firstname . "','" . $lastname . "','" . $passwordEncypt . "','" . $address . "','" . $email . "','" . $phone . "','" . $city . "'," . $postnumber . ",1,'" . $timeAndDate . "')";
    echo "<br/>" . $query . "<br/>";
    $sqlConn->exeQuery($query);
    // Remove DB connection
    unset($sqlConn);
}
开发者ID:skoja,项目名称:NazMarket,代码行数:27,代码来源:register.php


示例19: intro_tour

    /**
     * Load the introduction tour
     */
    function intro_tour()
    {
        global $pagenow, $current_user;
        $admin_pages = array('dashboard' => array('content' => '<h3>' . __('General settings', 'wordpress-seo') . '</h3><p>' . __('These are the General settings for WordPress SEO, here you can restart this tour or revert the WP SEO settings to default.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Tracking', 'wordpress-seo') . '</strong><br/>' . __('To provide you with the best experience possible, we need your help. Please enable tracking to help us gather anonymous usage data.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Tab: Your Info / Company Info', 'wordpress-seo') . '</strong><br/>' . __('Add some info here needed for Google\'s Knowledge Graph.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Tab: Webmaster Tools', 'wordpress-seo') . '</strong><br/>' . __('You can add the verification codes for the different Webmaster Tools programs here, we highly encourage you to check out both Google and Bing&#8217;s Webmaster Tools.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Tab: Security', 'wordpress-seo') . '</strong><br/>' . __('Determine who has access to the plugins advanced settings on the post edit screen.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('More WordPress SEO', 'wordpress-seo') . '</strong><br/>' . sprintf(__('There&#8217;s more to learn about WordPress &amp; SEO than just using this plugin. A great start is our article %1$sthe definitive guide to WordPress SEO%2$s.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://yoast.com/articles/wordpress-seo/#utm_source=wpseo_dashboard&utm_medium=wpseo_tour&utm_campaign=tour') . '">', '</a>') . '</p>' . '<p><strong style="font-size:150%;">' . __('Subscribe to our Newsletter', 'wordpress-seo') . '</strong><br/>' . __('If you would like us to keep you up-to-date regarding WordPress SEO and other plugins by Yoast, subscribe to our newsletter:', 'wordpress-seo') . '</p>' . '<form action="http://yoast.us1.list-manage1.com/subscribe/post?u=ffa93edfe21752c921f860358&amp;id=972f1c9122" method="post" id="newsletter-form" accept-charset="' . esc_attr(get_bloginfo('charset')) . '">' . '<p>' . '<input style="margin: 5px; color:#666" name="EMAIL" value="' . esc_attr($current_user->user_email) . '" id="newsletter-email" placeholder="' . __('Email', 'wordpress-seo') . '"/>' . '<input type="hidden" name="group" value="2"/>' . '<button type="submit" class="button-primary">' . __('Subscribe', 'wordpress-seo') . '</button>' . '</p></form>', 'next_page' => 'titles'), 'titles' => array('content' => '<h3>' . __('Title &amp; Metas settings', 'wordpress-seo') . '</h3>' . '<p>' . __('This is where you set the titles and meta-information for all your post types, taxonomies, archives, special pages and for your homepage. The page is divided into different tabs. Make sure you check &#8217;em all out!', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Sitewide settings', 'wordpress-seo') . '</strong><br/>' . __('The first tab will show you site-wide settings for titles, normally you\'ll only need to change the Title Separator.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Templates and settings', 'wordpress-seo') . '</strong><br/>' . sprintf(__('Now click on the &#8216;%1$sPost Types%2$s&#8217;-tab, as this will be our example.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url(admin_url('admin.php?page=wpseo_titles#top#post_types')) . '">', '</a>') . '<br />' . __('The templates are built using variables. You can find all these variables in the help tab (in the top-right corner of the page). The settings allow you to set specific behavior for the post types.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Archives', 'wordpress-seo') . '</strong><br/>' . __('On the archives tab you can set templates for specific pages like author archives, search results and more.', 'wordpress-seo') . '<p><strong>' . __('Other', 'wordpress-seo') . '</strong><br/>' . __('On the Other tab you can change sitewide meta settings, like enable meta keywords.', 'wordpress-seo'), 'next_page' => 'social', 'prev_page' => 'dashboard'), 'social' => array('content' => '<h3>' . __('Social settings', 'wordpress-seo') . '</h3>' . '<p><strong>' . __('Facebook', 'wordpress-seo') . '</strong><br/>' . sprintf(__('On this tab you can enable the %1$sFacebook Open Graph%2$s functionality from this plugin, as well as assign a Facebook user or Application to be the admin of your site, so you can view the Facebook insights.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://yoast.com/facebook-open-graph-protocol/#utm_source=wpseo_social&utm_medium=wpseo_tour&utm_campaign=tour') . '">', '</a>') . '</p><p>' . __('The frontpage settings allow you to set meta-data for your homepage, whereas the default settings allow you to set a fallback for all posts/pages without images. ', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Twitter', 'wordpress-seo') . '</strong><br/>' . sprintf(__('With %1$sTwitter Cards%2$s, you can attach rich photos, videos and media experience to tweets that drive traffic to your website. Simply check the box, sign up for the service, and users who Tweet links to your content will have a &#8220;Card&#8221; added to the tweet that&#8217;s visible to all of their followers.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://yoast.com/twitter-cards/#utm_source=wpseo_social&utm_medium=wpseo_tour&utm_campaign=tour') . '">', '</a>') . '</p>' . '<p><strong>' . __('Pinterest', 'wordpress-seo') . '</strong><br/>' . __('On this tab you can verify your site with Pinterest and enter your Pinterest account.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Google+', 'wordpress-seo') . '</strong><br/>' . sprintf(__('This tab allows you to add specific post meta data for Google+. And if you have a Google+ page for your business, add that URL here and link it on your %1$sGoogle+%2$s page&#8217;s about page.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://plus.google.com/') . '">', '</a>') . '</p>' . '<p><strong>' . __('Other', 'wordpress-seo') . '</strong><br/>' . __('On this tab you can enter some more of your social accounts, mostly used for Google\'s Knowledge Graph.', 'wordpress-seo') . '</p>', 'next_page' => 'xml', 'prev_page' => 'titles'), 'xml' => array('content' => '<h3>' . __('XML Sitemaps', 'wordpress-seo') . '</h3>' . '<p><strong>' . __('What are XML sitemaps?', 'wordpress-seo') . '</strong><br/>' . __('A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs in the site. This allows search engines to crawl the site more intelligently.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('What does the plugin do with XML Sitemaps?', 'wordpress-seo') . '</strong><br/>' . __('This plugin adds XML sitemaps to your site. The sitemaps are automatically updated when you publish a new post, page or custom post and Google and Bing will be automatically notified.', 'wordpress-seo') . '</p><p>' . __('If you want to exclude certain post types and/or taxonomies, you can also set that on this page.', 'wordpress-seo') . '</p><p>' . __('Is your webserver low on memory? Decrease the entries per sitemap (default: 1000) to reduce load.', 'wordpress-seo') . '</p>', 'next_page' => 'advanced', 'prev_page' => 'social'), 'advanced' => array('content' => '<h3>' . __('Advanced Settings', 'wordpress-seo') . '</h3><p>' . __('All of the options on these tabs are for advanced users only, if you don&#8217;t know whether you should check any, don&#8217;t touch them.', 'wordpress-seo') . '</p>', 'next_page' => 'licenses', 'prev_page' => 'xml'), 'licenses' => array('content' => '<h3>' . __('Extensions and Licenses', 'wordpress-seo') . '</h3>' . '<p><strong>' . __('Extensions', 'wordpress-seo') . '</strong><br/>' . sprintf(__('The powerful functions of WordPress SEO can be extended with %1$sYoast premium plugins%2$s. These premium plugins require the installation of WordPress SEO or WordPress SEO Premium and add specific functionality. You can read all about the Yoast Premium Plugins %1$shere%2$s.', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://yoast.com/wordpress/plugins/#utm_source=wpseo_licenses&utm_medium=wpseo_tour&utm_campaign=tour') . '">', '</a>') . '</p>' . '<p><strong>' . __('Licenses', 'wordpress-seo') . '</strong><br/>' . __('Once you&#8217;ve purchased WordPress SEO Premium or any other premium Yoast plugin, you&#8217;ll have to enter a license key. You can do so on the Licenses-tab. Once you&#8217;ve activated your premium plugin, you can use all its powerful features.', 'wordpress-seo') . '</p>' . '<p><strong>' . __('Like this plugin?', 'wordpress-seo') . '</strong><br/>' . sprintf(__('So, we&#8217;ve come to the end of the tour. If you like the plugin, please %srate it 5 stars on WordPress.org%s!', 'wordpress-seo'), '<a target="_blank" href="https://wordpress.org/plugins/wordpress-seo/">', '</a>') . '</p>' . '<p>' . sprintf(__('Thank you for using our plugin and good luck with your SEO!<br/><br/>Best,<br/>Team Yoast - %1$sYoast.com%2$s', 'wordpress-seo'), '<a target="_blank" href="' . esc_url('https://yoast.com/#utm_source=wpseo_licenses&utm_medium=wpseo_tour&utm_campaign=tour') . '">', '</a>') . '</p>', 'prev_page' => 'advanced'));
        $page = filter_input(INPUT_GET, 'page');
        $page = str_replace('wpseo_', '', $page);
        $button_array = array('button1' => array('text' => __('Close', 'wordpress-seo'), 'function' => ''));
        $opt_arr = array();
        $id = '#wpseo-title';
        if ('admin.php' != $pagenow || !array_key_exists($page, $admin_pages)) {
            $id = 'li.toplevel_page_wpseo_dashboard';
            $content = '
				<h3>' . __('Congratulations!', 'wordpress-seo') . '</h3>
				<p>' . __('You&#8217;ve just installed WordPress SEO by Yoast! Click &#8220;Start Tour&#8221; to view a quick introduction of this plugin&#8217;s core functionality.', 'wordpress-seo') . '</p>';
            $opt_arr = array('content' => $content, 'position' => array('edge' => 'bottom', 'align' => 'center'));
            $button_array['button2']['text'] = __('Start Tour', 'wordpress-seo');
            $button_array['button2']['function'] = sprintf('document.location="%s";', admin_url('admin.php?page=wpseo_dashboard'));
        } else {
            if ('' != $page && in_array($page, array_keys($admin_pages))) {
                $align = is_rtl() ? 'left' : 'right';
                $default_position = array('edge' => 'top', 'align' => $align);
                $opt_arr = array('content' => $admin_pages[$page]['content'], 'position' => isset($admin_pages[$page]['position']) ? $admin_pages[$page]['position'] : $default_position, 'pointerWidth' => 450);
                if (isset($admin_pages[$page]['next_page'])) {
                    $button_array['button2'] = array('text' => __('Next', 'wordpress-seo'), 'function' => 'window.location="' . admin_url('admin.php?page=wpseo_' . $admin_pages[$page]['next_page']) . '";');
                }
                if (isset($admin_pages[$page]['prev_page'])) {
                    $button_array['button3'] = array('text' => __('Previous', 'wordpress-seo'), 'function' => 'window.location="' . admin_url('admin.php?page=wpseo_' . $admin_pages[$page]['prev_page']) . '";');
                }
            }
        }
        $this->print_scripts($id, $opt_arr, $button_array);
    }
开发者ID:HealthStaffTraining,项目名称:healthstafftraining,代码行数:35,代码来源:class-pointers.php


示例20: get_job_id_from_request

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP filter_input_array函数代码示例发布时间:2022-05-15
下一篇:
PHP filter_id函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap