本文整理汇总了PHP中url::get_referer方法的典型用法代码示例。如果您正苦于以下问题:PHP url::get_referer方法的具体用法?PHP url::get_referer怎么用?PHP url::get_referer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类url
的用法示例。
在下文中一共展示了url::get_referer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: IN
//echo $sql;exit;
$dbu->query($sql, $rsbrowse, $nr_browse);
include "tmp_browse.php";
exit;
}
/*******************************************************************************
* Action : del
*******************************************************************************/
if ($act == "delete") {
$admlib->validate('tour_del');
if (!empty($_REQUEST[item])) {
$sql = "DELETE FROM " . $app['table']["destinasi_bahasa"] . " WHERE `id` IN (" . $admlib->item_delete($_REQUEST[item]) . ")";
$dbu->qry($sql);
$_SESSION['msg'] = "data destinasi_bahasa yang terpilih berhasil dihapus ....";
$_SESSION['alt'] = "danger";
header("location: " . $urlx->get_referer());
}
exit;
}
/*******************************************************************************
* Action : single delete
*******************************************************************************/
if ($act == "s_delete") {
//print_r($_REQUEST);exit;
if (!empty($p_id)) {
$sql = "DELETE FROM " . $app['table']["destinasi_bahasa"] . " WHERE id = '" . $p_id . "'";
//echo $sql;exit;
$dbu->qry($sql);
$_SESSION['msg'] = "data destinasi_bahasa berhasil dihapus ....";
$_SESSION['alt'] = "warning";
header("location: index.php?act=browse");
示例2: header
$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";
} catch (Exception $e) {
示例3:
?>
<option value="<?php
echo $kategori[id];
?>
" ><?php
echo $kategori[kategori];
?>
</option>
<?php
}
?>
</select>
</label>
<input type="hidden" name="act">
<input type="hidden" name="referer" value="<?php
echo $urlx->get_referer();
?>
">
<input type="button" class="begin_filter" value="Begin Filter" id="b_filter" onClick="valid(this,'desfilter')" />
</form>
</div>
</div>
</div>
</div> <!-- .search_destination -->
<?php
echo $outnya;
?>
<!-- .location_destination -->
</div>