function baseaddress() { $www_required = www_required(); if ($www_required) { $www = 'www.'; } else { $www = ''; } return 'http://' . $www . domain() . basepath(); }
public function enhanceTweet($tweet) { $imgs = array(); $links = findURLs($tweet['text']); foreach ($links as $link => $l) { if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) { $domain = domain($l['host']); $imgid = imgid($l['path']); if ($imgid) { if ($domain == "twitpic.com") { $imgs[$link] = "http://twitpic.com/show/thumb/" . $imgid; } if ($domain == "yfrog.com" || $domain == "yfrog.us") { $imgs[$link] = "http://yfrog.com/" . $imgid . ".th.jpg"; } if ($domain == "tweetphoto.com" || $domain == "pic.gd" || $domain == "plixi.com") { $imgs[$link] = "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link; } if ($domain == "twitgoo.com") { $values = simplexml_load_string(getURL("http://twitgoo.com/api/message/info/" . $imgid)); $imgs[$link] = (string) $values->thumburl; } if ($domain == "img.ly") { $imgs[$link] = "http://img.ly/show/thumb/" . $imgid; } if ($domain == "pict.mobi") { $imgs[$link] = "http://pict.mobi/show/thumb/" . $imgid; } if ($domain == "imgur.com") { $imgs[$link] = "http://i.imgur.com/" . $imgid . "s.jpg"; } if ($domain == "twitvid.com") { $imgs[$link] = "http://images.twitvid.com/" . $imgid . ".jpg"; } if ($domain == "instagr.am") { $html = (string) getURL($link); preg_match('/<meta property="og:image" content="[^"]+"\\/>/i', $html, $matches); if (isset($matches[0])) { $imgs[$link] = substr($matches[0], 35, -3); } } } } } if (count($imgs) > 0) { $tweet['extra']['imgs'] = $imgs; } return $tweet; }
function header_load($doc = null) { $id = ''; $onload = ''; if($doc != null) { $timestamp = time(); $id = $doc->getId(); $sig = Vuzit_Service::signature("show", $doc->getId(), $timestamp, get("p")); $onload = "initialize()"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Vuzit <?php echo get("c") ?> Command Example</title> <link href="<?php echo Vuzit_Service::getServiceUrl(); ?>/stylesheets/Vuzit-2.9.css" rel="Stylesheet" type="text/css" /> <script src="<?php echo Vuzit_Service::getServiceUrl(); ?>/javascripts/Vuzit-2.9.js" type="text/javascript"></script> <script type="text/javascript"> // Called when the page is loaded. function initialize() { vuzit.Base.apiKeySet("<?php echo Vuzit_Service::getPublicKey(); ?>"); vuzit.Base.webServerSet({ host: '<?php echo domain(); ?>', port: '80' }); vuzit.Base.imageServerSet({ host: '<?php echo domain(); ?>', port: '80' }); var options = { signature: '<?php echo rawurlencode($sig); ?>', <?php if(get("p") != null) { ?> includedPages: '<?php echo get("p"); ?>', <?php } ?> timestamp: '<?php echo $timestamp ?>'} var viewer = vuzit.Viewer.fromId("<?php echo $id; ?>", options); viewer.display(document.getElementById("vuzit_viewer"), { zoom: 1 }); } </script> </head> <body onload="<?php echo $onload; ?>"> <h2>Command: <?php echo get("c"); ?></h2> <?php }
public function enhanceTweet($tweet) { $imgs = array(); $links = findURLs($tweet['text']); foreach ($links as $link => $l) { if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) { $domain = domain($l['host']); $imgid = imgid($l['path']); if ($imgid) { if ($domain == "twitpic.com") { $imgs[$link] = "http://twitpic.com/show/thumb/" . $imgid; } if ($domain == "yfrog.com") { $imgs[$link] = "http://yfrog.com/" . $imgid . ".th.jpg"; } if ($domain == "tweetphoto.com" || $domain == "pic.gd") { $imgs[$link] = "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link; } if ($domain == "twitgoo.com") { $values = simplexml_load_string(getURL("http://twitgoo.com/api/message/info/" . $imgid)); $imgs[$link] = (string) $values->thumburl; } if ($domain == "img.ly") { $imgs[$link] = "http://img.ly/show/thumb/" . $imgid; } if ($domain == "imgur.com") { $imgs[$link] = "http://i.imgur.com/" . $imgid . "s.jpg"; } if ($domain == "twitvid.com") { $imgs[$link] = "http://images.twitvid.com/" . $imgid . ".jpg"; } } } } if (count($imgs) > 0) { $tweet['extra']['imgs'] = $imgs; } return $tweet; }
function pb_og($call = null, $data = null) { $openGraphPages = array('feed', 'products', 'questions', 'discussions', 'comments', 'tags', 'users', 'images', 'notify', 'smartsearch'); $return = null; if ($call == 'token') { if ($data === null) { $data = OG_APP; } $data = explode(':', $data); $return = pb_graph_token($data[0], $data[1]); } if ($call == 'access_token') { $data = explode(':', $data); $token = pb_time('token:' . $data[0], array('expire' => $data[1], 'key' => md5($data[1]))); $return = array('token' => $token, 'expire' => $data[1], 'key' => md5($data[1])); } if ($call == 'site') { $return = domain($data); } if (in_array($call, $openGraphPages)) { $return = pb_og_fgc($call, 'q=' . $data); } return $return; }
public function create_user($user_item, $config = array()) { $timestamp = now(); $config = array_merge(array('auto' => FALSE), $config); $auth = $this->auth_model->pass_gen($user_item['pass']); $email = array('email' => $user_item['email'], 'default' => 1, 'c_timestamp' => $timestamp); $language = $this->db->get_where('languages', array('code' => 'ENG'), 1)->row_array(); $country = $this->db->get_where('countries', array('code' => 'GB'), 1)->row_array(); $user = array('language_id' => $language['language_id'], 'country_id' => $country['country_id'], 'username' => $user_item['username'], 'timezone' => 'UTC', 'salt' => $auth['salt'], 'pass' => $auth['pass'], 'c_timestamp' => $timestamp); $color_hsl = color_hex_to_hsl(color_random_hex()); $user['color_hex'] = color_hsl_to_hex($color_hsl['h'], $this->color_hsl['s'], $this->color_hsl['l']); if (isset($user_item['base_id'])) { $user['base_id'] = $user_item['base_item']; } if (isset($user_item['name'])) { $user['name'] = $user_item['name']; } if (isset($user_item['bio'])) { $user['bio'] = $user_item['bio']; } if (isset($user_item['location'])) { $user['location'] = $user_item['location']; } if (isset($user_item['site_url'])) { $user['site_url'] = $user_item['site_url']; } if (isset($user_item['media_loc'])) { $user['media_loc'] = $user_item['media_loc']; } if (isset($user_item['color_hex'])) { $user['color_hex'] = $user_item['color_hex']; } if (isset($user_item['status_count'])) { $user['status_count'] = $user_item['status_count']; } if (isset($user_item['following_count'])) { $user['following_count'] = $user_item['following_count']; } if (isset($user_item['followers_count'])) { $user['followers_count'] = $user_item['followers_count']; } if (isset($user_item['vote_count'])) { $user['vote_count'] = $user_item['vote_count']; } if (isset($user_item['base_timestamp'])) { $user['basetimestamp'] = $user_item['base_timestamp']; } if (isset($user_item['c_timestamp'])) { $user['c_timestamp'] = $user_item['c_timestamp']; } if (isset($user_item['u_timestamp'])) { $user['u_timestamp'] = $user_item['u_timestamp']; } $email_item = array('email' => $user_item['email']['email'], 'c_timestamp' => $timestamp); if (isset($user_item['email']['default'])) { $email_item['default'] = $user_item['email']['default']; } if (isset($user_item['email']['verified'])) { $email_item['verified'] = $user_item['email']['verified']; } $this->db->trans_start(); $this->db->insert('users', $user); $user_id = $this->db->insert_id(); $email_item['user_id'] = $user_id; $email_verification = $this->create_email($email_item); $this->db->trans_complete(); if ($this->db->trans_status() === FALSE) { return FALSE; } if ($email_verification === TRUE) { return $user_id; } $this->email->to($email['email']); $this->email->from('blackhole@' . domain(base_url()), 'alt'); $this->email->subject('You\'ve Signed Yourself Up!'); $message = $this->load->view('email/templates/header', array(), TRUE); $message .= $this->load->view('email/auth/verify', array('name' => $user['username'], 'code' => $email_verification['code']), TRUE); $message .= $this->load->view('email/templates/footer', array(), TRUE); return $user_id; }
function woocmmatl() { global $wp_version; $address = $_SERVER['HTTP_HOST']; if (check_domainIP($address) == false) { $parsed_url = parse_url($address); $check = esip($parsed_url['host']); $host = $parsed_url['host']; if ($check == FALSE) { if ($host != "") { if (substr(domain($host), 0, 1) == '.') { $host = str_replace('www.', '', substr(domain($host), 1)); } else { $host = str_replace('www.', '', domain($host)); } } else { if (substr(domain($address), 0, 1) == '.') { $host = str_replace('www.', '', substr(domain($address), 1)); } else { $host = str_replace('www.', '', domain($address)); } } } } else { $host = $address; } $valuexg = get_option('wccmkelizn32aunique'); if (strpos($_SERVER['REQUEST_URI'], 'License_check_slug') || strpos($_SERVER['REQUEST_URI'], 'woocommerce-checkout-manager-pro.php')) { if (substr($_SERVER['REMOTE_ADDR'], 0, 3) == "127" || $_SERVER['REMOTE_ADDR'] == "1" || $_SERVER['REMOTE_ADDR'] == "::1") { return true; } else { if (!empty($valuexg)) { $api_url = 'http://www.trottyzone.com/wp-content/plugins/wp-licensing/auth/verify.php'; $request_string = array('body' => array('key' => $valuexg, 'domain' => $host, 'product' => 'woocommerce-checkout-manager-pro'), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')); $result['valid'] = 'true'; if (is_wp_error($result)) { update_option('errfafvetcgrt6434cwooccminfo15907833', 'connection_error'); } else { $result = json_decode($result, true); if ($result['valid'] == 'true') { update_option('errfafvetcgrt6434cwooccminfo15907833', 'clear'); } elseif ($result['info']['domain'] !== 'NA' && $result['valid'] == 'false') { update_option('errfafvetcgrt6434cwooccminfo15907833', 'change_site'); } elseif ($result['info']['domain'] == 'NA') { update_option('errfafvetcgrt6434cwooccminfo15907833', 'not_exsit'); } } if ($result['valid'] == 'true') { return true; } } } } return false; }
/** * Implements hook_civicrm_navigationMenu(). * * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu */ function tournament_civicrm_navigationMenu(&$menu) { $domain = array('domain' => domain()); $path = path(); $name = $path; // This inserts a menu at the end the bar. TODO: How to insert at beginning? _tournament_civix_insert_navigation_menu($menu, NULL, array('label' => ts('Tournament', $domain), 'name' => $name, 'url' => '')); $path = $name; $name = 'tournament_dashboard'; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Dashboard', $domain), 'name' => $name, 'url' => 'civicrm', 'permission' => 'access Contact Dashboard')); $name = 'individual_profile'; $billing_contact = billing_contact_get(); $billing_contact_id = $billing_contact["id"]; $record = named_profile_get("Billing Individual Profile"); $gid = $record["id"]; $delim = '?'; $HREF = contact_profile_HREF_data($billing_contact, $record, $delim); $label = $HREF['title']; $url = $HREF['relativeURL']; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts($label, $domain), 'name' => $name, 'url' => $url, 'permission' => 'edit my contact')); $name = 'organization_profile'; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts("Organizations", $domain), 'name' => $name, 'url' => '')); $path .= "/{$name}"; $profile = named_profile_get("Billing Organization Profile"); $billing_organizations = billing_organizations_get($billing_contact_id); if (count($billing_organizations) > 0) { foreach ($billing_organizations as $org) { $HREF = contact_profile_HREF_data($org, $profile, $delim); $label = $HREF['title']; $url = $HREF['relativeURL']; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts($label, $domain), 'name' => "{$name}_{$organization_name}", 'url' => $url, 'permission' => 'access contact reference fields')); } } $path = path(); $name = 'Profiles'; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Your players, coaches, etc.', $domain), 'name' => $name, 'permission' => 'profile edit', 'separator' => 1)); $path .= "/{$name}"; // add a menu item for each of the session billing contact's profiles $registrationProfiles = get_registrationProfiles($billing_contact_id); if (count($registrationProfiles) > 0) { foreach ($registrationProfiles as $profile) { $id = $profile["id"]; $title = $profile["title"]; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts("{$title}", array('domain' => $domain)), 'name' => "{$name}_{$id}", 'permission' => 'profile edit')); _tournament_civix_insert_navigation_menu($menu, "{$path}/{$name}_{$id}", array('label' => ts("Find Contacts", array('domain' => $domain)), 'name' => "{$name}_{$id}_list", 'url' => "civicrm/profile?gid={$id}&reset=1&force=1", 'permission' => 'profile edit')); _tournament_civix_insert_navigation_menu($menu, "{$path}/{$name}_{$id}", array('label' => ts("New Contact", array('domain' => $domain)), 'name' => "{$name}_{$id}_add", 'url' => "civicrm/profile/create?gid={$id}&reset=1", 'permission' => 'profile create')); } } $path = path(); _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Register Contacts for Tournament', $domain), 'name' => 'registration', 'permission' => 'edit event participants', 'separator' => 1)); _tournament_civix_insert_navigation_menu($menu, "{$path}/registration", array('label' => ts('Register a contact', $domain), 'name' => 'registerParticipant', 'url' => registrationRelativeURL("?"), 'permission' => 'edit event participants')); _tournament_civix_insert_navigation_menu($menu, "{$path}/registration", array('label' => ts('List/edit contacts already registered', $domain), 'name' => 'participantList', 'url' => registrationReportRelativeURL("?"), 'permission' => 'edit event participants')); $path = path(); _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Team Builder', array('domain' => $domain)), 'name' => "teamBuilder", 'permission' => 'edit groups', 'separator' => 1)); _tournament_civix_insert_navigation_menu($menu, "{$path}/teamBuilder", array('label' => ts('New Team', array('domain' => $domain)), 'name' => 'NewTeam', 'url' => "civicrm/tournament/team/add?reset=1", 'permission' => 'edit groups')); _tournament_civix_insert_navigation_menu($menu, "{$path}/teamBuilder", array('label' => ts('List/edit existing teams', array('domain' => $domain)), 'name' => 'teamList', 'url' => "civicrm/tournament/team/search", 'permission' => 'edit groups')); $path = path(); _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Advanced Operations', $domain), 'name' => 'bulkOperations', 'permission' => 'edit event participants', 'url' => bulkOperationsRelativeURL("?"), 'separator' => 1)); $path = null; $name = "TournamentAdmin"; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Tournament Admins', array('domain' => $domain)), 'name' => $name, 'permission' => 'edit all contacts')); $path = $name; $record = named_profile_get("Billing Organization Profile"); $id = $record["id"]; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Billing Organizations', array('domain' => $domain)), 'name' => 'BillingOrganizations', 'url' => "civicrm/profile?gid={$id}", 'permission' => 'view all contacts')); $record = named_report_get("Preliminary Estimates Summary"); $id = $record["id"]; _tournament_civix_insert_navigation_menu($menu, "{$path}/BillingOrganizations", array('label' => ts('Preliminary Estimates', array('domain' => $domain)), 'name' => 'PreliminaryEstimates', 'url' => "civicrm/report/instance/{$id}?reset=1", 'permission' => 'view all contacts')); $record = named_group_get("Billing Contacts"); $id = $record["id"]; _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Billing Individuals', array('domain' => $domain)), 'name' => 'BillingContacts', 'url' => "civicrm/group/search?context=smog&gid={$id}&reset=1&force=1", 'permission' => 'view all contacts')); _tournament_civix_navigationMenu($menu); }
print ' <a href="#" class="transition-300 pb-flat-btn" id="MobMenu"><span></span></a> <a href="#" class="transition-300 pb-flat-btn" id="SearchBtn"><i class="glyphicon glyphicon-search"></i></a> '; pb_isset(pb_isset_session('user_id'), ' <a href="#" class="transition-300 pb-flat-btn" id="MyCardbtn" data-overHead="#MyCardBox"><i class="zmdi zmdi-card"></i></a> <a href="#" id="NewProductbtn" class="transition-300 pb-flat-btn" data-overHead="#NewProductBox"><i class="zmdi zmdi-plus-square"></i></a> '); } ?> </div> <div class="col-md-4"> <?php $siteTitle = domain('title'); pb_isset(pb_isset_session('user_id'), ' <div class="input-group MainSearchBox transition-300"> <input type="text" class="form-control" placeholder="Search ' . $siteTitle . '" id="headerSearch"> <span class="input-group-btn"> <button class="btn" type="button"> <span class="glyphicon glyphicon-search"></span> </button> </span> </div> ', ' <a href="/includes/php/fbapp/login.php?inicode=' . PAGE_LOAD_CODE . '&ext=true&redirect_on_login=/" class="transition-300 pb-flat-btn" id="LogOnBtn"><i class="fa fa-facebook"></i> <b>Login with Facebook</b></a> <div class="input-group MainSearchBox transition-300"> <input type="text" class="form-control" placeholder="Search ' . $siteTitle . '" id="headerSearch"> <span class="input-group-btn"> <button class="btn" type="button"> <span class="glyphicon glyphicon-search"></span> </button> </span> </div>
</header> <?php pb_include('/MasterPages/MainMenu'); ?> <!-- Begin Content --> <div class="container match-window-height"> <div class="row"> <div class="col-lg-10 col-lg-offset-1 pb-page-block" style="padding-bottom:20px;min-height:50px;"> <br /> <form class="pb-main-search" autocomplete="off"> <div class="pb-main-search-wrapper"> <input type="hidden" name="" /> <input type="text" name="q" placeholder="Search <?php print domain('title'); ?> " /> <div class="pb-main-search-submit"> <input type="submit" name="s" value="" /> <i class="zmdi zmdi-search"></i> </div> </div> <div class="pb-main-search-results"></div> </form> </div> </div> </div>
if (empty($child)) { echo "</span></a></li>"; } elseif (!empty($child) || $child != null) { echo "</span><span class='fa arrow '></span></a>"; echo "<ul class='nav nav-first-level'>"; foreach ($child as $k => $v) { // echo "<li><a href='".$v['url']."'>".$v['title']."</a>"; $grandchild = $this->menu_model->getchild($v['id']); echo "<li><a href='" . domain() . $v['module'] . "/" . $v['url'] . "'><span class='nav-label'>" . $v['title']; if (empty($grandchild)) { echo "</span></a></li>"; } elseif (!empty($grandchild) || $grandchild != null) { echo "</span><span class='fa arrow '></span></a>"; echo "<ul class='nav nav-second-level'>"; foreach ($grandchild as $kunci => $val) { echo "<li><a href='#' data-remote-target='#ajax-remote' data-load-remote='" . domain() . $val['module'] . "/" . $val['url'] . "/getdatatables'>" . $val['title'] . "</a>"; } echo "</ul>"; echo "</li>"; } } echo "</ul>"; echo "</li>"; } } } ?> </ul> </div> </nav>
echo "<li class='disabled'><a href='#' title='" . $v['title'] . "'>" . $v['title']; } } else { if ($isactive == '1') { echo '<li><a class="" href="#" title="' . $v['title'] . '" data-load="' . $url3 . 'getdatatables" data-table="' . $url3 . 'tables" data-remote-target="#ajax-remote">' . $v['title'] . '</a>'; } else { echo '<li class="disabled"><a class="" href="#" title="' . $v['title'] . '" data-load="' . $url3 . 'getdatatables" data-table="' . $url3 . 'tables" data-remote-target="#ajax-remote">' . $v['title'] . '</a>'; } } if (empty($grandchild)) { echo "</a></li>"; } elseif (!empty($grandchild) || $grandchild != null) { echo "</a>"; echo "<ul class='nav nav-third-level'>"; foreach ($grandchild as $kunci => $val) { $url = domain() . $val['module'] . "/" . $val['url'] . "/"; $isajax = $val['is_ajax_url']; if ($isajax == '0') { echo "<li><a href='" . $url . "' title='" . $val['title'] . "'>" . $val['title'] . "</a>"; } else { echo '<li><a class="" title="' . $val['title'] . '" href="#" data-load="' . $url . 'getdatatables" data-table="' . $url . 'tables" data-remote-target="#ajax-remote">' . $val['title'] . '</a></li>'; } } echo "</ul>"; echo "</li>"; } } echo "</ul>"; echo "</li>"; } }
function pb_addtocart($item_id) { return '/graph/addtocart?id=' . $item_id . '&accessToken=' . pb_og('token') . '&redirect=' . domain('actual_link'); }
" class="pull-right btn btn-xs btn-warning">Semua</a> </div> <div class="panel-body"> <?php $this->load->view('recording_ayam/aktivitas_recording'); ?> </div> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4"> <a class="" href="#modal-id" data-toggle="modal" data-load="<?php echo domain(); ?> farm/recording_pakan/getdatatables" data-table="<?php echo domain(); ?> farm/recording_pakan/tables" data-remote-target="#modal-id .modal-body"> <div class="widget style1 blue-bg"> <div class="row"> <div class="col-xs-12 text-center"> <!-- <i class="fa fa-cubes fa-5x"></i> --> <img src="<?php echo assets_url(); ?> /images/Barley-64.png"> </div> <div class="col-xs-12 text-center"> <span>Feeds</span> <h3 class="font-bold">Recording Pakan</h3>
<footer class="<?php loggedClass('col-md-9', 'col-md-12'); ?> "> <div style="float: left;"> <a href="/privacypolicy">Privacy Policy</a> | <a href="/faq">FAQ's</a> | <a href="/services">Services</a> | <a href="/downloads">Downloads</a> | <a href="/s">Search</a> </div> © copyright <?php print date('Y'); ?> , <?php print domain('title'); ?> All rights reserved. <br /> <small><em style="font-size:8px"><?php print domain('domain'); ?> is not associated with or managed by Pensacola Christian College</em></small> <!-- <br /><em>Secure data is not stored localy</em> --> </footer>
<?php /** * Created by PhpStorm. * User: veoc * Date: 11/11/16 * Time: 10:49 AM */ Route::get('addresses/create', ['as' => 'front::addresses.create', 'middleware' => 'auth', 'domain' => domain(), 'uses' => 'Account\\AddressesController@create']);
?> /nl/a30/test/view-mail-template?test=3 [frgrtmai3]http://<?php echo domain('grt'); ?> /fr/a30/test/view-mail-template?test=3 [fraccmai3]http://<?php echo domain('acc'); ?> /fr/a30/test/view-mail-template?test=3 [frstamai3]http://<?php echo domain('sta'); ?> /fr/a30/test/view-mail-template?test=3 [frlivmai3]http://<?php echo domain('liv'); ?> /fr/a30/test/view-mail-template?test=3 "Basecamp E-mail dispatching":https://basecamp.com/2251956/projects/8046235/todos/157418105 Custom tabel in database: **a30_customer_registration** h3(#testing). Testing Ruben javascript checks zitten in dit bestand @/assets/src/js/utils/error_util.js@ |_. Rijksregister nr | 93051822361 | |_. Ondernemings nummer | BE1234567890 | |_. Ean code | 541448860011967136 | |_. Contingent nr | 1234 |
<?php /** * Created by PhpStorm. * User: veoc * Date: 14/12/16 * Time: 2:42 PM */ Route::get('/', ['as' => 'shop::default', 'uses' => 'Shop\\MainController@default', 'domain' => domain('shop'), 'middleware' => 'auth']);
# On retourne le resultat return $referer_light; } require_once dirname(__FILE__) . '/inc/prepend.php'; include dirname(__FILE__) . '/tpl.php'; # header('Content-type: text/html; charset=utf-8'); # Nombre de ligne a afficher $nb = 15; $sql = "SELECT\n\t\t" . $core->prefix . "user.user_id AS user_id,\n\t\tuser_fullname AS fullname,\n\t\tsite_url,\n\t\tCOUNT( post_id ) AS nb_post\n\tFROM " . $core->prefix . "post, " . $core->prefix . "user, " . $core->prefix . "site\n\tWHERE\n\t\t" . $core->prefix . "site.user_id = " . $core->prefix . "user.user_id\n\t\tAND " . $core->prefix . "user.user_id = " . $core->prefix . "post.user_id\n\t\tAND user_status = 1\n\tGROUP BY user_fullname\n\tORDER BY nb_post DESC\n\tLIMIT {$nb}"; $rs = $core->con->select($sql); while ($rs->fetch()) { $core->tpl->setVar("active", array("fullname" => $rs->fullname, "site_url" => $rs->site_url, "domain_url" => domain($rs->site_url), "nb_posts" => $rs->nb_post)); $core->tpl->render('stats.main.line'); } if ($blog_settings->get('planet_vote')) { # On recupere la liste et on affiche $sql = "SELECT\n\t\t\t" . $core->prefix . "user.user_id as user_id,\n\t\t\tuser_fullname as fullname,\n\t\t\tsite_url,\n\t\t\tSUM(post_score) AS score\n\t\tFROM " . $core->prefix . "post, " . $core->prefix . "user, " . $core->prefix . "site \n\t\tWHERE\n\t\t\t" . $core->prefix . "site.user_id = " . $core->prefix . "user.user_id\n\t\t\tAND " . $core->prefix . "user.user_id = " . $core->prefix . "post.user_id\n\t\t\tAND user_status = 1\n\t\tGROUP BY user_fullname\n\t\tORDER BY score DESC\n\t\tLIMIT {$nb}"; $rs = $core->con->select($sql); while ($rs->fetch()) { $core->tpl->setVar("votes", array("fullname" => $rs->fullname, "site_url" => $rs->site_url, "domain_url" => domain($rs->site_url), "score" => $rs->score)); $core->tpl->render('stats.votes.line'); } $core->tpl->render('stats.votes'); $core->tpl->setVar('nb_votes', getNbVotes($core->con)); $core->tpl->render('stats.votes.resume'); } $core->tpl->setVar('nb', array("nb_users" => getNbUsers($core->con), "nb_feeds" => getNbFeeds($core->con), "nb_posts" => getNbPosts($core->con))); $core->tpl->setVar('params', $params); $core->tpl->render('content.stats'); $core->renderTemplate();
<?php include "./modele/modele_connexion_bdd.php"; include "./modele/modele_fonction.php"; $pseudo = $_SESSION["pseudo"]; $id = id($pseudo); if (isset($_POST["ajouter"])) { $domain = htmlspecialchars($_POST["domain"]); $ip = $_POST["ip"]; $pseudo = $_SESSION["pseudo"]; $id = id($pseudo); $verif_domain = domain($domain); if ($verif_domain == 0) { $verif_ip = ip($ip); if ($verif_ip == 0) { add_relais($domain, $ip, $id); //exec('sudo /var/script/add-relais.sh '.$domain.' '.$ip); $alerte = "Votre nom de domaine vient d’être ajouté parcontre patientez le temps que l’adimistrateur le valide."; $results = liste_relais($id); foreach ($results as $cle => $result) { $results[$cle]["nom_domain"] = nl2br(htmlspecialchars($result["nom_domain"])); $results[$cle]["ip"] = nl2br(htmlspecialchars($result["ip"])); } include "./vue/vue_gestion_relais.php"; } else { $alerte = "Cette adresse ip existe déjà dans notre service."; $results = liste_relais($id); foreach ($results as $cle => $result) { $results[$cle]["nom_domain"] = nl2br(htmlspecialchars($result["nom_domain"])); $results[$cle]["ip"] = nl2br(htmlspecialchars($result["ip"])); }
<div class="oh-section oh-section-half"> <h3 class="pb-rule-below">Earn Points</h3> <div style="text-align: center;"> <h2 class="pb-theme-green">Invite Someone To<br /><?php print domain('domain'); ?> </h2> <p> The more you invite the more points you earn.<br /> When they respond you get more! </p> <div class="pb-half-rule"></div><br /> <p> <input class="codeSelect pb-theme-green" value="http://.s.<?php print strtolower(domain('domain')); ?> /Xt5y22i"> </p> </div> </div>
function user() { if ($_GET["ou"] == null) { org(); exit; } if ($_GET["group"] == null) { group(); exit; } if ($_GET["domain"] == null) { domain(); exit; } $html = "<H5>{$_GET["ou"]}: {$_GET["group"]}: {$_GET["domain"]}: {user}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'><img src='img/chiffre5.png'></td>\n\t<td>\n\t<p class=caption>{user_text}</p>\n\t<input type='hidden' id='ou'value='{$_GET["ou"]}'>\n\t<input type='hidden' id='group' value='{$_GET["group"]}'>\n\t<input type='hidden' id='domain' value='{$_GET["domain"]}'>\n\t<input type='hidden' id='domain_ip' value='{$_GET["domain_ip"]}'>\n\t<table style=width:100%>\n\t<tr>\n\t<td align='right'>{uid}</td>\n\t<td>\n\t" . Field_text('uid', $_GET["uid"], 'width:150px') . "\n\t</td>\n\t</tr>\n\t<tr>\n\t<td align='right'>{password}</td>\n\t<td>\n\t" . Field_text('password', $_GET["password"], 'width:150px') . "\n\t</td>\n\t</tr>\t\n\t</table>\n\t<br>\n\t<hr>\n\t<table style='width:100%'>\n\t<tr>\n\t<td><input type='button' OnClick=\"javascript:firstwizard_4();\" value='« {back}'></td>\n\t<td align='right'><input type='button' OnClick=\"javascript:Build();\" value='{build} »'></td>\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
} if (function_exists('opcache_invalidate')) { opcache_invalidate('./site.php'); } require_once './site.php'; if (isset($available_site) && is_array($available_site)) { if (isset($_GET['__cms_subsite']) && $_GET['__cms_subsite'] !== NULL) { $CMS_SUBSITE = $_GET['__cms_subsite']; } else { $actual_host_name = $_SERVER['HTTP_HOST']; $address = full_url($_SERVER); $parsed_url = parse_url($address); $check = is_ip_address($parsed_url['host']); $stripped_host_name = $parsed_url['host']; if ($check == FALSE) { $stripped_host_name = $stripped_host_name == '' ? domain($stripped_host_name) : domain($address); } $actual_host_name_parts = explode('.', $actual_host_name); $stripped_host_name_parts = explode('.', $stripped_host_name); // if there is an alias defined if (array_key_exists($actual_host_name, $site_alias) && $site_alias[$actual_host_name] != '') { $CMS_SUBSITE = $site_alias[$actual_host_name]; $USE_ALIAS = TRUE; } else { if (strlen($actual_host_name) > 0 && count($actual_host_name_parts) > count($stripped_host_name_parts)) { $CMS_SUBSITE = $actual_host_name_parts[0]; $USE_SUBDOMAIN = TRUE; } } } // define cms_subsite and wether it is valid or not
$count = count($url_domains); if ($count > 2) { $url_domain = $url_domains[$count - 2] . '.' . $url_domains[$count - 1]; } } else { $url_domain = $tab_url["host"]; } if (strcmp($referer, "") != 0) { $tab_referer = parse_url($referer); $referer_domains = $tab_referer["host"]; $check = esip($tab_referer["host"]); if ($check == FALSE) { if ($referer_domains != "") { $referer_domain = domain($referer_domains); } else { $referer_domain = domain($referer); } $referer_domains = explode(".", $referer_domain); $count = count($referer_domains); if ($count > 2) { $referer_domain = $referer_domains[$count - 2] . '.' . $referer_domains[$count - 1]; } } else { $referer_domain = $referer_domains; } if (strcmp($referer_domain, "localhost:81") == 0) { $flag = false; } } else { $referer_domain = ""; if (strcmp($url_domain, "255.250:1900") == 0) {
if (isset($available_site) && is_array($available_site)) { $cms_subsite = ''; if (isset($_GET['__cms_subsite']) && $_GET['__cms_subsite'] !== NULL) { $cms_subsite = $_GET['__cms_subsite']; define('USE_SUBDOMAIN', FALSE); } else { $actual_host_name = $_SERVER['HTTP_HOST']; $address = full_url($_SERVER); $parsed_url = parse_url($address); $check = esip($parsed_url['host']); $stripped_host_name = $parsed_url['host']; if ($check == FALSE) { if ($stripped_host_name != "") { $stripped_host_name = domain($stripped_host_name); } else { $stripped_host_name = domain($address); } } // if there is an alias defined if (isset($site_alias[$actual_host_name]) && $site_alias[$actual_host_name] != '') { $cms_subsite = $site_alias[$actual_host_name]; define('USE_SUBDOMAIN', TRUE); } else { if (strlen($actual_host_name) > 0 && count(explode('.', $actual_host_name)) > count(explode('.', $stripped_host_name))) { $host_array = explode('.', $actual_host_name); $cms_subsite = $host_array[0]; define('USE_SUBDOMAIN', TRUE); } } } // define cms_subsite and wether it is valid or not
private function getRouteDomain($routeKey) { $routeDomainMap = $this->routeDomainMap + $this->routeDomainMapDefault; return domain($routeDomainMap[$routeKey] ?? null); }
<!-- <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12 kelola" style="display:none"> --> <div class="control-group" id="fields"> </div> <!-- </div> --> <!-- <div class="container"> --> <!-- <div class="row"> --> <div class="control-group" id="fields"> <div class="controls"> <div id="form_input" class="controls"> <form action="<?php echo domain() . 'inv/beli/submit_batch'; ?> " method="POST" id="addform2" class="form" role="form"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <input type="hidden" value='' id="id" name="id"> <div class="form-group"> <?php echo form_label('Faktur : ', 'Faktur', array('class' => 'control-label')); ?> <div class="controls"> <?php echo form_input('Faktur', !empty($newpo) ? $newpo : '', 'id="Faktur" class="form-control " readonly placeholder="Enter Faktur"'); ?> </div> </div>
public function enhanceTweet($tweet) { // Finding entities $tweetextra = array(); if (!empty($tweet['extra'])) { if (is_array($tweet['extra'])) { $tweetextra = $tweet['extra']; } else { @($tweetextra = unserialize($tweet['extra'])); } } $rt = array_key_exists("rt", $tweetextra) && !empty($tweetextra['rt']); $entities = $rt ? $tweetextra['rt']['extra']['entities'] : $tweetextra['entities']; // Let's go $imgs = array(); $text = $rt ? $tweetextra['rt']['text'] : $tweet['text']; $mtext = TwitterApi::mediaLinkTweetText($text, $entities); //$text = TwitterApi::fullLinkTweetText($text, $entities); $links = findURLs($mtext); // Two link lists because media links might be different from public URLs $flinks = findURLs($text); if (!empty($links) && !empty($flinks)) { // connection between the two $linkmap = array_combine(array_keys($links), array_keys($flinks)); } $http = 'http'; // possible to change to https (if all hosts support it) foreach ($links as $link => $l) { if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) { $domain = domain($l['host']); $imgid = imgid($l['path']); if ($imgid) { if ($domain == "twimg.com") { $displaylink = $linkmap ? $linkmap[$link] : $link; $imgs[$displaylink] = $http . "://p.twimg.com" . $l['path'] . ":thumb"; } if ($domain == "twitpic.com") { $imgs[$link] = $http . "://twitpic.com/show/thumb/" . $imgid; } if ($domain == "yfrog.com" || $domain == "yfrog.us") { $imgs[$link] = $http . "://yfrog.com/" . $imgid . ".th.jpg"; } if ($domain == "tweetphoto.com" || $domain == "pic.gd" || $domain == "plixi.com") { $imgs[$link] = $http . "://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link; } if ($domain == "twitgoo.com") { $values = simplexml_load_string(getURL($http . "://twitgoo.com/api/message/info/" . $imgid)); $imgs[$link] = (string) $values->thumburl; } if ($domain == "img.ly") { $imgs[$link] = $http . "://img.ly/show/thumb/" . $imgid; } if ($domain == "pict.mobi") { $imgs[$link] = $http . "://pict.mobi/show/thumb/" . $imgid; } if ($domain == "imgur.com") { $imgs[$link] = $http . "://i.imgur.com/" . $imgid . "s.jpg"; } if ($domain == "twitvid.com") { $imgs[$link] = $http . "://images.twitvid.com/" . $imgid . ".jpg"; } if ($domain == "instagr.am") { $html = (string) getURL($link); preg_match('/<meta property="og:image" content="([^"]+)"\\s*\\/>/i', $html, $matches); if (isset($matches[1])) { $imgs[$link] = $matches[1]; } } } } } if (count($imgs) > 0) { $tweet['extra']['imgs'] = $imgs; } return $tweet; }
<?php include_once '../../../MasterPages/overhead.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <title><?php print domain('title') . ' | ' . domain('tagline'); ?> </title> <?php pb_include('/MasterPages/head'); ?> </head> <body> <header> <?php pb_include('/MasterPages/header~noAdmin'); ?> </header> <?php if (isset($_SESSION['user_id'])) { pb_include('/MasterPages/MainMenu'); } ?> <div class="container-fluid"> <div class="row"> <!-- Begin Content --> <div class="<?php pb_isset(pb_isset_session('user_id'), 'col-md-9', 'col-md-12');
/** * Validate domain exists * * @param $domain - domain to check * @param $return host - if true, will return the host name * $return bool or host string */ function verifyDomain($h, $domain, $return_host = true) { // from http://stackoverflow.com/questions/1755144/how-to-validate-domain-name-in-php if (!filter_var(gethostbyname($domain), FILTER_VALIDATE_IP) && !filter_var(gethostbyname($domain), FILTER_VALIDATE_URL)) { $h->messages[$h->lang('global_functions_error_message_no_such_domain')] = "red"; return false; } if ($return_host) { $parsed_url = parse_url($domain, PHP_URL_HOST); // if it came in just as the domain, we will return that as, otherwise, it will be false if (!$parsed_url) { $parsed_url = $domain; } $check = is_ip($parsed_url); $host = $parsed_url; if (!$check) { $host = !$host ? domain($host) : domain($domain); } // this function doesn't work so good - kludge if (substr($host, 0, 1) == '.') { $host = substr($host, 1); } // we don't need to verify ourselves if ($host == SITEURL) { return $host; } // from http://sourceforge.net/projects/phpwhois/?source=dlp //include(EXTENSIONS . 'phpwhois/whois.main.php'); $whois = new Whois(); $whois->deep_whois = false; $result = $whois->Lookup($host, false); if (isset($result['regrinfo']['registered']) && $result['regrinfo']['registered'] == 'yes') { // if host starts with www, we will remove if (substr(strtolower($host), 0, 4) === 'www.') { $host = substr($host, 4); } return $host; } $h->messages[$h->lang('global_functions_error_message_no_such_domain')] = "red"; return false; } return true; }