本文整理汇总了PHP中regex_standard函数的典型用法代码示例。如果您正苦于以下问题:PHP regex_standard函数的具体用法?PHP regex_standard怎么用?PHP regex_standard使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了regex_standard函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: regex_standard
<?
include "../../config/config.php";
include "_info_.php";
include "../../login_check.php";
include "../../functions.php";
include "includes/options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST["newdata"], "msg.php", $regex_extra);
regex_standard($_GET["logfile"], "msg.php", $regex_extra);
regex_standard($_GET["action"], "msg.php", $regex_extra);
regex_standard($_GET["tempname"], "msg.php", $regex_extra);
regex_standard($_POST["proxy"], "msg.php", $regex_extra);
}
$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$proxy = $_POST["proxy"];
// DELETE LOG
if ($logfile != "" and $action == "delete") {
$exec = "$bin_rm ".$mod_logs_history.$logfile.".log";
exec_fruitywifi($exec);
}
// SET MODE
示例2: regex_standard
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<?
//include "../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["file"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($_GET["page"], "../msg.php", $regex_extra);
regex_standard($io_action, "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
if($service == "dnsspoof") {
if ($action == "start") {
// COPY LOG
$exec = "$bin_cp $mod_logs $mod_logs_history/".gmdate("Ymd-H-i-s").".log";
//exec("$bin_danger \"$exec\"", $dump); //DEPRECATED
exec_fruitywifi($exec);
$exec = "$bin_echo '' > $mod_logs";
示例3: regex_standard
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<!DOCTYPE html>
<?php
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["module"], "../msg.php", $regex_extra);
}
$module = $_GET['module'];
?>
<m-eta http-equiv="refresh" content="1; url=install.php?module=<?php
echo $module;
?>
">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="css/jquery-ui.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="../style.css" />
<div class="rounded-top" align="left"> <b>Installing...</b> </div>
<div id="log" class="module-content" style="font-family: courier; overflow: auto; height:500px;"></div>
示例4: regex_standard
//},5000);
}
</script>
<br>
<div style="b-order:1px dotted; w-idth: 410px; display:inline-block; vertical-align: top;">
<?
include "functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET['service'], "msg.php", $regex_extra);
regex_standard($_GET['action'], "msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
?>
<?
function addDivs($service, $alias, $edit, $path, $mod_logs_panel)
{
if ($mod_logs_panel == "disabled") {
$visibility = "visibility:hidden;";
} else {
$visibility = "";
}
示例5: regex_standard
<br>
<?php
include "../../login_check.php";
include "../../config/config.php";
include "_info_.php";
include "../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST["newdata"], "msg.php", $regex_extra);
regex_standard($_GET["logfile"], "msg.php", $regex_extra);
regex_standard($_GET["action"], "msg.php", $regex_extra);
regex_standard($_POST["service"], "msg.php", $regex_extra);
regex_standard($_POST["macaddress"], "msg.php", $regex_extra);
regex_standard($_POST["ss_iface"], "msg.php", $regex_extra);
}
$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$service = $_POST["service"];
$macaddress = $_POST["macaddress"];
$check_time = $_POST["check_time"];
$ss_iface = $_POST["ss_iface"];
// DELETE LOG
if ($logfile != "" and $action == "delete") {
$exec = "{$bin_rm} " . $mod_logs_history . $logfile . ".log";
exec_fruitywifi($exec);
}
// SET MODE
示例6: regex_standard
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//include "../_info_.php";
include "../config/config.php";
include "../functions.php";
//$bin_danger = "/usr/share/fruitywifi/bin/danger"; //DEPRECATED
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST['type'], "../msg.php", $regex_extra);
regex_standard($_POST['action'], "../msg.php", $regex_extra);
regex_standard($_POST['mod_name'], "../msg.php", $regex_extra);
}
$type = $_POST['type'];
$action = $_POST['action'];
$newdata = html_entity_decode(trim($_POST["newdata"]));
$newdata = base64_encode($newdata);
$mod_name = $_POST['mod_name'];
// ngrep options
if ($type == "save_show" and $mod_name != "") {
if ($action != "checked") {
$exec = "/bin/sed -i 's/^\\\$mod_panel=.*/\\\$mod_panel=\\\"show\\\";/g' {$mod_name}/_info_.php";
//exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
exec_fruitywifi($exec);
} else {
$exec = "/bin/sed -i 's/^\\\$mod_panel=.*/\\\$mod_panel=\\\"\\\";/g' {$mod_name}/_info_.php";
//exec("$bin_danger \"" . $exec . "\"", $output); //DEPRECATED
示例7: regex_standard
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";
include "options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
}
$type = $_POST['type'];
$io_in_iface = $_POST['io_in_iface'];
$io_in_ip = $_POST['io_in_ip'];
$hostapd_ssid = $_POST['hostapd_ssid'];
$hostapd_wpa_passphrase = $_POST['hostapd_wpa_passphrase'];
$hostapd_secure = $_POST['hostapd_secure'];
$io_mode = $_POST["io_mode"];
$ap_mode = $_POST["ap_mode"];
$io_in_iface = $_POST["io_in_iface"];
$io_in_set = $_POST["io_in_set"];
$io_in_ip = $_POST["io_in_ip"];
$io_in_mask = $_POST["io_in_mask"];
$io_in_gw = $_POST["io_in_gw"];
$io_out_iface = $_POST["io_out_iface"];
示例8: regex_standard
regex_standard($_POST["iface"], "msg.php", $regex_extra);
regex_standard($_POST["io_out_iface"], "msg.php", $regex_extra);
regex_standard($_POST["io_in_iface"], "msg.php", $regex_extra);
regex_standard($_POST["iface_supplicant"], "msg.php", $regex_extra);
regex_standard($_POST["newSSID"], "msg.php", $regex_extra);
regex_standard($_POST["hostapd_secure"], "msg.php", $regex_extra);
regex_standard($_POST["hostapd_wpa_passphrase"], "msg.php", $regex_extra);
regex_standard($_POST["supplicant_ssid"], "msg.php", $regex_extra);
regex_standard($_POST["supplicant_psk"], "msg.php", $regex_extra);
regex_standard($_POST["pass_old"], "msg.php", $regex_extra);
regex_standard($_POST["pass_new"], "msg.php", $regex_extra);
regex_standard($_POST["pass_new_repeat"], "msg.php", $regex_extra);
regex_standard($_GET["service"], "msg.php", $regex_extra);
regex_standard($_GET["action"], "msg.php", $regex_extra);
//regex_standard($_POST["in_out_mode"], "msg.php", $regex_extra);
regex_standard($_POST["api_token"], "msg.php", $regex_extra);
}
$filename = $_POST['filename'];
$newdata = $_POST['newdata'];
/*
if ($newdata != "") { $newdata = ereg_replace(13, "", $newdata);
$fw = fopen($filename, 'w') or die('Could not open file.');
$fb = fwrite($fw,stripslashes($newdata)) or die('Could not write to file');
fclose($fw);
$fileMessage = $strings["config-updated"]." " . $filename . "<br /><br />";
}
*/
?>
<?php
示例9: regex_standard
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// nmcli dev wifi connect 'iPhone' password 'test.123456' name nmcli_raspberry_wifi // CREATE
// nmcli -n d disconnect iface wlan0 // DISCONNECT
// nmcli --nocheck d |grep -iEe 'wlan0.+disconnected' // CHECK connection
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["file"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($iface_supplicant, "../msg.php", $regex_extra);
regex_standard($supplicant_ssid, "../msg.php", $regex_extra);
regex_standard($supplicant_psk, "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
if ($service == "supplicant") {
if ($action == "start") {
$exec = "/usr/bin/killall dhclient";
exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
$exec = "/usr/bin/killall wpa_supplicant";
exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
$exec = "/sbin/ifconfig {$iface_supplicant} down";
exec("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"");
#$exec = "/usr/bin/macchanger -A $iface_supplicant";
#system("/usr/share/FruityWifi/bin/danger \"" . $exec . "\"" );
$exec = "/sbin/ifconfig {$iface_supplicant} up";
示例10: regex_standard
<?
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";
include "options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["file"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($_GET["install"], "../msg.php", $regex_extra);
regex_standard($_GET["plugin"], "../msg.php", $regex_extra);
regex_standard($_POST["upload"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
$plugin = $_GET['plugin'];
$upload = $_POST['upload'];
if($service != "") {
if ($action == "start") {
// COPY LOG
$exec = "$bin_mv $mod_logs $mod_logs_history/".gmdate("Ymd-H-i-s").".log";
exec_fruitywifi($exec);
示例11: regex_standard
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../login_check.php";
include "../config/config.php";
include "../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($iface_wifi, "../msg.php", $regex_extra);
regex_standard($iface_internet, "../msg.php", $regex_extra);
}
#echo $iface_internet;
#echo $iface_wifi;
$service = $_GET['service'];
$action = $_GET['action'];
$bin_danger = "/usr/share/FruityWifi/bin/danger";
$bin_killall = "/usr/bin/killall";
#sed -i 's/interface=.*/interface=wlan0/g' /usr/share/FruityWifi/conf/dnsmasq.conf
if ($service == "wireless") {
if ($action == "start") {
//$internet_interface="eth0";
//$ap_interface="wlan0";
//Verifies if karma-hostapd is installed
/*
if (file_exists("/usr/sbin/karma-hostapd")) {
示例12: regex_standard
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($_GET["page"], "../msg.php", $regex_extra);
regex_standard($_GET["install"], "../msg.php", $regex_extra);
regex_standard($_GET["worker"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
$worker = $_GET['worker'];
function setHostapdOption($option, $value, $hostapd_config_file)
{
global $bin_sed;
$is_present = exec("grep -iEe '^#{$option}=' {$hostapd_config_file}");
if ($is_present != "") {
$exec = "{$bin_sed} -i 's/#{$option}=.*/{$option}={$value}/g' {$hostapd_config_file}";
exec_fruitywifi($exec);
} else {
$is_present = exec("grep -iEe '^{$option}=' {$hostapd_config_file}");
示例13: regex_standard
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../config/config.php";
include "../_info_.php";
include "../../../login_check.php";
include "../../../functions.php";
include "options_config.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST['type'], "../../../msg.php", $regex_extra);
regex_standard($_POST['bluepand_mac'], "../../../msg.php", $regex_extra);
regex_standard($_POST['bluepand_keypass'], "../../../msg.php", $regex_extra);
}
$type = $_POST['type'];
$bluepand_mac = $_POST["bluepand_mac"];
$bluepand_keypass = $_POST["bluepand_keypass"];
if ($type == "settings") {
$exec = "/bin/sed -i 's/bluepand_mac.*/bluepand_mac = \\\"" . $bluepand_mac . "\\\";/g' options_config.php";
$output = exec_fruitywifi($exec);
$exec = "/bin/sed -i 's/bluepand_keypass.*/bluepand_keypass = \\\"" . $bluepand_keypass . "\\\";/g' options_config.php";
$output = exec_fruitywifi($exec);
header('Location: ../index.php?tab=0');
exit;
}
header('Location: ../index.php');
示例14: regex_standard
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
include "../../../login_check.php";
include "../../../config/config.php";
include "../_info_.php";
include "../../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_GET["service"], "../msg.php", $regex_extra);
regex_standard($_GET["action"], "../msg.php", $regex_extra);
regex_standard($_GET["page"], "../msg.php", $regex_extra);
regex_standard($_GET["install"], "../msg.php", $regex_extra);
}
$service = $_GET['service'];
$action = $_GET['action'];
$page = $_GET['page'];
$install = $_GET['install'];
if ($service != "") {
if ($action == "start") {
// COPY LOG
if (0 < filesize($mod_logs)) {
$exec = "{$bin_cp} {$mod_logs} {$mod_logs_history}/" . gmdate("Ymd-H-i-s") . ".log";
//exec("$bin_danger \"$exec\"" ); //DEPRECATED
exec_fruitywifi($exec);
$exec = "{$bin_echo} '' > {$mod_logs}";
//exec("$bin_danger \"$exec\"" ); //DEPRECATED
exec_fruitywifi($exec);
示例15: regex_standard
include "../menu.php";
?>
<br>
<?php
include "../../login_check.php";
include "../../config/config.php";
include "_info_.php";
include "../../functions.php";
// Checking POST & GET variables...
if ($regex == 1) {
regex_standard($_POST["newdata"], "msg.php", $regex_extra);
regex_standard($_GET["logfile"], "msg.php", $regex_extra);
regex_standard($_GET["action"], "msg.php", $regex_extra);
regex_standard($_POST["service"], "msg.php", $regex_extra);
}
$newdata = $_POST['newdata'];
$logfile = $_GET["logfile"];
$action = $_GET["action"];
$tempname = $_GET["tempname"];
$service = $_POST["service"];
// DELETE LOG
if ($logfile != "" and $action == "delete") {
$exec = "{$bin_rm} " . $mod_logs_history . $logfile . ".log";
//exec("$bin_danger \"$exec\"", $dump); //DEPRECATED
exec_fruitywifi($exec);
}
?>
<div class="rounded-top" align="left"> <b><?php