本文整理汇总了PHP中edituser函数的典型用法代码示例。如果您正苦于以下问题:PHP edituser函数的具体用法?PHP edituser怎么用?PHP edituser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了edituser函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_admin
function show_admin($dir)
{
// Execute Admin Action
$pwd = ($GLOBALS["permissions"] & 2) == 2;
$admin = ($GLOBALS["permissions"] & 4) == 4;
if (!$GLOBALS["require_login"]) {
show_error($GLOBALS["error_msg"]["miscnofunc"]);
}
if (!$pwd && !$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
if (isset($GLOBALS['__GET']["action2"])) {
$action2 = $GLOBALS['__GET']["action2"];
} elseif (isset($GLOBALS['__POST']["action2"])) {
$action2 = $GLOBALS['__POST']["action2"];
} else {
$action2 = "";
}
switch ($action2) {
case "chpwd":
changepwd($dir);
break;
case "adduser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
adduser($dir);
break;
case "edituser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
edituser($dir);
break;
case "rmuser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
removeuser($dir);
break;
default:
admin($admin, $dir);
}
}
示例2: gethot
gethot();
} else {
if ($ask == "userinfo") {
getuserinfo();
} else {
if ($ask == "sendmsg") {
sendmsg();
} else {
if ($ask == "msg") {
msg();
} else {
if ($ask == "register") {
register();
} else {
if ($ask == "edituser") {
edituser();
} else {
if ($ask == "changepsd") {
changepsd();
} else {
if ($ask == "delete") {
del();
} else {
if ($ask == "image") {
uploadimage();
} else {
if ($ask == "file") {
uploadfile();
} else {
if ($ask == "lzl") {
lzl();
示例3: COM_applyFilter
if ($_CONF['allow_account_delete'] == 1 && $_USER['uid'] > 1) {
$accountId = COM_applyFilter($_POST['account_id']);
if (!empty($accountId)) {
$display .= deleteUserAccount($accountId);
} else {
$display = COM_refresh($_CONF['site_url'] . '/index.php');
}
} else {
$display = COM_refresh($_CONF['site_url'] . '/index.php');
}
break;
case 'plugin':
PLG_profileExtrasSave($_POST['plugin']);
$display = COM_refresh($_CONF['site_url'] . '/usersettings.php?msg=5');
break;
default:
// also if $mode == 'edit', 'preferences', or 'comments'
$display .= COM_siteHeader('menu', $LANG04[16]);
$display .= COM_showMessageFromParameter();
$display .= edituser();
$display .= COM_siteFooter();
break;
}
} else {
$display .= COM_siteHeader('menu');
$display .= COM_startBlock($LANG04[70] . '!');
$display .= '<br' . XHTML . '>' . $LANG04[71] . '<br' . XHTML . '><br' . XHTML . '>';
$display .= COM_endBlock();
$display .= COM_siteFooter();
}
COM_output($display);
示例4: elseif
} elseif ($do[0] == "monsters") {
monsters();
} elseif ($do[0] == "editmonster") {
editmonster($do[1]);
} elseif ($do[0] == "levels") {
levels();
} elseif ($do[0] == "editlevel") {
editlevel();
} elseif ($do[0] == "spells") {
spells();
} elseif ($do[0] == "editspell") {
editspell($do[1]);
} elseif ($do[0] == "users") {
users();
} elseif ($do[0] == "edituser") {
edituser($do[1]);
} elseif ($do[0] == "news") {
addnews();
}
} else {
donothing();
}
function donothing()
{
$page = "Welcome to the Dragon Knight Administration section. Use the links on the left bar to control and edit various elements of the game.<br /><br />Please note that the control panel has been created mostly as a shortcut for certain individual settings. It is meant for use primarily with editing one thing at a time. If you need to completely replace an entire table (say, to replace all stock monsters with your own new ones), it is suggested that you use a more in-depth database tool such as <a href=\"http://www.phpmyadmin.net\" target=\"_new\">phpMyAdmin</a>. Also, you may want to have a copy of the Dragon Knight development kit, available from the <a href=\"http://dragon.se7enet.com/dev.php\">Dragon Knight homepage</a>.<br /><br />Also, you should be aware that certain portions of the DK code are dependent on the formatting of certain database results (for example, the special attributes on item drops). While I have attempted to point these out throughout the admin script, you should definitely pay attention and be careful when editing some fields, because mistakes in the database content may result in script errors or your game breaking completely.";
admindisplay($page, "Admin Home");
}
function main()
{
if (isset($_POST["submit"])) {
extract($_POST);
示例5: tp
<?php
if (tp('verif') == 1) {
model::load('admin', 'editcompteuser');
$iduser = tp('iduser');
if (!edituser($iduser, tp('firstname'), tp('lastname'), tp('password'), tp('username'), tp('service'), tp('agence'), tp('tel'), tp('email'))) {
exit("2");
} else {
exit("1");
}
} else {
view::load('admin', 'editcompteuser');
}
示例6: sendmsg
sendmsg($con, $token, $to, $text);
} else {
if ($ask == "msg") {
msg($con, $token, $type);
} else {
if ($ask == "changepsd") {
changepsd($con, $token);
} else {
if ($ask == "currentUserInfo") {
currentUserInfo($con, $token);
} else {
if ($ask == "search") {
searchByKeyword($con, $keyword, $token, $type, $bid);
} else {
if ($ask == "edituser") {
edituser($con, $token, $ip);
} else {
if ($ask == "online") {
viewonline($con);
} else {
if ($ask == "update") {
updatetokentime($con, $token, $ip);
} else {
if ($ask == "post") {
post($con, $token, $bid, $ip, $attachs);
} else {
if ($ask == "reply") {
reply($con, $token, $bid, $tid, $ip, $attachs);
} else {
if ($ask == "edit") {
edit($con, $token, $bid, $tid, $pid, $ip, $attachs);
示例7:
<?php
if (tp('verif') == 2) {
model::load('admin', 'edituser');
if (!edituser(tp('firstname'), tp('lastname'), tp('service'), tp('tel'), tp('id'), tp('signid'), tp('agence'))) {
$reponse = 0;
} else {
$reponse = 1;
}
echo $reponse;
} else {
view::load('admin', 'edituser');
}
示例8: saveuser
if ($permmakeuser == 1) {
saveuser();
} else {
permerror("You do not currently have permission to create new users.\n");
}
break;
case "eduser":
if ($permedituser == 1) {
eduser($_REQUEST['muid']);
} else {
permerror("You do not currently have permission to edit users.\n");
}
break;
case "edituser":
if ($permedituser == 1) {
edituser($_REQUEST['muid']);
} else {
permerror("You do not currently have permission to edit users.\n");
}
break;
case "deluser":
if ($permdeleteuser == 1) {
deluser($_REQUEST['muid']);
} else {
permerror("You do not currently have permission to delete users.\n");
}
break;
case "deleteuser":
if ($permdeleteuser == 1) {
deleteuser($_REQUEST['muid']);
} else {
示例9: showfooter
<input type="hidden" name="mode" value="promoteConf" /><input type="hidden" name="password" value="' . $upass . '" /></form></center>';
showfooter();
}
}
}
}
} else {
if (isset($_POST['mode'])) {
if ($_POST['mode'] == 'edit') {
$pagetitle .= ' ' . _BC_DELIM . ' ' . _EDITUSER;
showheader();
if (!($memberinfo = getusrdata($_POST['username']))) {
echo _NOINFOFOR . ' <strong>' . $_POST['username'] . '</strong>';
} else {
require 'modules/Your_Account/edit_profile.php';
edituser($memberinfo);
}
showfooter();
} else {
if ($_POST['mode'] == 'addConf') {
if ($CPG_SESS['admin']['page'] != 'users') {
cpg_error(_ERROR_BAD_LINK, _SEC_ERROR);
}
$username = Fix_Quotes($_POST['username'], 1);
$email = Fix_Quotes($_POST['email'], 1);
$password = Fix_Quotes($_POST['password'], 1);
if ($password != Fix_Quotes($_POST['password_confirm'], 1)) {
cpg_error(_PASSDIFFERENT);
} else {
if (strlen($password) < $MAIN_CFG['member']['minpass'] && $password != '') {
cpg_error(_YOUPASSMUSTBE . ' <b>' . $MAIN_CFG['member']['minpass'] . '</b> ' . _CHARLONG);
示例10: cryptage
<?php
if (tp('verif') == 1) {
$service = cryptage($_SESSION['service'], 0);
$usrid = $_SESSION['userid'];
model::load('admin', 'editcompte');
if (tp('password') != null) {
if (!$db->Query("SELECT * FROM users_sys where id={$usrid} and pass='" . md5(tp('passwordi')) . "'")) {
$db->Kill('Error1');
}
if ($db->RowCount() > 0) {
if (!edituser(tp('firstname'), tp('lastname'), tp('password'), tp('tel'), tp('email'))) {
exit("2");
} else {
exit("1");
}
} else {
exit("3");
}
} else {
if (!edituser(tp('firstname'), tp('lastname'), tp('password'), tp('tel'), tp('email'))) {
exit("2");
} else {
exit("1");
}
}
} else {
view::load('admin', 'editcompte');
}
示例11: detailuser
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading"><svg class="glyph stroked male user "><use xlink:href="#stroked-male-user"/></svg>Edit Data Pengguna</div>
<div class="panel-body">
<div class="col-md-6">
<form class="form-horizontal" action="" method="post">
<fieldset>
<?php
include "tambah-user-exe.php";
if (isset($_GET['id']) && !empty($_GET['id'])) {
$iduser = $_GET['id'];
$detail = detailuser($conn, $iduser);
}
if (isset($_POST['edit'])) {
edituser($conn);
}
?>
<div class="form-group">
<label class="col-md-4" "control-label" for="namapengguna">Nama Pengguna</label>
<div class="col-md-8">
<input type="text" name="nmpengguna" class="form-control" placeholder="Nama Pengguna" value="<?php
echo $detail[1];
?>
">
<input type="hidden" name="id" id="id" value="<?php
echo $detail[0];
?>
">
</div>
示例12: edituser
<?php
include './config.php';
include './auth.php';
$id = $_GET['id'];
$editProducts = edituser($id);
if ($_REQUEST['edi_prod'] == '1') {
extract($_POST);
$sql = "UPDATE sohorepro_customers\n\t\t\tSET cus_fname = '" . mysql_real_escape_string($user_fname) . "',\n cus_lname = '" . mysql_real_escape_string($user_lname) . "',\n cus_email = '" . mysql_real_escape_string($user_email) . "', \n\t\t\t\tcus_status = '" . $status . "' WHERE cus_id = " . $id . " ";
$sql_result = mysql_query($sql);
if ($sql_result) {
$result = "success";
} else {
$result = "failure";
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Soho-repro</title>
<link href="style/style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
示例13: edituser
<!DOCTYPE html>
<?php
require "functions/logincheck.php";
require "functions/cmum.php";
if (isset($_POST["uid"]) && $_POST["uid"] != "") {
if (!isset($_POST["profiles"])) {
$profiles = "";
} else {
$profiles = $_POST["profiles"];
}
$status = edituser($_POST["uid"], $_POST["user"], $_POST["password"], $_POST["displayname"], $_POST["email"], $_POST["ipmask"], $_POST["maxconn"], $_POST["ecmrate"], $_POST["customvalues"], $_POST["usrgroup"], $_POST["admin"], $_POST["enabled"], $_POST["mapexclude"], $_POST["debug"], $_POST["startdate"], $_POST["expiredate"], $profiles, $_POST["boxtype"], $_POST["macaddress"], $_POST["serialnumber"], $_POST["comment"]);
if ($status == "0") {
header("Location: users.php?edit=1");
exit;
} elseif ($status == "1") {
$notice = "toastr.error('You must enter a username and a password');";
} elseif ($status == "2") {
$notice = "toastr.error('Username already exists');";
}
}
if (!isset($_GET["uid"]) || $_GET["uid"] == "") {
header("Location: users.php");
exit;
}
$counters = explode(";", counter());
$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
if (mysqli_connect_errno()) {
errorpage("MYSQL DATABASE ERROR", mysqli_connect_error(), $charset, CMUM_TITLE, $_SERVER["REQUEST_URI"], CMUM_VERSION, CMUM_BUILD, CMUM_MOD);
exit;
}
if ($_SESSION[$secretkey . "userlvl"] == "0" || $_SESSION[$secretkey . "userlvl"] == "1") {
示例14: logrequest
logrequest($userid, $action);
checksession();
checkprivileges($userid);
getuserstats();
break;
case "usagestats":
logrequest($userid, $action);
checksession();
checkprivileges($userid);
getusagestats();
break;
case "edituser":
logrequest($userid, $action);
checksession();
checkprivileges($userid);
edituser($_GET["edituserid"]);
break;
case "saveuser":
logrequest($userid, $action);
checksession();
checkprivileges($userid);
saveuser($_GET["edituserid"], $_GET["username"], $_GET["email"], $_GET["phone"], $_GET["privileges"], $_GET["limit"]);
break;
case "addcredit":
logrequest($userid, $action);
checksession();
checkprivileges($userid);
addcredit($_GET["edituserid"], $_GET["creditmultiplier"]);
break;
case "trips":
logrequest($userid, $action);
示例15: show_admin
function show_admin($dir)
{
$admin = permissions_grant(NULL, NULL, "admin");
if (!login_is_user_logged_in()) {
show_error($GLOBALS["error_msg"]["miscnofunc"]);
}
if (!$admin && !permissions_grant(NULL, NULL, "password")) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
if (isset($GLOBALS['__GET']["action2"])) {
$action2 = $GLOBALS['__GET']["action2"];
} elseif (isset($GLOBALS['__POST']["action2"])) {
$action2 = $GLOBALS['__POST']["action2"];
} else {
$action2 = "";
}
switch ($action2) {
case "chpwd":
changepwd($dir);
break;
case "adduser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
adduser($dir);
break;
case "edituser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
edituser($dir);
break;
case "rmuser":
if (!$admin) {
show_error($GLOBALS["error_msg"]["accessfunc"]);
}
removeuser($dir);
break;
default:
admin($admin, $dir);
}
}