<?php define("CLIENTAREA", true); require "init.php"; $ca = new WHMCS_ClientArea(); $settings = sirportly_settings(); $ca->setPageTitle($whmcs->get_lang('supportticketsviewticket')); $ca->initPage(); global $CONFIG; if (!sirportly_enabled()) { die('Sirportly module not enabled.'); } if ($CONFIG['RequireLoginforClientTickets'] == 'on' && !$ca->isLoggedIn()) { header('Location: login.php'); } ## Close ticket if ($settings['close_ticket'] && $_GET['closeticket']) { $close = curl('/api/v2/tickets/update', array('ticket' => $_GET['tid'], 'status' => $settings['closed_status'])); if ($close['status'] != 200) { $ca->assign('errormessage', "Unable to close ticket, please contact support."); } else { header('Location: viewticket.php?tid=' . $_GET['tid'] . '&c=' . $_GET['c']); } } $ticket = curl('/api/v2/tickets/ticket', array('reference' => $_GET['tid'])); if ($ticket['results']['id'] != $_GET['c']) { header('Location: supporttickets.php'); } ## An update has been posted if ($_POST) { foreach ($_POST as $key => $value) {
<?php // To be seen by admin only define("ADMINAREA", true); require "../init.php"; include_once '../includes/hooks/inc/oms_utils.php'; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("VM statistics"); $ca->addToBreadCrumb('index.php', $whmcs->get_lang('globalsystemname')); $ca->initPage(); global $oms_user, $oms_password, $oms_hostname, $whmcs_upload_folder; // execute an external program to get all the info from oms $id = exec("{$whmcs_code_folder}/vmsummary.py {$oms_hostname} {$oms_user} {$oms_password} " . "{$whmcs_code_folder}/{$whmcs_upload_folder}/omssstats.csv", $arrEntries); $vms = array(); foreach ($arrEntries as $vmdata) { $vms[] = explode(";", $vmdata); } $ca->assign('vms', $vms); $ca->assign('upload_folder', $whmcs_upload_folder); $ca->setTemplate('omsvmstats'); $ca->output();
<?php define("CLIENTAREA", true); require "init.php"; require_once 'modules/addons/sirportly/sirportly_functions.php'; include_once "modules/addons/sirportly/markdown.php"; $ca = new WHMCS_ClientArea(); $ca->initPage(); $ca->setPageTitle($whmcs->get_lang('supportticketssubmitticket')); $settings = sirportly_settings(); if (!sirportly_enabled()) { header('Location: /'); } $ca->setTemplate('/modules/addons/sirportly/templates/default/knowledgebase.tpl'); $content = curl('/api/v2/knowledge/page', array('kb' => $settings['kb'], 'path' => ltrim($_SERVER['PATH_INFO'], '/'))); $ca->assign('tree', doc_nav($kb)); $ca->assign('title', $content['results']['page']['title']); $ca->assign('content', Markdown($content['results']['page']['content'])); $ca->output();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_CAINFO, realpath(dirname(__FILE__) . "/cacert.pem")); $return = curl_exec($ch); curl_close($ch); return $return; } # Ensure that the module is active before attempting to run any code $gateway = new Gateway(); if (!$gateway->isActiveGateway($gatewaymodule) || !$gateway->load($gatewaymodule)) { Terminus::getInstance()->doDie('Module not Active'); } $pdo = Capsule::connection()->getPdo(); # Process and store transaction if (isset($_REQUEST['id']) && !empty($_REQUEST['id'])) { $ca = new WHMCS_ClientArea(); # Check login status if ($ca->isLoggedIn()) { $invoice_id = (int) $_REQUEST['id']; $store_token = $_REQUEST['token']; $currency = $_REQUEST['currency']; $amount = (int) $_REQUEST['amount']; if (preg_match("#^[A-Z]{3}\$#", $currency) && preg_match("#^[a-zA-Z 0-9\\_\\-]*\$#", $store_token)) { //Get invoice details $sql = "SELECT * FROM tblinvoices WHERE id = '{$invoice_id}'"; $result = $pdo->query($sql); $row = $result->fetch(PDO::FETCH_ASSOC); $invoice_num = $row['invoicenum']; if ($invoice_num == NULL) { $invoice_num = $invoice_id; }
$client = select_query('tblclients', 'id', array('email' => $split['1'])); if (mysql_num_rows($client)) { break; } } } if (mysql_num_rows($client)) { $client = mysql_fetch_array($client, MYSQL_ASSOC); } else { die('No such user'); } ## To access the internal API we still stupidly require an administrators id so let's fetch one. $administrator = mysql_fetch_array(full_query("SELECT `id` FROM `tbladmins` LIMIT 0, 1"), MYSQL_ASSOC); ## Client Details $results = localAPI('getclientsdetails', array('clientid' => $client['id'], 'stats' => true), $administrator['id']); foreach ($results as $key => $value) { $vars[$key] = $value; } ## Client Products $client_products = localAPI('getclientsproducts', array('clientid' => $client['id']), $administrator['id']); foreach ($client_products['products'] as $key => $value) { $vars['products'] = $value; } ## Client Domains $client_domains = localAPI('getclientsdomains', array('clientid' => $client['id']), $administrator['id']); foreach ($client_domains['domains'] as $key => $value) { $vars['domains'] = $value; } $ca = new WHMCS_ClientArea(); $ca->initPage(); echo $ca->getSingleTPLOutput("/templates/sirportly/frame.tpl", $vars);
$templatefile = "domaindocument"; $pageicon = "images/domains_big.gif"; initialiseClientArea($pagetitle, $pageicon, $breadcrumbnav); $search = $whmcs->get_req_var("search"); $domain = $whmcs->get_req_var("domain"); $bulkdomains = $whmcs->get_req_var("bulkdomains"); $tld = $whmcs->get_req_var("tld"); $tlds = $whmcs->get_req_var("tlds"); $ext = $whmcs->get_req_var("ext"); $direct = $whmcs->get_req_var("direct"); $sld = ""; $invalidtld = ""; $availabilityresults = array(); $search_tlds = array(); $tldslist = array(); $client = new WHMCS_ClientArea(); $uid = $client->getUserID(); $currencyid = isset($_SESSION['currency']) ? $_SESSION['currency'] : ""; $currency = getCurrency($uid, $currencyid); $smartyvalues['currency'] = $currency; $action = isset($_REQUEST['a']) ? $_REQUEST['a'] : ""; $domain = isset($_REQUEST['domain']) ? $_REQUEST['domain'] : ""; $document_download = isset($_REQUEST['dl']) ? $_REQUEST['dl'] : ""; $search_domain = $_POST['search_domain'] != "Enter Domain to Find" ? $_POST['search_domain'] : ""; $current_date = date('Y-m-d'); $where = array("registrar" => "domainku"); if ($domain || $search_domain) { $where["domain"] = $domain ? $domain : $search_domain; $where_document = array("domain" => $domain); } $query = full_query("\n SELECT t.id, t.userid, t.type, t.domain, t.registrar, t.registrationdate, t.registrationperiod, t.status AS domstatus, i.status, o.nameservers, o.transfersecret,\n m.domain AS coza_domain, m.domainid AS coza_domainid, m.userid AS coza_userid, m.id_doc_storage_name, m.id_doc_type, m.le_doc_storage_name, \n m.le_doc_type, m.su_doc_storage_name, m.su_doc_type, m.domain_approval_date, m.domain_status,\n c.firstname, c.lastname, c.companyname, c.email, c.address1, c.address2, c.city, c.state, c.postcode, c.country, c.phonenumber\n FROM tbldomains t \n LEFT JOIN mod_domaincloudregistrar m ON t.domain = m.domain \n LEFT JOIN tblorders o ON t.orderid = o.id\n LEFT JOIN tblinvoices i ON o.invoiceid = i.id\n LEFT JOIN tblclients c ON t.userid = c.id\n WHERE t.userid = " . $uid . " AND t.status <> 'Cancelled' AND t.status <> 'Expired' AND " . (!empty($domain) || !empty($search_domain) ? "t.domain LIKE '" . (!empty($domain) ? $domain : $search_domain) . "%'" : "t.domain LIKE '%.id'") . ";\n ");
<?php // Set the required paramaters to set the page up define("CLIENTAREA", true); //define("FORCESSL",true); // Uncomment to force the page to use https:// require "init.php"; $ca = new WHMCS_ClientArea(); $ca->initPage(); // Load the Lang file if (file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'addons' . DIRECTORY_SEPARATOR . 'solusvmcontrol' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . strtolower($language) . '.php')) { require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'addons' . DIRECTORY_SEPARATOR . 'solusvmcontrol' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . strtolower($language) . '.php'; } else { require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'addons' . DIRECTORY_SEPARATOR . 'solusvmcontrol' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'english.php'; } // Check login status if ($ca->isLoggedIn()) { // User is logged in, check product belongs to user $user_check = "SELECT count(id) AS count FROM tblhosting WHERE id = '" . (int) $_GET['id'] . "' AND userid = '" . $ca->getUserID() . "' AND packageid = '" . (int) $_GET['pid'] . "' LIMIT 1"; $result = mysql_query($user_check); $row = mysql_fetch_assoc($result); if ($row["count"] != 1) { die("<font style=\"color:red;\"><b>{$_ADDONLANG['client_product_doesnt_belong_to_user']}</b></font>"); } //** All checks out so far **// // Require SVMC functions require_once 'modules/addons/solusvmcontrol/solusvmcontrol.php'; // Call vps() vps(); /** * // User is logged in * $result = mysql_query("SELECT firstname FROM tblclients WHERE id=".$ca->getUserID());
<?php require "init.php"; require_once dirname(__FILE__) . '/includes/hooks/inc/oms_config.php'; require_once __DIR__ . '/Classes/Autoloader.php'; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Resource consumption summary"); $ca->addToBreadCrumb('index.php', $whmcs->get_lang('globalsystemname')); $ca->addToBreadCrumb('oms_usage.php', 'OMS usage'); $ca->initPage(); //get parameters $user_id = mysql_real_escape_string($_GET['user_id']); $clientId = $_SESSION['uid']; global $product_core_name, $product_disk_name, $product_memory_name, $oms_usage_db, $whmcs_admin_user, $whmcs_admin_password, $whmcs_api_url, $oms_usage_db; $whmcsDbService = new \Opennode\Whmcs\Service\WhmcsDbService(); $whmcsExternalService = new \Opennode\Whmcs\Service\WhmcsExternalService($whmcs_admin_user, $whmcs_admin_password, $whmcs_api_url, $oms_usage_db); $omsReduction = new \Opennode\Whmcs\Service\OmsReductionService($product_core_name, $product_disk_name, $product_memory_name, $oms_usage_db, $whmcsExternalService, $whmcsDbService); $confChanges = $omsReduction->findClientConfChanges($clientId, null, null); $parsedChanges = $omsReduction->parseClientConfChanges($confChanges, $clientId); $ca->assign('omsconfs', $parsedChanges); $ca->setTemplate('omsclientusage'); $ca->output();
/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ function initialiseClientArea($pagetitle, $pageicon, $breadcrumbnav) { global $whmcs; global $CONFIG; global $_LANG; global $templates_compiledir; global $in_ssl; global $clientsdetails; global $smarty; global $smartyvalues; include_once ROOTDIR . "/includes/smarty/Smarty.class.php"; $smarty = new Smarty(); $smarty->caching = 0; $smarty->template_dir = ROOTDIR . "/templates/"; $smarty->compile_dir = $templates_compiledir; $filename = $_SERVER['PHP_SELF']; $filename = substr($filename, strrpos($filename, "/")); $filename = str_replace("/", "", $filename); $filename = explode(".", $filename); $filename = $filename[0]; $breadcrumb = array(); $parts = explode(" > ", $breadcrumbnav); foreach ($parts as $part) { $parts2 = explode("\">", $part, 2); $link = str_replace("<a href=\"", "", $parts2[0]); $breadcrumb[] = array("link" => $link, "label" => strip_tags($parts2[1])); } $smarty->assign("template", $whmcs->get_sys_tpl_name()); $smarty->assign("language", $whmcs->get_client_language()); $smarty->assign("LANG", $_LANG); $smarty->assign("companyname", $CONFIG['CompanyName']); $smarty->assign("logo", $CONFIG['LogoURL']); $smarty->assign("charset", $CONFIG['Charset']); $smarty->assign("pagetitle", $pagetitle); $smarty->assign("pageicon", $pageicon); $smarty->assign("filename", $filename); $smarty->assign("breadcrumb", $breadcrumb); $smarty->assign("breadcrumbnav", $breadcrumbnav); $smarty->assign("todaysdate", date("l, jS F Y")); $smarty->assign("date_day", date("d")); $smarty->assign("date_month", date("m")); $smarty->assign("date_year", date("Y")); $smarty->assign("token", generate_token("plain")); if ($CONFIG['SystemSSLURL']) { $smarty->assign("systemsslurl", $CONFIG['SystemSSLURL'] . "/"); } if ($in_ssl && $CONFIG['SystemSSLURL']) { $smarty->assign("systemurl", $CONFIG['SystemSSLURL'] . "/"); } else { if ($CONFIG['SystemURL'] != "http://www.yourdomain.com/whmcs") { $smarty->assign("systemurl", $CONFIG['SystemURL'] . "/"); } } if (isset($_SESSION['uid'])) { $smarty->assign("loggedin", true); if (!function_exists("getClientsDetails")) { require ROOTDIR . "/includes/clientfunctions.php"; } $clientsdetails = getClientsDetails(); $smarty->assign("clientsdetails", $clientsdetails); $smarty->assign("clientsstats", getClientsStats($_SESSION['uid'])); if (isset($_SESSION['cid'])) { $result = select_query("tblcontacts", "id,firstname,lastname,email,permissions", array("id" => $_SESSION['cid'], "userid" => $_SESSION['uid'])); $data = mysql_fetch_array($result); $loggedinuser = array("contactid" => $data['id'], "firstname" => $data['firstname'], "lastname" => $data['lastname'], "email" => $data['email']); $contactpermissions = explode(",", $data[4]); } else { $loggedinuser = array("userid" => $_SESSION['uid'], "firstname" => $clientsdetails['firstname'], "lastname" => $clientsdetails['lastname'], "email" => $clientsdetails['email']); $contactpermissions = array("profile", "contacts", "products", "manageproducts", "domains", "managedomains", "invoices", "tickets", "affiliates", "emails", "orders"); } $smarty->assign("loggedinuser", $loggedinuser); $smarty->assign("contactpermissions", $contactpermissions); } if ($CONFIG['AllowLanguageChange'] == "on") { $smarty->assign("langchange", "true"); } $setlanguage = "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF']; $count = 0; foreach ($_GET as $k => $v) { $prefix = $count == 0 ? "?" : "&"; $setlanguage .= $prefix . htmlentities($k) . "=" . htmlentities($v); ++$count; } $setlanguage .= "\" name=\"languagefrm\" id=\"languagefrm\"><strong>" . $_LANG['language'] . ":</strong> <select name=\"language\" onchange=\"languagefrm.submit()\">"; foreach ($whmcs->getValidLanguages() as $lang) { $setlanguage .= "<option"; if ($lang == $whmcs->get_client_language()) { $setlanguage .= " selected=\"selected\""; } $setlanguage .= ">" . ucfirst($lang) . "</option>"; } $setlanguage .= "</select></form>"; $smarty->assign("setlanguage", $setlanguage); $currenciesarray = array(); $result = select_query("tblcurrencies", "id,code,`default`", "", "code", "ASC"); while ($data = mysql_fetch_array($result)) { $currenciesarray[] = array("id" => $data['id'], "code" => $data['code'], "default" => $data['default']); } if (count($currenciesarray) == 1) { $currenciesarray = ""; } $smarty->assign("currencies", $currenciesarray); $smarty->assign("twitterusername", $whmcs->get_config("TwitterUsername")); $smarty->assign("condlinks", WHMCS_ClientArea::getconditionallinks()); $smartyvalues = array(); }
<?php define("CLIENTAREA", true); //define("FORCESSL",true); // Uncomment to force the page to use https:// require "init.php"; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Console"); $ca->addToBreadCrumb('index.php', $whmcs->get_lang('globalsystemname')); $ca->addToBreadCrumb('console.php', 'Console'); $ca->initPage(); $ca->requireLogin(); $ca->setTemplate('console'); $ca->output();
<?php define("ADMINAREA", true); require "init.php"; include_once 'includes/hooks/inc/oms_utils.php'; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Resource consumption summary"); $ca->addToBreadCrumb('index.php', $whmcs->get_lang('globalsystemname')); $ca->addToBreadCrumb('oms_usage.php', 'OMS usage'); $ca->initPage(); $DATE_FORMAT_INPUT = 'd-m-Y'; $DATE_FORMAT_OUTPUT = 'Y-m-d'; //get parameters $start_date = $_GET['start_date'] ? DateTime::createFromFormat($DATE_FORMAT_INPUT, $_GET['start_date']) : date_sub(date_create(), date_interval_create_from_date_string("1 days")); $end_date = $_GET['end_date'] ? DateTime::createFromFormat($DATE_FORMAT_INPUT, $_GET['end_date']) : date_create(); $user_id = mysql_real_escape_string($_GET['user_id']); $datebetweenStr = "start_date: " . $start_date->format($DATE_FORMAT_INPUT) . " ... end_date: " . $end_date->format($DATE_FORMAT_INPUT); $ca->assign('datebetween', $datebetweenStr); $isAdmin = $_SESSION['adminid']; if ($start_date && $end_date && $isAdmin > 0) { $sql = "SELECT clientid, SUM(amount) as credit FROM tblcredit WHERE description LIKE 'OMS_USAGE%' AND date BETWEEN '" . $start_date->format($DATE_FORMAT_OUTPUT) . "' AND '" . $end_date->format($DATE_FORMAT_OUTPUT) . "' "; if ($user_id) { $sql .= " AND clientid=" . $user_id; } $sql .= " GROUP BY clientid "; $query = mysql_query($sql); $clients = array(); while ($client = mysql_fetch_array($query)) { $clients[] = $client; } $ca->assign('clients', $clients);
<?php define("CLIENTAREA", true); //define("FORCESSL", true); // Uncomment to force the page to use https:// require "init.php"; require 'modules/addons/facturacom/wrapperapp.php'; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Facturación de servicios"); $ca->initPage(); $ca->requireLogin(); if ($ca->isLoggedIn()) { WrapperConfig::load(); $configEntity = WrapperConfig::configEntity(); // Getting invoices by client from factura.com $invoices = (array) WrapperHelper::getInvoices($ca->getUserID()); $clientInvoices = array(); //object to array foreach ($invoices['data'] as $key => $value) { $clientInvoices[$key] = (array) $value; } // Getting invoices from whmcs $whmcsInvoices = WrapperHelper::getWhmcsInvoices($ca->getUserID()); $ca->assign('clientW', $ca->getUserID()); $ca->assign('whmcsInvoices', $whmcsInvoices); $ca->assign('clientInvoices', $clientInvoices); $ca->assign('systemURL', $configEntity['systemURL']); $ca->assign('apiUrl', $configEntity['apiUrl']); $ca->assign('serieInvoices', $configEntity['serie']); } else { # User is not logged in }
<?php /* Performans.net Whois Sonuclari Sayfasi */ header('Content-Type: text/html; charset=utf-8'); define("CLIENTAREA", false); if (isset($_POST[domain]) and strlen($_POST[domain]) > 0) { $domain = $_POST[domain]; $domain = str_replace("https://", "", $domain); $domain = str_replace("http://", "", $domain); $domain = str_replace("www.", "", $domain); header("Location: /whois/" . $domain); } require "init.php"; $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Whois Sorgusu"); $ca->addToBreadCrumb('index.php', 'Ana Sayfa'); $ca->addToBreadCrumb('whois', 'Whois Sorgusu'); $ca->initPage(); $domain = $_GET['domain']; $ifadeler = array('Domain Name' => '<b>Alan Adı</b>', '** Registrant:' => '<b>** Kaydedici:</b><br />------------------------------------------------------', '** Administrative Contact:' => '<br /><b>** Yonetici Bilgileri</b><br />------------------------------------------------------', '** Technical Contact:' => '<br /><b>** Teknik Sorumlu Bilgileri</b><br />------------------------------------------------------', '** Billing Contact:' => '<br /><b>** Ödeme Sorumlu Bilgileri</b><br />------------------------------------------------------', '** Domain Servers:' => '<br /><b>** İsim Sunucuları:</b><br />------------------------------------------------------', '** Additional Info:' => '<br /><b>** Diğer Bilgiler:</b><br />------------------------------------------------------', 'Created on..............:' => 'Kayıt Tarihi............:', 'Expires on..............:' => 'Bitiş Tarihi............:', 'Registry Domain ID' => 'Kayıtlı Alan Adı Numarası', 'Domain Name' => 'Alan Adı', 'Registrar WHOIS Server' => 'Kaydeden WHOIS Serverı', 'Registrar URL' => 'Kaydeden URL', 'Updated Date' => 'Güncellenme Tarihi', 'Creation Date' => 'Kaydedilme Tarihi', 'Registrar Registration Expiration Date' => 'Bitiş Tarihi', 'Registrar' => 'Kaydeden Firma', 'Registrar IANA ID' => 'Kaydeden Firmanın IANA Numarası', 'Registrar Abuse Contact Email' => 'Kaydeden Firma İletiþim Maili', 'Registrar Abuse Contact Phone' => 'Kaydeden Firmanın İletiþim Telefonu', 'Domain Status' => 'Alan Adı Durumu', 'Registry Registrant ID' => 'Kaydedicinin Kayıt Numarası', 'Registrant Name' => 'Kaydeden Firmanın Adı', 'Registrant Street' => 'Kaydedici Firmanın Adresi', 'Registrant City' => 'Kaydedici Firmanın Bulunduğu Şehir', 'Registrant State/Province' => 'Kaydedici Firmanın Eyalet/İl', 'Registrant Postal Code' => 'Kaydedici Firma Adresinin Posta Kodu', 'Registrant Country' => 'Kaydedici Firmanın Bulunduğu Ülke', 'Registrant Phone' => 'Kaydedici Firmanın Telefonu', 'Registrant Fax' => 'Kaydedici Firmanın Fax Numarası', 'Registrant Email' => 'Kaydedici Firmanın E-Posta Adresi', 'Registry Admin ID' => 'Kaydeden Admin ID', 'Admin Name' => 'Admin Adı', 'Admin Organization' => 'Kaydeden URL', 'Admin Street' => 'Adminin Adresi', 'Admin State/Province' => 'Admin Eyalet/İl', 'Admin City' => 'Admin Şehir', 'Admin Postal Code' => 'Admin Posta Kodu', 'Admin City' => 'Admin Şehir', 'Admin Country' => 'Admin Ülke', 'Admin Phone' => 'Admin Telefonu', 'Admin Fax' => 'Admin Fax Numarası', 'Admin Email' => 'Admin E-Mail Adresi', 'Tech Name' => 'Teknik Sorumlunun Adı', 'Tech Street' => 'Teknik Sorumlu Adresi', 'Tech City' => 'Teknik Sorumlu Şehri', 'Tech State/Province' => 'Teknik Sorumlu Eyalet/İl', 'Tech Postal Code' => 'Teknik Sorumlu Posta Kodu', 'Tech Country' => 'Teknik Sorumlu Ülkesi', 'Tech Phone' => 'Teknik Sorumlunun Telefon Numarası', 'Tech Fax' => 'Teknik Sorumlunun Fax Numarası', 'Tech Email' => 'Teknik Sorumlunun E-Mail Adresi', 'Name Server 1' => 'İsim Sunucusu 1', 'Name Server 2' => 'İsim Sunucusu 2'); /* Guncel ve tam whois sunucularini gormek icin bu siteyi ziyaret edebilirsiniz: http://www.whois365.com/en/listtld/ */ $whoissunuculari = array("ac" => "whois.nic.ac", "ae" => "whois.nic.ae", "aero" => "whois.aero", "af" => "whois.nic.af", "ag" => "whois.nic.ag", "ai" => "whois.ai", "al" => "whois.ripe.net", "am" => "whois.amnic.net", "arpa" => "whois.iana.org", "as" => "whois.nic.as", "asia" => "whois.nic.asia", "at" => "whois.nic.at", "au" => "whois.aunic.net", "ax" => "whois.ax", "az" => "whois.ripe.net", "be" => "whois.dns.be", "bg" => "whois.register.bg", "bi" => "whois.nic.bi", "biz" => "whois.biz", "bj" => "whois.nic.bj", "bn" => "whois.bn", "bo" => "whois.nic.bo", "br" => "whois.registro.br", "bt" => "whois.netnames.net", "by" => "whois.cctld.by", "bz" => "whois.belizenic.bz", "ca" => "whois.cira.ca", "cat" => "whois.cat", "cc" => "whois.nic.cc", "cd" => "whois.nic.cd", "ch" => "whois.nic.ch", "ci" => "whois.nic.ci", "ck" => "whois.nic.ck", "cl" => "whois.nic.cl", "cn" => "whois.cnnic.net.cn", "co" => "whois.nic.co", "com" => "whois.verisign-grs.com", "coop" => "whois.nic.coop", "cx" => "whois.nic.cx", "cz" => "whois.nic.cz", "de" => "whois.denic.de", "dk" => "whois.dk-hostmaster.dk", "dm" => "whois.nic.dm", "dz" => "whois.nic.dz", "ec" => "whois.nic.ec", "edu" => "whois.educause.edu", "ee" => "whois.eenet.ee", "eg" => "whois.ripe.net", "es" => "whois.nic.es", "eu" => "whois.eu", "fi" => "whois.ficora.fi", "fo" => "whois.nic.fo", "fr" => "whois.nic.fr", "gd" => "whois.nic.gd", "gg" => "whois.gg", "gi" => "whois2.afilias-grs.net", "gl" => "whois.nic.gl", "gov" => "whois.nic.gov", "gs" => "whois.nic.gs", "gy" => "whois.registry.gy", "hk" => "whois.hkirc.hk", "hn" => "whois.nic.hn", "hr" => "whois.dns.hr", "ht" => "whois.nic.ht", "hu" => "whois.nic.hu", "ie" => "whois.domainregistry.ie", "il" => "whois.isoc.org.il", "im" => "whois.nic.im", "in" => "whois.inregistry.net", "info" => "whois.afilias.net", "int" => "whois.iana.org", "io" => "whois.nic.io", "iq" => "whois.cmc.iq", "ir" => "whois.nic.ir", "is" => "whois.isnic.is", "it" => "whois.nic.it", "je" => "whois.je", "jobs" => "jobswhois.verisign-grs.com", "jp" => "whois.jprs.jp", "ke" => "whois.kenic.or.ke", "kg" => "www.domain.kg", "ki" => "whois.nic.ki", "kr" => "whois.kr", "kz" => "whois.nic.kz", "la" => "whois.nic.la", "li" => "whois.nic.li", "lt" => "whois.domreg.lt", "lu" => "whois.dns.lu", "lv" => "whois.nic.lv", "ly" => "whois.nic.ly", "ma" => "whois.iam.net.ma", "md" => "whois.nic.md", "me" => "whois.nic.me", "mg" => "whois.nic.mg", "mil" => "whois.nic.mil", "ml" => "whois.dot.ml", "mn" => "whois.nic.mn", "mo" => "whois.monic.mo", "mobi" => "whois.dotmobiregistry.net", "mp" => "whois.nic.mp", "ms" => "whois.nic.ms", "mu" => "whois.nic.mu", "museum" => "whois.museum", "mx" => "whois.mx", "my" => "whois.domainregistry.my", "na" => "whois.na-nic.com.na", "name" => "whois.nic.name", "nc" => "whois.nc", "net" => "whois.verisign-grs.net", "nf" => "whois.nic.nf", "ng" => "whois.nic.net.ng", "nl" => "whois.domain-registry.nl", "no" => "whois.norid.no", "nu" => "whois.nic.nu", "nz" => "whois.srs.net.nz", "om" => "whois.registry.om", "org" => "whois.pir.org", "pe" => "kero.yachay.pe", "pf" => "whois.registry.pf", "pl" => "whois.dns.pl", "pm" => "whois.nic.pm", "post" => "whois.dotpostregistry.net", "pr" => "whois.nic.pr", "pro" => "whois.dotproregistry.net", "pt" => "whois.dns.pt", "pw" => "whois.nic.pw", "qa" => "whois.registry.qa", "re" => "whois.nic.re", "ro" => "whois.rotld.ro", "rs" => "whois.rnids.rs", "ru" => "whois.tcinet.ru", "sa" => "whois.nic.net.sa", "sb" => "whois.nic.net.sb", "sc" => "whois2.afilias-grs.net", "se" => "whois.iis.se", "sg" => "whois.sgnic.sg", "sh" => "whois.nic.sh", "si" => "whois.arnes.si", "sk" => "whois.sk-nic.sk", "sm" => "whois.nic.sm", "sn" => "whois.nic.sn", "so" => "whois.nic.so", "st" => "whois.nic.st", "su" => "whois.tcinet.ru", "sx" => "whois.sx", "sy" => "whois.tld.sy", "tc" => "whois.meridiantld.net", "tel" => "whois.nic.tel", "tf" => "whois.nic.tf", "th" => "whois.thnic.co.th", "tj" => "whois.nic.tj", "tk" => "whois.dot.tk", "tl" => "whois.nic.tl", "tm" => "whois.nic.tm", "tn" => "whois.ati.tn", "to" => "whois.tonic.to", "tp" => "whois.nic.tl", "tr" => "whois.nic.tr", "travel" => "whois.nic.travel", "tv" => "tvwhois.verisign-grs.com", "tw" => "whois.twnic.net.tw", "tz" => "whois.tznic.or.tz", "ua" => "whois.ua", "ug" => "whois.co.ug", "uk" => "whois.nic.uk", "us" => "whois.nic.us", "uy" => "whois.nic.org.uy", "uz" => "whois.cctld.uz", "vc" => "whois2.afilias-grs.net", "ve" => "whois.nic.ve", "vg" => "whois.adamsnames.tc", "wf" => "whois.nic.wf", "ws" => "whois.website.ws", "xxx" => "whois.nic.xxx", "yt" => "whois.nic.yt", "yu" => "whois.ripe.net"); function domain_sorgula($domain) { global $whoissunuculari; $domain_parts = explode(".", $domain); $tld = strtolower(array_pop($domain_parts)); $whoissunucu = $whoissunuculari[$tld]; if (!$whoissunucu) { return "Error: No appropriate Whois server found for {$domain} domain!"; }
require "includes/gatewayfunctions.php"; require "includes/ccfunctions.php"; require "includes/domainfunctions.php"; require "includes/registrarfunctions.php"; require "includes/customfieldfunctions.php"; require "includes/invoicefunctions.php"; require "includes/configoptionsfunctions.php"; $action = $whmcs->get_req_var("action"); $sub = $whmcs->get_req_var("sub"); $id = (int) $whmcs->get_req_var("id"); $q = $whmcs->get_req_var("q"); $paymentmethod = WHMCS_Gateways::makesafename($whmcs->get_req_var("paymentmethod")); if ($action == "changesq" || $whmcs->get_req_var("2fasetup")) { $action = "security"; } $ca = new WHMCS_ClientArea(); $ca->setPageTitle($whmcs->get_lang("clientareatitle")); $ca->addToBreadCrumb("index.php", $whmcs->get_lang("globalsystemname")); $ca->addToBreadCrumb("clientarea.php", $whmcs->get_lang("clientareatitle")); $ca->initPage(); $ca->requireLogin(); if ($action == "details") { $ca->addToBreadCrumb("clientarea.php?action=details", $whmcs->get_lang("clientareanavdetails")); } if ($action == "hosting") { $ca->addToBreadCrumb("clientarea.php?action=hosting", $whmcs->get_lang("clientareanavhosting")); } if (in_array($action, array("products", "cancel"))) { $ca->addToBreadCrumb("clientarea.php?action=products", $whmcs->get_lang("clientareaproducts")); } if (in_array($action, array("domains", "domaindetails", "domaincontacts", "domaindns", "domainemailforwarding", "domaingetepp", "domainregisterns"))) {
$ingraceperiod = true; } if (!array_key_exists($tld, $DomainRenewalPriceOptions)) { $temppricelist = getTLDPriceList($tld, true, true); $renewaloptions = array(); foreach ($temppricelist as $regperiod => $options) { if ($options['renew']) { $renewaloptions[] = array("period" => $regperiod, "price" => $options['renew']); continue; } } $DomainRenewalPriceOptions[$tld] = $renewaloptions; } else { $renewaloptions[] = $DomainRenewalPriceOptions[$tld]; } $rawstatus = WHMCS_ClientArea::getrawstatus($status); if (count($renewaloptions)) { $renewals[] = array("id" => $id, "domain" => $domain, "tld" => $tld, "status" => $_LANG["clientarea" . $rawstatus], "expirydate" => fromMySQLDate($expirydate), "daysuntilexpiry" => $daysuntilexpiry, "beforerenewlimit" => $beforerenewlimit, "beforerenewlimitdays" => $DomainRenewalMinimums[$tld], "ingraceperiod" => $ingraceperiod, "pastgraceperiod" => $pastgraceperiod, "graceperioddays" => $DomainRenewalGracePeriods[$tld], "renewaloptions" => $DomainRenewalPriceOptions[$tld]); } } $smartyvalues['renewals'] = $renewals; } else { $templatefile = "products"; $productgroups = $orderfrm->getProductGroups(); $smartyvalues['productgroups'] = $productgroups; if ($pid) { $result = select_query("tblproducts", "id,gid", array("id" => $pid)); $data = mysql_fetch_array($result); $pid = $data['id']; $gid = $data['gid']; $smartyvalues['pid'] = $pid;
<?php define("CLIENTAREA", true); require "init.php"; $ca = new WHMCS_ClientArea(); $ca->initPage(); $ca->setPageTitle($whmcs->get_lang('supportticketssubmitticket')); $settings = sirportly_settings(); if (!sirportly_enabled()) { die('Sirportly module not enabled.'); } ## Logged in? if ($ca->isLoggedIn()) { $result = mysql_query("SELECT CONCAT_WS(' ', firstname, lastname) as full_name, email FROM tblclients WHERE id=" . $ca->getUserID()); $client = mysql_fetch_array($result, MYSQL_ASSOC); $ca->assign('email', $client['email']); $ca->assign('clientname', $client['full_name']); } switch ($_GET['step']) { case '2': ## Default department, priority $ca->assign('deptid', $_GET['deptid']); $ca->assign('priorityid', $settings['priority']); if ($_POST) { ## Submitted new ticket foreach ($_POST as $key => $value) { $ca->assign($key, $value); } if (!$_POST['message']) { $ca->assign('errormessage', $whmcs->get_lang('supportticketserrornomessage')); } elseif ($contact = sirportly_contact()) {