示例#1
0
 function logout_page()
 {
     global $CONFIG;
     // this is a wee bit messy like....
     ob_start();
     ssi_logout($CONFIG['site_url']);
     preg_match('/<a href="(.*)">/', ob_get_clean(), $matches);
     $this->boardurl = '';
     $this->redirect($matches[1]);
 }
示例#2
0
										<?php 
    }
}
?>
						</div>
						<div class="col-xs-6" style="margin-top:30px;background:#b6cee4;height:85px;text-align:center;padding-top:8px;border-radius:10px;">
							<?php 
if ($context['user']['is_guest']) {
    ssi_login();
} else {
    //You can show other stuff here.  Like ssi_welcome().  That will show a welcome message like.
    //Hey, username, you have 552 messages, 0 are new.
    echo "Logged in as:";
    echo '<hr style="height:2px;border-width:0;width:100%;color:#99b6d1;background-color:#99b6d1;margin: 5px;">';
    echo $context['user']['name'] . "<br>";
    ssi_logout();
}
?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>	
	<div class="row">
		<div class="col-xs-12">
			<?php 
include "../includes/mainmenu.php";
?>
		</div>
	</div>
示例#3
0
function user()
{
    global $context;
    if ($context['user']['is_logged']) {
        echo '<div class="user">';
        echo '<table border=0 cellpadding=5><tr>';
        if (!empty($context['user']['avatar'])) {
            echo '<td valign="top"><p class="avatar">', $context['user']['avatar']['image'], '</p></td>';
        }
        echo '<td valign="top"><b>Hello <span>', $context['user']['name'], '</span></b><br />';
        ssi_logout();
        echo '</td>';
        echo '</tr>';
        echo '</table><br />';
        echo '</div>';
    } else {
        ssi_login();
    }
}
示例#4
0
    echo $ip;
    ?>
<br />
				<b>Total posts:</b> <?php 
    echo $posts;
    ?>
<br />
			</center>
		</p>
		
		<p>
			Welcome, <?php 
    echo $name;
    ?>
 (<?php 
    ssi_logout('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
    ?>
)<br />
			<b>Inbox:</b> <?php 
    echo $messages;
    ?>
<br />
			<b>Unread:</b> <?php 
    echo $unread_messages;
    ?>
<br />
		</p>
		
	</div>
	
<?php 
示例#5
0
function navbarleft()
{
    echo "   <div class = \"navleft\">\n";
    echo "         <div class = \"box\">\n";
    if ($context['user']['is_guest']) {
        ssi_login();
    } else {
        ssi_welcome();
        echo "<br><br>\n";
        ssi_logout();
    }
    //   echo "            <form method = \"post\" action = \"contact.php\">\n";
    //   echo "            Login Here:\n";
    //   echo "            <input type = \"text\" name = \"input\" value = \"Username\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Username')\" size = \"13\"><br>\n";
    //   echo "            <input type = \"text\" name = \"input\" value = \"Password\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Password')\" size = \"13\"><br>\n";
    //   echo "            <br>\n";
    //   echo "            <input type = \"submit\" value = \"Go\">\n";
    //   echo "            </form>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            <form method = \"post\" action = \"contact.php\">\n";
    echo "            <input type = \"text\" name = \"input\" value = \"Google S.S.\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Google S.S.')\" size = \"13\">\n";
    echo "            <br><br>\n";
    echo "            <input type = \"submit\" value = \"Go\">\n";
    echo "            </form>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            Stuff<br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/archive.php\">Archive</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/pictures\">Pictures</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/rules\">Rulebook</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/about\">About</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/people\">People</a></ul><br><br>\n";
    echo "            <br><br>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            Categories<br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/events\">Events</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/league\">League News</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/turkiball\">Turkiball News</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.turkiball.com/feed/other\">Other News</a></ul><br><br>\n";
    echo "            <br><br>\n";
    echo "         </div>\n";
    echo "      </div>\n";
}
示例#6
0
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
		
		<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
	</head>

	<body>
		<div id="adminmain" style="border:2px solid black;margin:10px auto;height:auto;width:95%;">
			<?php 
if ($context['user']['is_admin']) {
    ?>
					Logged in as: <?php 
    echo $context['user']['name'];
    ?>
					<?php 
    echo ssi_logout();
    ?>
					<br><br>
					Main menu<br>
					<br>
					Add Trailcentre<br>
					Update Trailcentre<br>
						add trail<br>
						update existing trails<br>
				
				
					
				<?php 
} else {
    echo "You shouldn't be here...";
}
function navbarleft()
{
    echo "   <div class = \"navleft\">\n";
    echo "         <div class = \"box\">\n";
    if ($context['user']['is_guest']) {
        ssi_login();
    } else {
        ssi_welcome();
        echo "<br><br>\n";
        ssi_logout();
    }
    //   echo "            <form method = \"post\" action = \"contact.php\">\n";
    //   echo "            Login Here:\n";
    //   echo "            <input type = \"text\" name = \"input\" value = \"Username\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Username')\" size = \"13\"><br>\n";
    //   echo "            <input type = \"text\" name = \"input\" value = \"Password\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Password')\" size = \"13\"><br>\n";
    //   echo "            <br>\n";
    //   echo "            <input type = \"submit\" value = \"Go\">\n";
    //   echo "            </form>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            <form method = \"post\" action = \"contact.php\">\n";
    echo "            <input type = \"text\" name = \"input\" value = \"Google S.S.\" onFocus = \"clearField(this)\" onBlur = \"fillField(this, 'Google S.S.')\" size = \"13\">\n";
    echo "            <br><br>\n";
    echo "            <input type = \"submit\" value = \"Go\">\n";
    echo "            </form>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            Stuff<br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/archive.php\">Home</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/about.php\">About</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/organizations.php\">Organizations</a></ul><br><br>\n";
    echo "            <br><br>\n";
    echo "         </div>\n";
    echo "         <div class = \"box\">\n";
    echo "            Sports<br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/football\">Football</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/basketball\">Basketball</a></ul><br><br>\n";
    echo "            <ul class = \"navbutton\"><li><a href = \"http://www.guardiansportsalliance.com/turkiball\">Turkiball</a></ul><br><br>\n";
    echo "            <br><br>\n";
    echo "         </div>\n";
    echo "      </div>\n";
}
 /**
  * Short description
  *
  * Long description
  *
  * @param
  * @return
  */
 protected function show_logoutLink()
 {
     try {
         $this->loadSSI();
     } catch (Exception $e) {
         throw new \Exception($e->getMessage());
     }
     if ('echo' == $this->output_method) {
         ob_start();
         ssi_logout($this->redirect_to);
         $this->data = ob_get_contents();
         ob_end_clean();
     } else {
         $this->data = ssi_logout($this->redirect_to, $this->output_method);
     }
 }