當前位置: 首頁>>代碼示例>>PHP>>正文


PHP app::serialize64方法代碼示例

本文整理匯總了PHP中app::serialize64方法的典型用法代碼示例。如果您正苦於以下問題:PHP app::serialize64方法的具體用法?PHP app::serialize64怎麽用?PHP app::serialize64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在app的用法示例。


在下文中一共展示了app::serialize64方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: app

 function serialize_form()
 {
     $appx = new app();
     if ($_SERVER['REQUEST_METHOD'] == 'GET') {
         $_SESSION['form_value'] = $appx->serialize64($_GET);
     } else {
         $_SESSION['form_value'] = $appx->serialize64($_POST);
     }
 }
開發者ID:salomay,項目名稱:refreshin,代碼行數:9,代碼來源:form.php

示例2: header

 $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;
     } else {
         //echo "masuk jeh nang kene";exit;
         $msgx->set_msg($app[lang][error]['invalid_login']);
         $msgx->build_msg();
         header("location: index.php");
         exit;
     }
 } else {
     $msgx->set_msg($app[lang][error]['invalid_login']);
     $msgx->build_msg();
     header("location: index.php");
     exit;
 }
開發者ID:salomay,項目名稱:refreshin,代碼行數:31,代碼來源:index.php

示例3: catch

                            break;
                    }
                }
                $imgx->thumbnail(80, 80);
                $imgx->save($app['data_path'] . "/pengguna/avatar/avatar_" . $id . ".jpg");
                $data['avatar'] = "avatar_" . $id . ".jpg";
            } catch (Exception $e) {
                $_SESSION['msg'] = "Avatar Failed To Upload ....";
                $_SESSION['alt'] = "warning";
                header("location: " . $urlx->get_referer());
                exit;
            }
        }
        if ($p_id == $app['me']['id']) {
            $app['me']['id'] = $p_username;
        }
        $appx->mq_encode('p_username,p_name');
        $sql = "update " . $app['table']['pengguna'] . "\n\t\t\t\tset nama = '{$p_name}', \n\t\t\t\t    aplikasi = '{$application}',\n\t\t\t\t    username = '{$p_username}',\n\t\t\t\t\temail = '{$p_email}',\n\t\t\t\t\tavatar  = '{$data['avatar']}',\n\t\t\t\t\tdibuat_oleh = '" . $app['me']['id'] . "',\n\t\t\t\t\ttgl_modif = now()\n\t\t\t\twhere id = '{$p_id}'";
        // echo $sql;exit;
        $dbu->qry($sql);
        ## am i updated ? if yes then update the session
        if ($p_id == $app['me']['id']) {
            $user = $dbu->get_record("pengguna", "id", $p_id);
            $_SESSION['adminsession'] = $appx->serialize64($user);
        }
        $_SESSION['msg'] = "Data User Berhasil Di Update ....";
        $_SESSION['alt'] = "success";
        header("location: " . $urlx->get_referer());
        exit;
    }
}
開發者ID:salomay,項目名稱:refreshin,代碼行數:31,代碼來源:index.php


注:本文中的app::serialize64方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。