本文整理汇总了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";