Exemple #1
0
function show_admin_options()
{
    clus_head();
    show_menu();
    echo <<<EOF
<h1>Administration tools</h1>
<a href="">Users</a> (show-update-delete users, login as user)<br />
<a href="tables.php">Genomes and Datasets</a>
EOF;
    clus_tail();
}
function show_menu($menus = array(), $parrent = 0)
{
    $showHtmlMenuF = '';
    foreach ($menus as $key => $val) {
        if ($val['parent'] == $parrent) {
            //$showHtmlMenuF .= '<ul>';
            unset($menus[$key]);
            $showHtmlMenuF .= '<li><a href="' . $val['url'] . '" title="' . $val['name'] . '">' . $val['name'] . '</a>';
            $showHtmlMenuF .= "<ul>" . show_menu($menus, $val['id']) . "</ul>";
            $showHtmlMenuF .= '</li>';
            //$showHtmlMenuF .= '</ul>';
        }
    }
    return $showHtmlMenuF;
}
Exemple #3
0
    echo "You are Logged In as " . $l_klient;
}
?>
</table>

</td></tr>

<tr bgcolor="#E0E0E0">
<td colspan=2 width=100% height=15% align=center valign=center> GRR Database System 2
</td>
</tr>
<tr>
<td colspan=2 width=100% height=25px align=right bgcolor="#E0E0E0"> 

<?php 
show_menu();
?>


  </td>
</tr>
<tr>
<td colspan=2 width=100% height=90% align=left valign=top>

<?php 
// <p>Welcome in the System:  echo $_SESSION['name1']; </p>
?>
 
<?php 
if (isset($_GET['test'])) {
}
    $annotate = false;
}
echo colorize("***** Welcome to Aerospike Developer Training *****\n", 'blue', true);
echo colorize("Connecting to Aerospike cluster ≻", 'black', true);
if ($annotate) {
    display_code(__FILE__, __LINE__, 7);
}
$config = array("hosts" => array(array("addr" => $HOST_ADDR, "port" => $HOST_PORT)));
$client = new Aerospike($config, false);
if (!$client->isConnected()) {
    echo standard_fail($client);
    echo colorize("Connection to Aerospike cluster failed! Please check the server settings and try again!\n", 'red', true);
    exit(2);
}
echo success();
$selection = show_menu();
if ($selection === 0) {
    $client->close();
    exit(0);
}
$user_service = new \Aerospike\Training\UserService($client, $config, $annotate);
$tweet_service = new \Aerospike\Training\TweetService($client, $config, $annotate);
try {
    switch ($selection) {
        case 1:
            $username = $user_service->createUser();
            if (is_null($username)) {
                echo colorize("Skipping...\n");
            }
            $tweeted = $tweet_service->createTweet($username);
            if (!$tweeted) {
        $result = $db->query($query);
        echo "</table>";
        Success_Page("Successo!", "Modifiche apportate con successo<br>Loout in corso...");
        exit;
    }
}
$query = "\r\n\tSelect LANG, TPP, PPP, HIDESIG ,HIDEAVATAR, LEVEL\r\n\tFROM {$SNAME}_localmember\r\n\tWHERE hash = '{$userdata->HASH}'\r\n\tLIMIT 1;\r\n\t";
$current = $db->get_row($query);
//OUTPUT
if (!$is_post_back && $verify) {
    ?>
<tr><td>
<table cellspacing="0" width="100%">
	<tr>
		<td valign="top" class="nopad" width="24%"><?php 
    echo show_menu();
    ?>
</td>
		<td class="nopad" width="1%"><!-- Riga vuota --></td>
<!-- Start main CP area -->
		<td valign="top" class="nopad" width="75%">
			<div id="ucpcontent">
	<div class="maintitle"><?php 
    echo $lang['optusr_welcome'];
    ?>
</div>
	<form action="" method="post" name="REPLIER">
	<input type="hidden" name="MEM_ID" value="<?php 
    echo $mem_id;
    ?>
" />
Exemple #6
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>-->

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('speakers-profile');
?>
  

<!-- Main Content -->
<div id="MainContent">
<!-- Back to Speakers -->
<div id="BackToSpeakersContainer">
	<div id="BackToSpeakersInnerContainer">
         <a href="../speakers" target="_parent" title="Back to Speakers">      
               <img src="../../img/speakers/back-icon.png" alt="<">
               <span class="FontLato">BACK TO SPEAKERS</span>
         </a>
    </div>
</div>
<!-- END Back to Speakers -->
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('mediapartners');
?>
  
  
  <!-- END MAIN MENU -->

<!-- Sponsors -->
<section id="Sponsors">
	<!-- Sponsors List -->
	<div id="SponsorsInnerContainer">
    	<div id="WhosWhoAndDiamondImageContainer">
        	<h2 class="SponsorHeadline FontRaleway"><span>Edit Media Partner</span></h2>
    	</div>
<!-- Diamond Sponsors -->

<?php 
Exemple #8
0
    <div id="sidebar">
        <?php 
show_menu('Соглашения', $conventions);
?>
        <div class="sep"></div>
        <?php 
show_menu('Общие темы', $main_themes);
?>
        <?php 
show_menu('Поведения', $behaviors);
?>
        <?php 
show_menu('Компоненты приложения', $app_components);
?>
        <div class="sep"></div>
        <?php 
show_menu('Модули', $modules);
?>
        <div class="sep"></div>
        <?php 
show_menu('Специальные темы', $special);
?>
    </div>
    <div id="content">
        <?php 
echo $content;
?>
    </div>
</body>
</html>
<?php

require_once 'f_format.php';
show_head();
show_menu(2);
show_content();
echo '<h1>ўо доробити?</h1>';
include "todo.html";
show_content_();
show_copyright();
show_close();
?>
  
Exemple #10
0
 /**
  * Loads the theme header up
  *
  * @version 2.0
  * @since   1.0.0
  *
  * @param   bool $simple
  */
 public function showHeader($simple = false)
 {
     if ($this->header['completed']) {
         return;
     }
     $themeRoot = self::$THEME_ROOT;
     if ($this->getVar('acpMode') === true && is_dir($this->acpThemeROOT)) {
         $themeRoot = $this->acpThemeROOT;
         $simple = false;
     }
     //figure out which version of the header we wanna use
     $header = $themeRoot . ($simple == true ? 'simple_header.tpl' : 'header.tpl');
     //set simpleTpl, so anything that needs to output layout other than these funcs know what to expect
     $tplVar = $this->getVar('simpleTpl') === true ? true : ($simple === true ? true : false);
     $this->setVar('simpleTpl', $tplVar);
     //set the page header template file
     $this->objTPL->set_filenames(array('tpl_header' => $header));
     //set some vars we need later on
     $nl = "\n";
     $js = null;
     $css = null;
     $jsCode = $jsFiles = $cssCode = $cssFiles = array();
     //
     //--Load Meta Definitions
     //
     //generate an array of meta lines
     $metaArray = array('author' => $this->config('cms', 'name', 'Cybershade CMS'), 'description' => $this->config('site', 'description'), 'keywords' => $this->config('site', 'keywords'), 'copyright' => langVar('L_SITE_COPYRIGHT', $this->config('site', 'title'), $this->config('cms', 'name'), cmsVERSION), 'generator' => $this->config('cms', 'name') . ' v' . cmsVERSION, 'ROBOTS' => 'INDEX, FOLLOW', 'GOOGLEBOT' => 'INDEX, FOLLOW');
     //add a hook to it so it can be added to
     $this->objPlugins->hook('CMSPage_meta', $metaArray);
     //set a default value, and go with it
     $meta = '<meta http-equiv="content-type" content="text/html; charset=utf-8" />' . $nl;
     $meta .= '<meta http-equiv="content-language" content="' . $this->config('site', 'language') . '" />' . $nl;
     //Adding "maximum-scale=1" fixes the Mobile Safari auto-zoom bug: http://filamentgroup.com/examples/iosScaleBug/
     $meta .= '<meta name="viewport" content="width=device-width, initial-scale=1" />' . $nl;
     if (count($metaArray)) {
         foreach ($metaArray as $name => $value) {
             $meta .= sprintf('<meta name="%s" content="%s" />', $name, $value) . $nl;
         }
     }
     $meta .= '<link rel="alternate" type="application/atom+xml" title="' . $this->config('site', 'title') . ' ' . langVar('RSS_FEED') . '" href="/' . root() . 'rss.php" />' . $nl;
     //
     //--Load JS
     //
     //load in the root vars, we do this first so we can use em in the JS files etc
     $js .= '<script>' . 'var cmsROOT = "' . root() . '"; var THEME_ROOT = "' . root() . page::$THEME_ROOT . '"; ' . 'var User = { username: "******", IS_ONLINE: ' . (User::$IS_ONLINE ? 'true' : 'false') . ', IS_MOD: ' . (User::$IS_MOD ? 'true' : 'false') . ', IS_ADMIN: ' . (User::$IS_ADMIN ? 'true' : 'false') . ' }; ' . 'var Page = { row_highlight: "' . $vars['row_highlight'] . '", row_color1: "' . $vars['row_color1'] . '", row_color2: "' . $vars['row_color2'] . '" }; ' . '</script>' . $nl;
     //files first
     $jsFiles[] = '/' . root() . 'scripts/framework-min.js';
     $jsFiles[] = '/' . root() . 'scripts/extras-min.js';
     $jsFiles[] = '/' . root() . 'scripts/user.js.php';
     //load in the anything thats been passed in via addJSFiles()
     $jsFiles = array_merge($jsFiles, $this->jsFiles);
     //if the template has an extras.js add it
     if (file_exists($themeRoot . 'extras.js')) {
         $jsFiles[] = '/' . root() . 'themes/' . Page::$THEME . '/extras.js';
     }
     //hook here too
     $this->objPlugins->hook('CMSPage_jsFiles', $jsFiles);
     //now add em to the $js
     foreach ($jsFiles as $file) {
         $js .= sprintf('<script src="%s"></script>', $file) . $nl;
     }
     //support for google analytics out of the box
     if ($this->config('site', 'google_analytics', false)) {
         $jsCode[] = 'var _gaq = _gaq || []; ' . '_gaq.push(["_setAccount", "' . $this->config('site', 'google_analytics') . '"]); ' . '_gaq.push(["_trackPageview"]); ' . '(function() { ' . 'var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true; ' . 'ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js"; ' . 'var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s); ' . '})(); ';
     }
     //grab the current notifications and if needed output them to the page
     $notifGrab = $this->getVar('notifications');
     $notifications = null;
     if (!is_empty($notifGrab)) {
         $notifications = '<script type="text/javascript">$(document).ready(function(){ ' . $notifGrab . ' });</script>';
     }
     //load in the anything thats been passed in via addJSCode()
     $jsCode = array_merge($jsCode, $this->jsCode);
     //hook here too
     $this->objPlugins->hook('CMSPage_jsCode', $jsCode);
     //now add em to the $js
     foreach ($jsCode as $code) {
         $js .= '<script>' . str_replace(array("\n", "\r", "\t"), '', trim($code)) . '</script>' . $nl;
     }
     $headerJs = null;
     //this is the var we will store this JS
     $header_jsCode = array();
     $header_jsFiles = array();
     //these are for the hooks to populate
     //process the js files for the header
     $this->objPlugins->hook('CMSPage_header_jsFiles', $header_jsFiles);
     if (count($header_jsFiles)) {
         foreach ($header_jsFiles as $file) {
             $headerJs .= sprintf('<script src="%s"></script>', $file) . $nl;
         }
     }
     $this->objPlugins->hook('CMSPage_header_jsCode', $header_jsCode);
     if (count($header_jsCode)) {
         foreach ($header_jsCode as $code) {
             $headerJs .= sprintf('<script>%s</script>', str_replace(array("\n", "\r", "\t"), '', trim($code))) . $nl;
         }
     }
     //
     //--Load CSS
     //
     $cssTag = '<link rel="stylesheet" href="%s" />';
     //add the adaptive css file
     $cssFiles[] = '/' . root() . 'images/grid.adapt.css';
     //we want the default css minified dont forget!
     $cssFiles[] = '/' . root() . 'images/framework-min.css';
     $cssFiles[] = '/' . root() . 'images/extras-min.css';
     //load in the anything thats been passed in via addCSSFile()
     $cssFiles = array_merge($cssFiles, $this->cssFiles);
     //hookty hook
     $this->objPlugins->hook('CMSPage_cssFiles', $cssFiles);
     //add it to the $css
     foreach ($cssFiles as $file) {
         $css .= sprintf($cssTag, $file) . $nl;
     }
     //load in the anything thats been passed in via addCSSCode()
     $cssCode = array_merge($cssCode, $this->cssCode);
     //hook in here too
     $this->objPlugins->hook('CMSPage_cssCode', $cssCode);
     //add it to the $css
     foreach ($cssCode as $code) {
         $css .= '<style>' . $nl . str_replace(array("\n", "\r", "\t"), '', trim($code)) . $nl . '</style>' . $nl;
     }
     //
     //--Header Vars
     //
     if (file_exists($themeRoot . 'images/favicon.ico')) {
         $meta .= '<link rel="shortcut icon" href="/' . root() . $themeRoot . 'images/favicon.ico" />';
     }
     //if the site is closed, the only way they can get this far is if the user has privs so
     if ($this->config('site', 'closed') == 1) {
         $this->setVar('HEADER_MSG', langVar('L_MAINTENANCE'));
     }
     //if we want to put out a msg in the header as a warning or something
     $headerMsg = $this->getVar('HEADER_MSG');
     if (!is_empty($headerMsg)) {
         $this->objTPL->assign_vars('__MSG', array('MSG' => $headerMsg));
     }
     //get some stuff from the config so they can be called in the template
     $array = array('SITE_TITLE' => $this->config('site', 'title'), 'CMS_VERSION' => cmsVERSION, 'PAGE_TITLE' => $this->getVar('pageTitle'), '_META' => $meta, 'L_BREADCRUMB' => langVar('L_BREADCRUMB'), 'BREADCRUMB' => $this->showPagecrumbs() . '<span id="ajaxcrumb">&nbsp;</span>', '_JS_FOOTER' => $js . $notifications, '_JS_HEADER' => $headerJs, '_CSS' => $css);
     //
     //--Menu Setup
     //
     global $config;
     $noMenu = false;
     if (defined('NO_MENU') && NO_MENU == true) {
         $noMenu = true;
     }
     $menu = $this->getVar('moduleMenu');
     if ($menu['module'] === false) {
         $noMenu = true;
     }
     //we cant do nothin without any blocks
     if (!$noMenu && !is_empty($config['menu_blocks'])) {
         //if it got set to null, or wasnt set atall, default to the core menu
         if (!isset($menu['module']) || is_empty($menu['module'])) {
             $menu['module'] = 'core';
         }
         if (!isset($menu['page_id']) || is_empty($menu['page_id'])) {
             $menu['page_id'] = 'default';
         }
         //then do the output
         $menuSetup = show_menu($menu['module'], $menu['page_id']);
         if ($menuSetup) {
             $this->objTPL->assign_block_vars('menu', array());
         }
     } else {
         //if we cant show menu, may aswell set the no_menu block
         $this->objTPL->assign_block_vars('no_menu', array());
     }
     //ouput the header and set completed to 1
     $this->objTPL->assign_vars($array);
     $this->objTPL->parse('tpl_header');
     $this->header['completed'] = 1;
 }
Exemple #11
0
        $ar['was'] = 2;
    }
} else {
    $ar = array('allboxes' => '', 'was' => '', 'getfuerB' => '', 'cwebene' => '', 'cwmenu' => $wo, 'allmenus' => '', 'bname' => '', 'posi' => '', 'apos' => '', 'awo' => '', 'link2' => '', 'alllinkss' => '', 'menutyp' => '');
}
$tpl = new tpl('menu', 1);
$boxenArNav = get_boxes_array();
$menuArNav = get_links_array();
$ar_cwmenu = array();
for ($i = 1; $i <= 5; $i++) {
    $ar_cwmenu[$i] = 'Men&uuml; 0' . $i;
}
$ar_cwebene = array();
for ($i = 0; $i <= 4; $i++) {
    $ar_cwebene[$i] = 'Ebene 0' . ($i + 1);
}
$ar_cwwas = array(1 => 'Box', 2 => 'Men&uuml;', 7 => 'Men&uuml;punkt wahl', 8 => 'Men&uuml;punkt extern', 9 => 'Men&uuml;punkt intern');
$ar_menutyp = array(2 => 'Vertikal', 1 => 'Horizontal');
$ar['allboxes'] = arliste($ar['allboxes'], $boxenArNav, $tpl, 'allboxes');
$ar['alllinkss'] = arliste($ar['alllinkss'], $menuArNav, $tpl, 'alllinkss');
$ar['getfuerB'] = dbliste($ar['getfuerB'], $tpl, 'getfuerB', "SELECT id,name FROM prefix_grundrechte ORDER BY id DESC");
$ar['cwmenu'] = arliste($ar['cwmenu'], $ar_cwmenu, $tpl, 'cwmenu');
$ar['cwebene'] = arliste($ar['cwebene'], $ar_cwebene, $tpl, 'cwebene');
$ar['cwwas'] = arliste($ar['was'], $ar_cwwas, $tpl, 'cwwas');
$ar['menutyp'] = arliste($ar['menutyp'], $ar_menutyp, $tpl, 'menutyp');
# ausgabe
$tpl->out(0);
show_menu($wo);
$tpl->set_ar($ar);
$tpl->out(1);
$design->footer();
Exemple #12
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('alacarte');
?>
  
  
  <!-- END MAIN MENU -->






<!-- Sponsors -->
<section id="Sponsors">
	<!-- Sponsors Grid -->
  <div id="SponsorGrid">
 	<!-- Sponsors Grid Container -->
Exemple #13
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('sponsors');
?>
  
  
  <!-- END MAIN MENU -->

<!-- Sponsors -->
<section id="Sponsors">
	<!-- Sponsors List -->
	<div id="SponsorsInnerContainer">
    	<div id="WhosWhoAndDiamondImageContainer">
        	<h2 class="SponsorHeadline FontRaleway"><span>Diamond</span></h2>
    	</div>
<!-- Diamond Sponsors -->

<?php 
<?php

require_once 'f_format.php';
show_head();
show_menu(1);
show_content();
echo '<h1>Історія версій</h1>';
include "history.html";
show_content_();
show_copyright();
show_close();
?>
  
function resign()
{
    global $uid;
    $sth = mysql_query("select a.id,a.leader,a.devminister,a.milminister,a.forminister from alliance a,users u where u.alliance=a.id and u.id=" . $uid);
    if (!$sth || mysql_num_rows($sth) == 0) {
        show_error("ERR::GET INFOS");
        return false;
    }
    $alliance = mysql_fetch_assoc($sth);
    // mop: hatter denn nen posten?
    switch ($uid) {
        case $alliance["leader"]:
            $field = "leader";
            $text = "Leader";
            break;
        case $alliance["devminister"]:
            $field = "devminister";
            $text = "Minister of Development";
            break;
        case $alliance["forminister"]:
            $field = "forminister";
            $text = "Foreign Minister";
            break;
        case $alliance["milminister"]:
            $field = "milminister";
            $text = "Minister of Defence";
            break;
        default:
            $field = false;
    }
    if (!$field) {
        show_error("EVIL! EVIL!");
        return false;
    }
    $sth = mysql_query("update alliance set " . $field . "=0 where id=" . $alliance["id"]);
    if (!$sth) {
        show_error("ERR::RESIGN");
        return false;
    }
    show_menu();
    show_message("You have resigned as " . $text);
    // mop: leute informieren
    $members = get_alliance_members($alliance["id"]);
    foreach ($members as $uid => $name) {
        ticker($uid, "Your " . $text . " has resigned!", "w");
    }
}
function page_menu($aParent = 0, $menu_number = 1, $item_template = '<li[class]>[a][menu_title][/a]</li>', $menu_header = '<ul>', $menu_footer = '</ul>', $default_class = ' class="menu_default"', $current_class = ' class="menu_current"', $recurse = LEVEL)
{
    show_menu($menu_number, 0, $recurse + 2, true, $item_template, '', $menu_header, $menu_footer, $default_class, $current_class, $aParent);
}
Exemple #17
0
    switch ($menu_style) {
        case 'inline':
            $logo_align = $_SESSION['theme']['logo_align']['text'] != '' ? $_SESSION['theme']['logo_align']['text'] : 'left';
            echo str_replace("center", $logo_align, $open_container);
            if ($_SERVER['PHP_SELF'] != PROJECT_PATH . "/core/install/install.php") {
                $logo = $_SESSION['theme']['logo']['text'] != '' ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH . "/themes/default/images/logo.png";
                echo "<a href='" . (PROJECT_PATH != '' ? PROJECT_PATH : '/') . "'><img src='" . $logo . "' style='padding: 15px 20px;'></a>";
            }
            show_menu($menu_array, $menu_style, $menu_position);
            break;
        case 'static':
            echo $open_container;
            show_menu($menu_array, $menu_style, $menu_position);
            break;
        case 'fixed':
            show_menu($menu_array, $menu_style, $menu_position);
            echo $open_container;
    }
    ?>

			<div id='main_content'>
				<!--{body}-->
			</div>
			<div id='footer'>
				<span class='footer'><?php 
    echo isset($_SESSION['theme']['footer']['text']) ? $_SESSION['theme']['footer']['text'] : "&copy; " . $text['theme-label-copyright'] . " 2008 - " . date("Y") . " <a href='http://www.fusionpbx.com' class='footer' target='_blank'>fusionpbx.com</a> " . $text['theme-label-all_rights_reserved'];
    ?>
</span>
			</div>
		</div>
Exemple #18
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>-->

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('speakers');
?>
  
  
  <!-- END MAIN MENU -->
<!-- Header -->
<header>
  <!-- Place the header here -->
</header>
<!-- END Header -->


<!-- Main Content -->
<div id="MainContent">
<!-- Search bar -->
<div id="SearchBarContainer">
Exemple #19
0
<?php

defined('DT_ADMIN') or exit('Access Denied');
include tpl('header');
show_menu($menusad);
?>
<form method="post" action="?" id="runcode_form" target="_blank">
<input type="hidden" name="moduleid" value="<?php 
echo $moduleid;
?>
"/>
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="runcode"/>
<input type="hidden" name="codes" value=""/>
</form>
<form method="post" action="?" id="dform" onsubmit="return check();">
<input type="hidden" name="moduleid" value="<?php 
echo $moduleid;
?>
"/>
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="<?php 
echo $action;
?>
"/>
Exemple #20
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>-->

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('press_profile');
?>
  

<!-- Main Content -->
<div id="MainContent">
<!-- Back to Speakers -->
<div id="BackToSpeakersContainer">
	<div id="BackToSpeakersInnerContainer">
         <a href="../press" target="_parent" title="Back to Speakers">      
               <img src="../../img/speakers/back-icon.png" alt="<">
               <span class="FontLato">BACK TO PRESS PAGE</span>
         </a>
    </div>
</div>
<!-- END Back to Speakers -->
                }
            } else {
                $arr2['id'] = $idMenu;
                $arr2['url'] = $showHtmlUrl;
                $arr2['name'] = $nameMenu;
                $arr2['parent'] = $idMenu;
                array_push($arr_total, $arr2);
            }
        } else {
            $arr1['id'] = $idMenu;
            $arr1['url'] = $showHtmlUrl;
            $arr1['name'] = $nameMenu;
            $arr1['parent'] = $idMenu;
            array_push($arr_total, $arr1);
        }
        $showHtmlMenuLi .= show_menu($arr_total, $idMenu);
    }
}
if ($code_frame == '') {
    $cssmenuaaHome = 'topmenu-focus';
} else {
    $cssmenuaaHome = '';
}
$items = 0;
if (isset($_SESSION['cart'])) {
    $cart = $_SESSION['cart'];
    foreach ($cart as $product) {
        $items++;
    }
}
$showhtmlAdvAllLi1 = '';
<?php

require "../settings.php";
$OUTPUT = show_menu();
require "../template.php";
function show_menu()
{
    extract($_REQUEST);
    if (!isset($month_to)) {
        $month_to = date("m");
    }
    if (!isset($from_year)) {
        $from_year = date("Y");
    }
    if (!isset($from_month)) {
        $from_month = date("m");
    }
    if (!isset($from_day)) {
        $from_day = "01";
    }
    if (!isset($to_year)) {
        $to_year = date("Y");
    }
    if (!isset($to_month)) {
        $to_month = date("m");
    }
    if (!isset($to_day)) {
        $to_day = date("d");
    }
    # validate input
    require_lib("validate");
Exemple #23
0
 *
 */
require_once "config.php";
require_once dirname(__FILE__) . '/../Common/Common.php';
require_once 'Market/MarketClient.class.php';
$consumer = new etOAuthConsumer(ETWS_APP_KEY, ETWS_APP_SECRET);
$consumer->oauth_token = OAUTH_ACCESS_TOKEN;
$consumer->oauth_token_secret = OAUTH_ACCESS_TOKEN_SECRET;
$ac_obj = new MarketClient($consumer);
echo "-------------------------------------------------\n";
echo "Welcome to Market SDK test utility.\n";
echo "-------------------------------------------------\n";
$valid_choice = array(0, 1, 2, 3, 4, 5, 6);
$choice = '1';
while (in_array($choice, $valid_choice)) {
    $choice = show_menu();
    try {
        switch ($choice) {
            case 1:
                $request_params = new getOptionChainsParams();
                $request_params->__set('expirationMonth', '1');
                $request_params->__set('expirationYear', '2015');
                $request_params->__set('chainType', 'PUT');
                $request_params->__set('skipAdjusted', 'true');
                $request_params->__set('underlier', 'GOOG');
                $out = $ac_obj->getOptionChain($request_params);
                break;
            case 2:
                $request_params = new productLookupParams();
                $request_params->__set('company', 'cisco');
                $request_params->__set('type', 'eq');
<?php

require_once 'f_format.php';
show_head();
show_menu(3);
show_content();
echo '<h1>Бібліотека</h1>';
include "library.html";
show_content_();
show_copyright();
show_close();
?>
  
Exemple #25
0
            		readfile($file);*/
            echo $res;
        } else {
            echo 'Ошипка..';
        }
    }
    die;
}
// конец списов файлов в кроссе/муфту
if (empty($_GET)) {
    $text = 'Главная страница';
    $content = '
			<a class="button" href="/fibers/geomap.php" target="_blank">Карта сети</a>';
    if ($_SESSION['group'] <= 5) {
        $content .= '<a class="button" target="_blank" href="http://' . $host . ':8080/geoexplorer/composer/?layers=opengeo%3Acable,opengeo%3Acable_reserve,opengeo%3Anode" />Редактор карты</a>';
    }
    if ($_SESSION['group'] == 0) {
        $content .= '<a class="button" href="http://' . $host . ':8080/dashboard/" target="_blank">OpenGeo</a>';
    }
    // ссылки на главной
    //	if($_SERVER['REMOTE_ADDR']=='192.168.6.12' || $_SERVER['REMOTE_ADDR']=='192.168.6.6') {
    $content .= '<div>
				<h3>Полезные ссылки:</h3>
				<a href="http://incab.ru/choice_pod_ok/" target="_blank">Инкаб Проектирование</a><br>
				<a href="http://incab.ru/useful-information/documents/" target="_blank">Инкаб Библиотека</a><br>
				<a href="http://altayok.ru/techinfo/cvetovaia_identifikaciia_opticheskih_volokon_i_modylei/" target="_blank">Цветовая идентификация оптических волокон и модулей (Алтайкабель)</a><br>
			</div>';
    //	}
    show_menu($text);
    die;
}
function gate()
{
    global $PHP_SELF;
    global $uid;
    global $password;
    $sth = mysql_query("select admin,name,apw from users where id={$uid}");
    if (!$sth) {
        show_message("Databse Failure");
        return 0;
    }
    if (mysql_num_rows($sth) == 0) {
        show_message("Forbidden");
        return 0;
    }
    $admin = mysql_fetch_array($sth);
    if ($admin["apw"] != $password or $admin["admin"] == "") {
        show_message("Acces denied");
        return 0;
    } else {
        show_menu();
    }
}
Exemple #27
0
<?php

session_start();
require_once '../config.php';
require_once '../database.php';
require_once '../ui.php';
show_header('../');
show_menu('../');
#Authentication:
if (!isset($_SESSION['admin'])) {
    if (!isset($_POST['pwd'])) {
        include 'login.php';
    } else {
        $user = list_users('admin');
        print_r($user);
        print_r($_POST);
        if ($user['upassword'] == $_POST['pwd']) {
            $_SESSION['admin'] = 'yes';
            print 'Access granted.';
        } else {
            print 'Wrong password!';
        }
    }
}
if (isset($_SESSION['admin'])) {
    $devices = list_secrets();
    $settings = list_settings();
    show_settings($settings);
    show_devices($devices);
}
include '../html_footer.html';
Exemple #28
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('agenda');
?>
  
  
  <!-- END MAIN MENU -->

<!-- Stage Mobile Bar -->
<div id="StageMobileBar">
	<span id="MobileStageName" class="TalentSummitColor">Talent Summit</span>
    <i id="MobileStageListButton" class="fa fa-bars"></i>
</div>
<!-- END Stage Mobile Bar -->

<!-- Stage List 1 -->
<div id="StageList">
    <!-- Stage List Button -->
<?php

defined('DT_ADMIN') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form method="post" action="?" onsubmit="return check();">
<input type="hidden" name="moduleid" value="<?php 
echo $moduleid;
?>
"/>
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="<?php 
echo $action;
?>
"/>
<input type="hidden" name="job" value="<?php 
echo $job;
?>
"/>
<input type="hidden" name="fid" value="<?php 
echo $fid;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
Exemple #30
0
  _gaq.push(['_setAccount', 'UA-55976467-1']);
  _gaq.push(['_trackPageview']);

  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<?php 
include_once 'views/menu.php';
show_menu('press');
if (isset($_SESSION['super_admin'])) {
    $content = $sponsors->display_notifications();
    if (isset($content) && $content != '') {
        echo '<ul id="NotificationCenter"> ';
        echo $content;
        echo '</ul>';
    }
}
?>
  
<!-- END MAIN MENU -->

<!-- Header -->
<header>
  <div id="HeaderInnerContainer">