本文整理匯總了PHP中msg::build_msg方法的典型用法代碼示例。如果您正苦於以下問題:PHP msg::build_msg方法的具體用法?PHP msg::build_msg怎麽用?PHP msg::build_msg使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類msg
的用法示例。
在下文中一共展示了msg::build_msg方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
header("location: {$app['webmin']}/index.php?act=member");
} else {
include "dsp_login.php";
}
exit;
}
/*******************************************************************************
* login
* gambaran : validasi login
*******************************************************************************/
if ($act == "login") {
$formix->init();
$formix->serialize_form();
$formix->validate('', 'p_uname,p_pwdx');
if ($formix->is_error()) {
$msgx->build_msg();
header("location: index.php");
exit;
}
if ($dbu->anti_sql_injection($_POST['p_uname']) and $dbu->anti_sql_injection($_POST['p_uname'])) {
// lakukan proses login
$passwordhash = md5(serialize($p_pwdx));
$sql = "select *\n\t\t\t\tfrom " . $app['table']['pengguna'] . "\n\t\t\t\twhere username = '{$p_uname}'\n\t\t\t\t\t and password = '{$passwordhash}' and status = 'aktif'\n\t\t\t\tlimit 1";
$dbu->query($sql, $rs['login'], $nr['login']);
//echo $nr['login'];exit;
if ($nr['login']) {
$formix->reset();
// $_SESSION['inline_edit'] = "on";
$_SESSION['adminsession'] = $appx->serialize64($dbu->fetch($rs['login']));
header("location: " . $app['webmin'] . "/index.php?act=home");
exit;
示例2: header
if ($act == "update") {
$admlib->validate('sett_edit,sett_add');
$formix->init();
if ($step == "1") {
$admlib->set_aktip("sett_configbhs");
$config = $dbu->get_record("konfig", "id", 1);
$form = $config;
$formix->populate($form);
include "tmp_config.php";
exit;
}
if ($step == "2") {
$formix->serialize_form();
$formix->validate('', 'p_judul,p_judul_cms,p_domain');
if ($formix->is_error()) {
$msgx->build_msg();
header("location: index.php?act=update&error=1&referer=" . $urlx->get_referer());
exit;
}
$data = $dbu->get_record("konfig", "id", 1);
$id = rand(1, 999) . date("dmYHis");
$imgx = new SimpleImage();
if ($p_logo_cms_size > 0) {
@unlink($app['data_path'] . "/konfig/logo/{$data['logo_cms']}");
$data['logo_cms'] = "";
try {
$src_img = $_FILES["p_logo_cms"]['tmp_name'];
## THUMB ###############
$imgx->load($src_img);
$imgx->save($app['data_path'] . "/konfig/logo/logo_cms_" . $id . ".png");
$data['logo_cms'] = "logo_cms_" . $id . ".png";