本文整理匯總了PHP中config::get_domain_path方法的典型用法代碼示例。如果您正苦於以下問題:PHP config::get_domain_path方法的具體用法?PHP config::get_domain_path怎麽用?PHP config::get_domain_path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類config
的用法示例。
在下文中一共展示了config::get_domain_path方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: roundedBox
function roundedBox()
{
$objconfig = new config();
$this->getDomainPath = $objconfig->get_domain_path();
$this->color = "";
$this->heading = "";
}
示例2: photo
function photo($files)
{
$objConfig = new config();
$objCommon = new common();
$this->domainPath = $objConfig->get_domain_path();
$this->fullPath = $objConfig->get_full_domain_path();
$this->uploadDir = $objConfig->get_upload_dir();
$this->imageQuality = $objCommon->getConfigValue("imageQuality");
$this->files = $files;
$this->description = "";
$this->fileType = "";
$this->title = "";
$this->tags = "";
}
示例3: checkReferrer
function checkReferrer($checkstr)
{
$objconfig = new config();
if ($_SERVER['HTTP_REFERER'] == $objconfig->get_domain_path() . $checkstr) {
return true;
} else {
return false;
}
}
示例4: config
<?php
include "config.class.php";
$objconfig = new config();
header("Location: " . $objconfig->get_domain_path());
示例5: getPhotoTags
function getPhotoTags($pid)
{
$sql = "select * from tags_photos where photos_id='" . $pid . "'";
$relatedtags = $this->mysql->getdata($sql);
$objconfig = new config();
$domain = $objconfig->get_domain_path() . "tag/photos/";
foreach ($relatedtags as $data) {
$str .= "<a href='tags/photo_tags.php?type=photo&tag=" . $data['tag'] . "'>" . $data['tag'] . "</a> ";
}
return $str;
}
示例6: resendVerification
function resendVerification()
{
$verificationlink = substr(md5($ar['username'] . $ar['email']), 1, 25);
$sql = "update `users` set activation='" . $verificationlink . "' where userid='" . $_SESSION['vibes_userid'] . "'";
$this->query($sql);
$str = $objcommon->getTemplateFormat('emailverification');
$objconfig = new config();
$objuser = new user();
$to['name'] = $_SESSION['vibes_username'];
$to['email'] = $objuser->getUserEmailFromUserId($_SESSION['vibes_userid']);
$from['name'] = $objcommon->getConfigValue('email_verification_from_name');
$from['email'] = $objcommon->getConfigValue('email_verification_from_email');
$subject = $objcommon->getConfigValue('email_verification_subject');
$identifier['sitename'] = $objcommon->getConfigValue('sitename');
$identifier['link'] = '<a href="' . $objconfig->get_domain_path() . 'emailverification.php?linkid=' . $verificationlink . '">' . $objconfig->get_domain_path() . 'emailverification.php?linkid=' . $activationlink . '</a>';
$objemail = new email();
$objemail->sendMail($to, $from, $subject, $body, $identifier);
return true;
//echo $identifier['link'];
// exit();
}