本文整理匯總了PHP中common::getConfigValue方法的典型用法代碼示例。如果您正苦於以下問題:PHP common::getConfigValue方法的具體用法?PHP common::getConfigValue怎麽用?PHP common::getConfigValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類common
的用法示例。
在下文中一共展示了common::getConfigValue方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: photo
function photo()
{
$objConfig = new config();
$objCommon = new common();
$this->domainPath = "http://" . $_SERVER['HTTP_HOST'] . "/";
$this->fullPath = $_SERVER['DOCUMENT_ROOT'] . "/";
$this->uploadDir = $_SERVER['DOCUMENT_ROOT'] . "/userimages/";
$this->imageQuality = $objCommon->getConfigValue("imageQuality");
$this->error = "";
$this->mysql = new mysql();
}
示例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: unset
echo "<td></tr>";
}
?>
<tr>
<th>Upload Image File</th>
<td><?php
unset($_SESSION['photofilename']);
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/flashupload.class.php";
$uploadObj = new flashUpload('flashUpload');
$uploadObj->redirectLink = "javascript:submitFormOnFloat(document.forms['frmPostRentOrHire']);";
$uploadObj->uploadPath = "http://" . $_SERVER['HTTP_HOST'] . "/ajax/rentorhire/editpostrentorhire.php";
$uploadObj->filetypedesc = "Image files";
$uploadObj->vldnoblank = false;
$objCommon = new common();
$uploadObj->maxfilesize = $objCommon->getConfigValue("max_photo_upload_size");
$uploadObj->writeCode();
?>
</td>
</tr>
</table>
<div class="lineBreakBig"></div>
<center><input type="submit" value="SUBMIT" class="bigButton width180"></center>
<div class="lineBreakBig"></div>
</form>
</div>
<!--<script>loadAjax('/ajax/project/subcategory.php?id=1','div_subcategory'); </script>
<script>loadAjax('/ajax/rentorhire/subcategory.php?id=1','div_subcategoryproduct'); </script>-->
<?php
} else {
示例4: common
$uploadObj->redirectLink = "javascript:submitFormOnFloat(document.forms['frmPostProject']);";
$uploadObj->uploadPath = "http://" . $_SERVER['HTTP_HOST'] . "/ajax/project/postproject.php";
$uploadObj->filetypedesc = "All files";
$uploadObj->vldnoblank = false;
$objCommon = new common();
$uploadObj->maxfilesize = $objCommon->getConfigValue("max_file_upload_size");
$uploadObj->writeCode();
?>
</td>
</tr>
<tr>
<th valign="top"><input type="checkbox" name="makeFeatured" id="makeFeatured" />
<label for="makeFeatured"> Make Project Featured</label></th>
<td><?php
$objcommon = new common();
$fpf = $objcommon->getConfigValue('featured_project_fee');
if ($fpf == "0") {
echo "Free";
} else {
echo "\$" . $fpf . " Fee";
}
?>
<br />
<small>Your project will appear longer on the main page and you will receive lower bids. This fee must be paid at time of posting project. Click here to read more about Featured projects.<br />
<br />
<span class="red">Note: Your project MUST be Featured if it requires bids in the form of hourly/monthly wages, per-item pricing, commissions, trades, etc.</span></small> </td>
</tr>
<tr class="fir">
<th valign="top"><input type="checkbox" name="makePrivate" id="makePrivate" onclick="enablecertified(this.id);"/>
<label for="makePrivate"> Make Project Private</label></th>
<td><?php
示例5: user
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/service.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/image.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/photo.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
if (is_array($_POST)) {
$pid = "";
if (isset($_SESSION['photofilename'])) {
$photo = new photo();
$commonObj = new common();
$size[0] = $commonObj->getConfigValue("imagesize1");
$size[1] = $commonObj->getConfigValue("imagesize2");
$size[2] = $commonObj->getConfigValue("imagesize3");
$photo->createPhotos($size, $_SESSION['photofilename']);
$pid = $photo->insertimage();
}
$objservice = new service();
$objservice->update($_POST);
if ($pid != "") {
$objservice->addimages($_POST['serviceid'], $pid);
}
echo "script: messageBox('Service Updated..',function() { window.location='account.php'; }); ";
}
示例6: resetPassword
function resetPassword($ar)
{
$sql = "select count(*) as cnt from `users` where resetpasswordlink='" . $ar['linkid'] . "'";
$array = $this->queryrow($sql);
if ($array['cnt'] > 0) {
$objcommon = new common();
$str = $objcommon->getTemplateFormat('resetpassword');
$objconfig = new config();
$sql = "update users set password='" . md5($ar['password']) . "' where resetpasswordlink='" . $ar['linkid'] . "'";
$array = $this->query($sql);
$to['name'] = $array['username'];
$to['email'] = $array['email'];
$from['name'] = $objcommon->getConfigValue('reset_password_from_name');
$from['email'] = $objcommon->getConfigValue('reset_password_from_email');
$subject = $objcommon->getConfigValue('reset_password_from_subject');
$identifier['sitename'] = $objcommon->getConfigValue('sitename');
$identifier['username'] = $array['username'];
$identifier['password'] = $ar['password'];
$objemail = new email();
echo $identifier['link'];
$objemail->sendMail($to, $from, $subject, $str, $identifier);
$sql = "update users set resetpasswordlink='' where resetpasswordlink='" . $ar['linkid'] . "'";
$array = $this->query($sql);
return true;
} else {
$this->error = "Unable to reset your password..";
return false;
}
}
示例7: changePassword
function changePassword($ar)
{
$sql = "select * from `users` where password='" . md5($ar['currentpassword']) . "' and id='" . $this->getLoggedID() . "'";
$array = $this->mysql->queryrow($sql);
if (is_array($array)) {
$objcommon = new common();
$str = $objcommon->getTemplateFormat('changepassword');
$objconfig = new config();
$newpass = md5($ar['newpassword']);
$sql = "update users set password='" . $newpass . "' where id='" . $this->getLoggedID() . "'";
$this->mysql->query($sql);
$to['name'] = $array['username'];
$to['email'] = $array['email'];
$from['name'] = $objcommon->getConfigValue('change_password_from_name');
$from['email'] = $objcommon->getConfigValue('change_password_from_email');
$subject = $objcommon->getConfigValue('change_password_from_subject');
$identifier['sitename'] = $objcommon->getConfigValue('sitename');
$identifier['username'] = $array['username'];
$identifier['password'] = $ar['newpassword'];
$objemail = new email();
$objemail->sendMail($to, $from, $subject, $str, $identifier);
return "1";
} else {
// echo "else part";
$this->error = "Invalid Current Password..";
return "0";
}
disconnect_db($cn);
}