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