当前位置: 首页>>代码示例>>PHP>>正文


PHP common::getConfigValue方法代码示例

本文整理汇总了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();
 }
开发者ID:sknlim,项目名称:classified-2,代码行数:11,代码来源:photo.class.php

示例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 = "";
 }
开发者ID:sknlim,项目名称:classified-2,代码行数:14,代码来源:photo.class.php

示例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 {
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:edit_rentorhire.php

示例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 
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:post_project.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'; }); ";
}
开发者ID:sknlim,项目名称:classified-2,代码行数:29,代码来源:editpostservice1.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;
     }
 }
开发者ID:sknlim,项目名称:classified-2,代码行数:29,代码来源:user.class.php

示例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);
 }
开发者ID:sknlim,项目名称:classified-2,代码行数:29,代码来源:user.class.php


注:本文中的common::getConfigValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。