mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Add mobile responsiveness fix #61
This commit is contained in:
parent
031101d305
commit
7be7a0a2bd
125
admin/header.php
125
admin/header.php
@ -1,65 +1,74 @@
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('../config.php');echo $wsa;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo '../css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src='select_url.js'></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
<head>
|
||||
<title><?php require_once('../config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo '../css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="../css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="../favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-default navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="../index.php"><?php require_once('../config.php');echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php
|
||||
require_once('../lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock();
|
||||
?>
|
||||
<?php require_once('../config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px; color:white;">
|
||||
<h2>Login</h2>
|
||||
<form action="../handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(true); ?>
|
||||
</ul>
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="../index.php"><?php echo $wsn;?></a>
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="../about.php">About</a></li>
|
||||
<li class="visible-xs"><a href="index.php">Sign In/Dashboard</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav hidden-xs">
|
||||
<?php require_once('../lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('../config.php'); if ($regtype != 'none'){ echo '<li><a href="../register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="../handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);">
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);">
|
||||
|
@ -1,65 +1,74 @@
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('../config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo '../css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="../css/main.css"/>
|
||||
<link rel="shortcut icon" href="../favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src='../select_url.js'></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
<head>
|
||||
<title><?php require_once('../config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo '../css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="../css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="../favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-inverse navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="../index.php"><?php require_once('../config.php');echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="../about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php
|
||||
require_once('../lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock();
|
||||
?>
|
||||
<?php require_once('../config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px; color:white;">
|
||||
<h2>Login</h2>
|
||||
<form action="../handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(true); ?>
|
||||
</ul>
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="../index.php"><?php echo $wsn;?></a>
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="../about.php">About</a></li>
|
||||
<li class="visible-xs"><a href="index.php">Sign In/Dashboard</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav hidden-xs">
|
||||
<?php require_once('../lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('../config.php'); if ($regtype != 'none'){ echo '<li><a href="../register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="../handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="text-align:left; padding-top:5px; background-color: rgba(0,0,0,0);">
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="background-color: rgba(0,0,0,0);">
|
||||
|
@ -158,6 +158,6 @@ else {
|
||||
echo $decodescript;
|
||||
echo "<div style='text-align:center;padding-left:11%;padding-right:11%;'><h3>URL:</h3> <input type='text' id='i' onselect=\"select_text();\" onclick=\"select_text();\" readonly=\"readonly\" class='form-control' value=\"Please enable JavaScript\" />";
|
||||
}
|
||||
echo '<br><a href="index.php" class="btn btn-primary btn-large">Shorten Another Link</a></div>';
|
||||
echo '<br><a href="index.php" class="btn btn-primary btn-large">Shorten Another Link</a></div><script>function select_text(){var a=document.getElementById("i");a&&(a.focus(),a.select())}window.onload=select_text;</script>';
|
||||
|
||||
require_once('layout-footerlg.php');
|
||||
|
150
index.php
150
index.php
@ -6,131 +6,27 @@ if (!@include('config.php')) {
|
||||
if (strlen($_SESSION['username']) < 1 && $li_show_front === true) {
|
||||
die("<h1>400 Forbidden</h1><em><a href='login.php'>Login</a> to access this resource.</em>");
|
||||
}
|
||||
|
||||
require_once('layout-headerlg.php');
|
||||
?>
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.btn-toggle').click(function() {
|
||||
$(this).find('.btn').toggleClass('active');
|
||||
|
||||
if ($(this).find('.btn-primary').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-primary');
|
||||
}
|
||||
if ($(this).find('.btn-danger').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-danger');
|
||||
}
|
||||
if ($(this).find('.btn-success').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-success');
|
||||
}
|
||||
if ($(this).find('.btn-info').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-info');
|
||||
}
|
||||
|
||||
$(this).find('.btn').toggleClass('btn-default');
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-default navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php include('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);">
|
||||
<h1 class='title'><?php require_once('config.php');echo $wsn;?></h1>
|
||||
<form id='shortenform' method="POST" action="createurl.php" role="form">
|
||||
<input type="text" class="form-control" placeholder="URL" id="url" value="http://" name="urlr" />
|
||||
<div id='options'>
|
||||
<br />
|
||||
<div class="btn-group btn-toggle" data-toggle="buttons">
|
||||
<label class="btn btn-primary btn-sm active">
|
||||
<input type="radio" name="options" value="p" checked=""> Public
|
||||
</label>
|
||||
<label class="btn btn-sm btn-default">
|
||||
<input type="radio" name="options" value="s"> Secret
|
||||
</label>
|
||||
</div> <br /><br />
|
||||
<br>Customize link: <br><div style='color: green'><h2 style='display:inline'><?php require_once('config.php');echo $wsa;?>/</h2><input type='text' id='custom' title='After entering your custom ending, if the ending is available, enter your long URL into box above and press "Shorten"!' name='custom' /><br>
|
||||
<a href="#" class="btn btn-inverse btn-sm" id='checkavail'>Check Availability</a><div id='status'></div></div>
|
||||
</div>
|
||||
<br><input type="submit" class="btn btn-info" id='shorten' value="Shorten!"/> <a href="#" class="btn btn-warning" id='showoptions'>Link Options</a>
|
||||
<input type="hidden" id="hp" name="hp" value="<?php echo $hp; ?>"/>
|
||||
</form>
|
||||
<br><br><div id="tips" class='text-muted'><i class="fa fa-spinner"></i> Loading Tips...</div>
|
||||
</div>
|
||||
<div id="polrfooter">
|
||||
<footer>
|
||||
<?php require_once('config.php');if($hidefooter==true){echo "<!--";}?><p id="footer-pad">© Copyright <?php require_once('version.php');echo $relyear;?> The Polr Project. Proudly powered by <a href="//github.com/cydrobolt/polr">Polr</a></p> <?php require_once('config.php');if($hidefooter==true){echo "-->";}?>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<h1 class='title'><?php require_once('config.php');echo $wsn;?></h1>
|
||||
<form id='shortenform' method="POST" action="createurl.php" role="form">
|
||||
<input type="text" class="form-control" placeholder="URL" id="url" value="http://" name="urlr" />
|
||||
<div id='options'>
|
||||
<br />
|
||||
<div class="btn-group btn-toggle" data-toggle="buttons">
|
||||
<label class="btn btn-primary btn-sm active">
|
||||
<input type="radio" name="options" value="p" checked=""> Public
|
||||
</label>
|
||||
<label class="btn btn-sm btn-default">
|
||||
<input type="radio" name="options" value="s"> Secret
|
||||
</label>
|
||||
</div> <br /><br />
|
||||
<br>Customize link: <br><div style='color: green'><h2 style='display:inline'><?php require_once('config.php');echo $wsa;?>/</h2><input type='text' id='custom' title='After entering your custom ending, if the ending is available, enter your long URL into box above and press "Shorten"!' name='custom' /><br>
|
||||
<a href="#" class="btn btn-inverse btn-sm" id='checkavail'>Check Availability</a><div id='status'></div></div>
|
||||
</div>
|
||||
<br><input type="submit" class="btn btn-info" id='shorten' value="Shorten!"/> <a href="#" class="btn btn-warning" id='showoptions'>Link Options</a>
|
||||
<input type="hidden" id="hp" name="hp" value="<?php echo $hp; ?>"/>
|
||||
</form>
|
||||
<br><br><div id="tips" class='text-muted'><i class="fa fa-spinner"></i> Loading Tips...</div>
|
||||
<?php require_once('layout-footerlg.php');
|
||||
|
39
js/index.js
39
js/index.js
@ -6,7 +6,7 @@ $(function() {
|
||||
optionsbutton.click(function() {
|
||||
//var absfoot = $('#polrfooter').html();
|
||||
//var pfoot = '<p id="footer">© Copyright 2014 Polr</p>';
|
||||
if(slid==0) {
|
||||
if (slid===0) {
|
||||
$("#options").slideDown();
|
||||
slid = 1;
|
||||
}
|
||||
@ -38,7 +38,7 @@ request.done(function( msg ) {
|
||||
$('#status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occured. Try again</span>'+msg);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
request.fail(function( jqXHR, textStatus ) {
|
||||
$('#status').html(' <span style="color:red"><i class="fa fa-exclamation-circle"></i> An error occured. Try again</span>'+textstatus);
|
||||
});
|
||||
@ -48,11 +48,11 @@ request.fail(function( jqXHR, textStatus ) {
|
||||
var i = Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
changeTips(i);
|
||||
var tipstimer=setInterval(function(){changeTips(i);i++;},8000);
|
||||
|
||||
|
||||
function setTip(tip) {
|
||||
$("#tips").html(tip);
|
||||
}
|
||||
|
||||
|
||||
function changeTips(tcase) {
|
||||
switch(tcase) {
|
||||
case 1:
|
||||
@ -63,8 +63,37 @@ request.fail(function( jqXHR, textStatus ) {
|
||||
break;
|
||||
case 3:
|
||||
setTip('Did you know you can change the URL ending by clicking on "Link Options"?');
|
||||
break;
|
||||
i = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
$('.btn-toggle').click(function() {
|
||||
$(this).find('.btn').toggleClass('active');
|
||||
|
||||
if ($(this).find('.btn-primary').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-primary');
|
||||
}
|
||||
if ($(this).find('.btn-danger').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-danger');
|
||||
}
|
||||
if ($(this).find('.btn-success').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-success');
|
||||
}
|
||||
if ($(this).find('.btn-info').size()>0) {
|
||||
$(this).find('.btn').toggleClass('btn-info');
|
||||
}
|
||||
|
||||
$(this).find('.btn').toggleClass('btn-default');
|
||||
|
||||
});
|
||||
});
|
||||
|
@ -1,7 +1,6 @@
|
||||
</div>
|
||||
<footer>
|
||||
<?php require_once('config.php');if($hidefooter==true){echo "<!--";}?><p id="footer-pad">© Copyright <?php require_once('version.php');echo $relyear;?> The Polr Project. Proudly powered by <a href="//github.com/cydrobolt/polr">Polr</a></p> <?php require_once('config.php');if($hidefooter==true){echo "-->";}?>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,6 +1,7 @@
|
||||
</div>
|
||||
<?php require_once('config.php');if($hidefooter==true){echo "<!--";}?><p id="footer-pad">© Copyright <?php require_once('version.php');echo $relyear;?> The Polr Project. Proudly powered by <a href="//github.com/cydrobolt/polr">Polr</a></p> <?php require_once('config.php');if($hidefooter==true){echo "-->";}?>
|
||||
|
||||
</div>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -1,65 +1,74 @@
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src='select_url.js'></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-default navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="index.php"><?php echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php
|
||||
require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock();
|
||||
?>
|
||||
<?php if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
</ul>
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a>
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
<li class="visible-xs"><a href="admin">Sign In/Dashboard</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav hidden-xs">
|
||||
<?php require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);">
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="text-align:center; padding-top:80px; background-color: rgba(0,0,0,0);">
|
||||
|
@ -1,65 +1,74 @@
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src='select_url.js'></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-default navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php
|
||||
require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock();
|
||||
?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
</ul>
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a>
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
<li class="visible-xs"><a href="admin">Sign In/Dashboard</a></li>
|
||||
</ul>
|
||||
<ul id="navbar" class="nav pull-right navbar-nav hidden-xs">
|
||||
<?php require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="jumbotron" style="text-align:left; padding-top:5px; background-color: rgba(0,0,0,0);">
|
||||
|
@ -1,64 +1,74 @@
|
||||
<!--
|
||||
# Copyright (C) 2013-2015 Chaoyi Zha
|
||||
# Polr is an open-source project licensed under the GPL.
|
||||
# The above copyright notice and the following license are applicable to
|
||||
# the entire project, unless explicitly defined otherwise.
|
||||
# http://github.com/cydrobolt/polr
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
# See http://www.gnu.org/copyleft/gpl.html for the full text of the
|
||||
# license.
|
||||
#
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<script src='select_url.js'></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Setup drop down menu
|
||||
$('.dropdown-toggle').dropdown();
|
||||
// Fix input element click problem
|
||||
$('.dropdown input, .dropdown label').click(function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar navbar-default navbar-fixed-top"><div class="navbar-header"><a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a></div>
|
||||
<!--<a class="btn btn-navbar btn-default" data-toggle="collapse" data-target="#nbc">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>-->
|
||||
<head>
|
||||
<title><?php require_once('config.php');echo $wsn;?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?php if (!$theme) {echo 'css/bootstrap.css';}else {echo $theme;}?>"/>
|
||||
<link rel="stylesheet" href="css/main.css"/>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
|
||||
|
||||
<ul class="nav navbar-collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right navbar-nav">
|
||||
<?php
|
||||
require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock();
|
||||
?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
</ul>
|
||||
</head>
|
||||
<body style="padding-top:60px">
|
||||
<div class="container-fluid">
|
||||
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="index.php"><?php require_once('config.php');echo $wsn;?></a>
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="about.php">About</a></li>
|
||||
<li class="visible-xs"><a href="admin">Sign In/Dashboard</a></li>
|
||||
</ul>
|
||||
<ul id="navbar" class="nav pull-right navbar-nav hidden-xs">
|
||||
<?php require_once('lib-auth.php');
|
||||
$polrauth = new polrauth();
|
||||
$polrauth->headblock(); ?>
|
||||
<?php require_once('config.php'); if ($regtype != 'none'){ echo '<li><a href="register.php">Sign Up</a></li>';}?>
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
|
||||
<div class="dropdown-menu pull-right" id="dropdown" style="padding: 15px; padding-bottom: 0px;">
|
||||
<h2>Login</h2>
|
||||
<form action="handle-login.php" method="post" accept-charset="UTF-8">
|
||||
<input id="user_username" style="margin-bottom: 15px;" type="text" name="username" placeholder='Username' size="30" class="form-control">
|
||||
<input id="user_password" style="margin-bottom: 15px;" type="password" name="password" placeholder='Password' size="30" class="form-control">
|
||||
<input class="btn btn-success form-control" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="login" value="Sign In">
|
||||
<br><br>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
<?php $polrauth->headendblock(); ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div style="text-align:left; padding-top:5px; background-color: rgba(0,0,0,0);">
|
||||
|
Loading…
Reference in New Issue
Block a user