function roundedBox() { $objconfig = new config(); $this->getDomainPath = $objconfig->get_domain_path(); $this->color = ""; $this->heading = ""; }
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 = ""; }
function checkReferrer($checkstr) { $objconfig = new config(); if ($_SERVER['HTTP_REFERER'] == $objconfig->get_domain_path() . $checkstr) { return true; } else { return false; } }
<?php include "config.class.php"; $objconfig = new config(); header("Location: " . $objconfig->get_domain_path());
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; }
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(); }