Signed-off-by: Yandols <cs_aero2@yahoo.com>migrationdev
commit
60127aab90
@ -0,0 +1,30 @@
|
||||
# Standard Declaration Procedures for Imeji System
|
||||
ErrorDocument 403 /403.php
|
||||
ErrorDocument 404 /404.php
|
||||
IndexOptions +FancyIndexing
|
||||
IndexIgnore *.php *.html *.css *.js
|
||||
|
||||
# HTTPS Redirection
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
# Force Uploaded Imejis to load via HTTP instead of HTTPS due to backwards compatibility problem on some platforms.
|
||||
# SHOULD no longer be needed after the switch to LetsEncrypt on 31/07/2016
|
||||
#RewriteCond %{HTTPS} on
|
||||
#ReWriteCond %{REQUEST_URI} \w(\.png|\.jpeg|\.jpg|\.gif)$
|
||||
#RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
||||
|
||||
# Hackerbots Prevention
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
||||
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
||||
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
||||
|
||||
#Preventing Public Access to Logs file
|
||||
<FilesMatch "uploads.log">
|
||||
AuthType Basic
|
||||
AuthName "Restricted Area"
|
||||
AuthUserFile /var/www/passes/imeji/.htpasswd
|
||||
Require valid-user
|
||||
</FilesMatch>
|
@ -0,0 +1,24 @@
|
||||
# Standard Declaration Procedures for Imeji System
|
||||
ErrorDocument 403 /403.php
|
||||
ErrorDocument 404 /404.php
|
||||
IndexOptions +FancyIndexing
|
||||
IndexIgnore *.php *.html *.css *.js
|
||||
|
||||
# Force Uploaded Imejis to load via HTTP instead of HTTPS due to backwards compatibility problem on some platforms.
|
||||
RewriteCond %{HTTPS} on
|
||||
ReWriteCond %{REQUEST_URI} \w(\.png|\.jpeg|\.jpg|\.gif)$
|
||||
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
||||
|
||||
# Hackerbots Prevention
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTP_USER_AGENT} ^ZmEu [OR]
|
||||
RewriteCond %{HTTP_USER_AGENT} (.*)Msqq(.*)
|
||||
RewriteRule .* http://www.urbandictionary.com/define.php?term=fuck+you [R=301,L]
|
||||
|
||||
#Preventing Public Access to Logs file
|
||||
<FilesMatch "uploads.log">
|
||||
AuthType Basic
|
||||
AuthName "Restricted Area"
|
||||
AuthUserFile /var/www/passes/imeji/.htpasswd
|
||||
Require valid-user
|
||||
</FilesMatch>
|
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js" xmlns:og="https://ogp.me/ns#">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#ff89c9">
|
||||
<title>Imeji Uploader - Error</title>
|
||||
<link rel="shortcut icon" href="https://zxicar.us/favicon.ico">
|
||||
<link rel="icon" type="image/png" href="https://zxicar.us/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="https://zxicar.us/favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="https://zxicar.us/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://zxicar.us/apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://zxicar.us/apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://zxicar.us/apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="https://zxicar.us/apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="https://zxicar.us/apple-touch-icon-152x152.png" />
|
||||
<meta name="application-name" content="I.C.A.R.U.S."/>
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
||||
<meta name="msapplication-TileImage" content="https://zxicar.us/mstile-144x144.png" />
|
||||
<meta property="og:description" content="Access Denied - You do not have authorization to access the requested file." />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/normalize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/demo.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/component.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/additional.css" />
|
||||
<!--[if IE]>
|
||||
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- remove this if you use Modernizr -->
|
||||
<script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header class="codrops-header">
|
||||
<h1>I.C.A.R.U.S. Imeji Uploader</h1>
|
||||
<p><strong>403</strong> - Unfortunately the file you are looking for isn't something you can access.</p>
|
||||
</header>
|
||||
</div><!-- /container -->
|
||||
|
||||
<!-- <script src="styler/custom-file-input.js"></script> -->
|
||||
|
||||
<!-- // If you'd like to use jQuery, check out styler/jquery.custom-file-input.js
|
||||
<script src="styler/jquery-v1.min.js"></script>
|
||||
<script src="styler/jquery.custom-file-input.js"></script>
|
||||
-->
|
||||
|
||||
<div class="content">
|
||||
<hr />
|
||||
<footer class="content footer">
|
||||
Copyright © 2016 Locaria Technologies.
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js" xmlns:og="https://ogp.me/ns#">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#ff89c9">
|
||||
<title>Imeji Uploader - Error</title>
|
||||
<link rel="shortcut icon" href="https://zxicar.us/favicon.ico">
|
||||
<link rel="icon" type="image/png" href="https://zxicar.us/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="https://zxicar.us/favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="https://zxicar.us/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://zxicar.us/apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://zxicar.us/apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://zxicar.us/apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="https://zxicar.us/apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="https://zxicar.us/apple-touch-icon-152x152.png" />
|
||||
<meta name="application-name" content="I.C.A.R.U.S."/>
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
||||
<meta name="msapplication-TileImage" content="https://zxicar.us/mstile-144x144.png" />
|
||||
<meta property="og:description" content="Not found - The file you are trying to access may have been deleted or does not exist." />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/normalize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/demo.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/component.css" />
|
||||
<link rel="stylesheet" type="text/css" href="https://zxicar.us/imeji/styler/additional.css" />
|
||||
<!--[if IE]>
|
||||
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- remove this if you use Modernizr -->
|
||||
<script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header class="codrops-header">
|
||||
<h1>I.C.A.R.U.S. Imeji Uploader</h1>
|
||||
<p><strong>404</strong> - Unfortunately the file you are looking for could not be found.</p>
|
||||
</header>
|
||||
</div><!-- /container -->
|
||||
|
||||
<!-- <script src="styler/custom-file-input.js"></script> -->
|
||||
|
||||
<!-- // If you'd like to use jQuery, check out styler/jquery.custom-file-input.js
|
||||
<script src="styler/jquery-v1.min.js"></script>
|
||||
<script src="styler/jquery.custom-file-input.js"></script>
|
||||
-->
|
||||
|
||||
<div class="content">
|
||||
<hr />
|
||||
<footer class="content footer">
|
||||
Copyright © 2016 Locaria Technologies.
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
deny from all
|
@ -0,0 +1,32 @@
|
||||
/**
|
||||
Theme Name: I.C.A.R.U.S. Imeji Uploader - Additional
|
||||
Theme URL: http://zxicar.us/
|
||||
Version: 0.4
|
||||
Author: Yandols Z'eon X
|
||||
*/
|
||||
|
||||
.inputfile {
|
||||
width: 0.1px;
|
||||
height: 0.1px;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.inputfile + label {
|
||||
font-size: 1.25em;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
background-color: black;
|
||||
display: inline-block;
|
||||
cursor: pointer; /* "hand" cursor */
|
||||
outline: 1px dotted #000;
|
||||
outline: -webkit-focus-ring-color auto 5px;
|
||||
}
|
||||
|
||||
.inputfile:focus + label,
|
||||
.inputfile + label:hover {
|
||||
background-color: red;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Imeji Uploader v0.2</title>
|
||||
<link rel="stylesheet" type="text/css" href="feras.css">
|
||||
<link rel="stylesheet" type="text/css" href="opensans.css">
|
||||
<link rel="stylesheet" type="text/css" href="feras2.css">
|
||||
<link rel="stylesheet" type="text/css" href="additional.css">
|
||||
<style>
|
||||
a,
|
||||
a.number-figures:hover, a.number-figures:hover *,
|
||||
.input .icon-input-submit:hover, .input .icon-input-submit:focus, .input .icon-input-submit.focus,
|
||||
.btn.default.outline, .pop-btn-text,
|
||||
.top-bar.white .top-btn-text:hover:not(.btn), .top-bar.white .opened .top-btn-text:not(.btn),
|
||||
.ios .top-bar.white .opened .top-btn-text:not(.btn),
|
||||
.ios .top-bar.white .opened .top-btn-text:not(.top-btn-number),
|
||||
.breadcrum-text a:hover,
|
||||
.content-tabs li:hover a,
|
||||
.upload-box-heading .icon,
|
||||
.list-item-image-btn:hover span,
|
||||
.content-listing-pagination a:hover {
|
||||
color: #00A7DA;
|
||||
}
|
||||
|
||||
input:focus, textarea:focus, select:focus, input.search:focus, .input-focus,
|
||||
.tone-dark input:focus, .tone-dark textarea:focus, .tone-dark select:focus, .tone-dark input.search:focus, .tone-dark .input-focus,
|
||||
.btn.default.outline,
|
||||
.btn.active,
|
||||
.content-tabs li:hover, .content-tabs li.current, .content-tabs li.visited, .content-tabs li.visited:hover,
|
||||
.content-tabs li.current,
|
||||
.list-item:hover .list-item-avatar-cover,
|
||||
input:focus, textarea:focus, select:focus, input.search:focus, .input-focus,
|
||||
.tone-dark input:focus, .tone-dark textarea:focus, .tone-dark select:focus, .tone-dark input.search:focus, .tone-dark .input-focus {
|
||||
border-color: #00A7DA;
|
||||
}
|
||||
|
||||
.btn.active,
|
||||
html:not(.phone) .pop-box-menu a:hover, .pop-box-menu a.focus,
|
||||
.list-item-image-btn.liked,
|
||||
.list-item-desc .user:hover {
|
||||
background-color: #00A7DA;
|
||||
}
|
||||
|
||||
.pop-btn-text .arrow-down,
|
||||
.top-bar.white .top-btn-text:hover .arrow-down, .top-bar.white .opened .arrow-down,
|
||||
.ios .top-bar.white .opened .top-btn-text .arrow-down,
|
||||
.header-content-breadcrum a:hover .arrow-down {
|
||||
border-top-color: #00A7DA;
|
||||
}
|
||||
|
||||
.top-bar ul .pop-btn.current, .top-bar ul .top-btn-el.current {
|
||||
border-bottom-color: #00A7DA;
|
||||
}
|
||||
|
||||
.header-content-breadcrum a:hover .arrow-right {
|
||||
border-left-color: #00A7DA;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<h1>I.C.A.R.U.S. Imeji Uploader</h1>
|
||||
<p><br />Accepted filetypes: JPG, JPEG, PNG, GIF.<br />Max filesize: 6MB</p>
|
||||
<p><br /></p>
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
Select image to upload:
|
||||
<br /><br />
|
||||
<input type="file" name="fileToUpload" id="fileToUpload" class="inputfile" data-multiple-caption="{count} files selected" multiple>
|
||||
<label for="fileToUpload">Choose a file</label>
|
||||
<br /><br />
|
||||
<input type="submit" value="Upload Image" name="submit" class="btn btn-big blue">
|
||||
<br /><br />
|
||||
</form>
|
||||
<br />
|
||||
|
||||
|
||||
</center>
|
||||
</body>
|
||||
<footer>
|
||||
<hr />
|
||||
<center><small>I.C.A.R.U.S. Imeji Uploader v0.3</small></center>
|
||||
</footer>
|
||||
</html>
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
if(isset($_POST['submit']))
|
||||
{
|
||||
$temp_name = $_FILES["file"]["tmp_name"]; // get the temporary filename/path on the server
|
||||
$name = $_FILES["file"]["name"]; // get the filename of the actual file
|
||||
|
||||
// print the array (for reference)
|
||||
print_r($_FILES);
|
||||
|
||||
// Create uploads folder if it doesn't exist.
|
||||
if (!file_exists("public")) {
|
||||
mkdir("public", 0775);
|
||||
chmod("public", 0775); // Set read and write permissions of folder, needed on some servers
|
||||
}
|
||||
|
||||
// Move file from temp to uploads folder
|
||||
//$newfilename = time() . '_' . rand(100, 999) . '.' . end(explode(".",$_FILES["image_file"]["name"]));
|
||||
//move_uploaded_file($_FILES["image_file"]["tmp_name"], "public/" . $newfilename);
|
||||
move_uploaded_file($temp_name, "public/$name");
|
||||
chmod("public/$name", 0775); // Set read and write permissions if file
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<title>I.C.A.R.U.S. Imeji Uploader</title>
|
||||
<p>I.C.A.R.U.S. Imeji Uploader</p>
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<input type="file" name="file" id="file" />
|
||||
<input type="submit" name="submit" value="submit"/>
|
||||
</form>
|
@ -0,0 +1,20 @@
|
||||
body {
|
||||
background-color: lightblue;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: navy;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input[type=button], input[type=submit], input[type=reset] {
|
||||
background-color: #4CAF50;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 16px 32px;
|
||||
text-decoration: none;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Tip: use width: 100% for full-width buttons */
|
@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Custom File Inputs | Codrops</title>
|
||||
<meta name="description" content="Demo for the tutorial: Styling and Customizing File Inputs the Smart Way" />
|
||||
<meta name="keywords" content="cutom file input, styling, label, cross-browser, accessible, input type file" />
|
||||
<meta name="author" content="Osvaldas Valutis for Codrops" />
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/demo.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/component.css" />
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- remove this if you use Modernizr -->
|
||||
<script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header class="codrops-header">
|
||||
<div class="codrops-links">
|
||||
<a class="codrops-icon codrops-icon--prev" href="http://tympanus.net/Tutorials/SVGRipples/" title="Previous Demo"><span>Previous Demo</span></a>
|
||||
<a class="codrops-icon codrops-icon--drop" href="http://tympanus.net/codrops/?p=24831" title="Back to the article"><span>Back to the Codrops article</span></a>
|
||||
</div>
|
||||
<h1>Custom File Inputs</h1>
|
||||
<p>Demo for the tutorial: <strong><a href="http://tympanus.net/codrops/?p=24831">Styling and Customizing File Inputs the Smart Way</a></strong></p>
|
||||
</header>
|
||||
<div class="content">
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-1[]" id="file-1" class="inputfile inputfile-1" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-1"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-2[]" id="file-2" class="inputfile inputfile-2" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-2"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-3[]" id="file-3" class="inputfile inputfile-3" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-3"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-4[]" id="file-4" class="inputfile inputfile-3" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-4"><span>Choose a file…</span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-5[]" id="file-5" class="inputfile inputfile-4" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-5"><figure><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg></figure> <span>Choose a file…</span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-6[]" id="file-6" class="inputfile inputfile-5" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-6"><figure><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg></figure> <span></span></label>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<input type="file" name="file-7[]" id="file-7" class="inputfile inputfile-6" data-multiple-caption="{count} files selected" multiple />
|
||||
<label for="file-7"><span></span> <strong><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> Choose a file…</strong></label>
|
||||
</div>
|
||||
|
||||
<footer>Upload icon by <a href="http://www.flaticon.com/free-icon/outbox_3686" target="_blank">FlatIcon</a>.</footer>
|
||||
|
||||
</div>
|
||||
<!-- Related demos -->
|
||||
<section class="content content--related">
|
||||
<p>If you enjoyed this demo you might also like:</p>
|
||||
<a class="media-item" href="">
|
||||
<img class="media-item__img" src="img/related/SelectInspiration.png">
|
||||
<h3 class="media-item__title">Inspiration for Custom Select Elements</h3>
|
||||
</a>
|
||||
<a class="media-item" href="">
|
||||
<img class="media-item__img" src="img/related/TextInputEffects.jpg">
|
||||
<h3 class="media-item__title">Inspiration for Text Input Effects</h3>
|
||||
</a>
|
||||
</section>
|
||||
</div><!-- /container -->
|
||||
|
||||
<script src="js/custom-file-input.js"></script>
|
||||
|
||||
<!-- // If you'd like to use jQuery, check out js/jquery.custom-file-input.js
|
||||
<script src="js/jquery-v1.min.js"></script>
|
||||
<script src="js/jquery.custom-file-input.js"></script>
|
||||
-->
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,560 @@
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTa-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTZX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTRWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTaaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTf8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTT0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url(./v13/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url(./v13/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(./v13/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzK-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzJX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzBWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzKaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzP8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzD0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url(./v13/k3k702ZOKiLJc3WVjuplzOgdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hq-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hpX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hhWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(./v13/EInbV5DfGHOiMmvb1Xr-hugdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxhgVThLs8Y7ETJzDCYFCSLE.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxpiMaisvaUVUsYyVzOmndek.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxrBAWGjcah5Ky0jbCgIwDB8.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxv14vlcfyPYlAcQy2UfDRm4.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxqfJul7RR1X4poJgi27uS4w.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxqvyPXdneeGd26m9EmFSSWg.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(./v13/PRmiXeptR36kaC0GEAetxko2lTMeWA_kmIyWrkNCwPc.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBjTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBjUj_cnvWIuuBMVgbX098Mw.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBkbcKLIaa1LC45dFaAfauRA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBmo_sUJ8uO4YLWRInS22T3Y.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBr6up8jxqWt8HVA3mDhkV_0.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBiYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url(./v13/xjAJXh38I15wypJXxuGMBo4P5ICox8Kq3LLUNMylGO4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxmgpAmOCqD37_tyH_8Ri5MM.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxsPNMTLbnS9uQzHQlYieHUU.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxgyhumQnPMBCoGYhRaNxyyY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxhUVAXEdVvYDDqrz3aeR0Yc.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxlf4y_3s5bcYyyLIFUSWYUU.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxnywqdtBbUHn3VPgzuFrCy8.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxl2umOyRU7PgRiv8DXcgJjk.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxp6iIh_FvlUHQwED9Yt5Kbw.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxi_vZmeiCMnoWNN9rHBYaTc.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxiFaMxiho_5XQnyRZzQsrZs.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxgalQocB-__pDVGhF3uS2Ks.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxmhQUTDJGru-0vvUpABgH8I.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxujkDdvhIIFj_YMdgqpnSB0.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxolIZu-HDpmDIZMigmsroc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxiU8QAtQT9M0M1_mbVWrUPc.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxkNaUOL0oYRolx8sebiIY9k.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxooGEx1DzoxsbCRd2IM2afI.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxnPzCMEhbIaaYiFY6KPniws.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxmqi69zMYkLa7XwlUIemKB4.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxowYyzpnB4tyYboSwKGmD2g.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url(./v13/PRmiXeptR36kaC0GEAetxnibbpXgLHK_uTT48UMyjSM.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 5.3 KiB |
@ -0,0 +1 @@
|
||||
google-site-verification: googlec03066224d0b0ecd.html
|
@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="description" content="Icarus Imeji Uploader is a Free Image Uploading and Hosting Service by Locaria Technologies." />
|
||||
<meta name="keywords" content="I.C.A.R.U.S. Icarus Imeji Uploader Free Image Uploading and Hosting Service Locaria Technologies" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#ff89c9">
|
||||
<title>Icarus Imeji Uploader v1.2a</title>
|
||||
<link rel="shortcut icon" href="../favicon.ico">
|
||||
<link rel="icon" type="image/png" href="../favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="../favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="../apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../apple-touch-icon-152x152.png" />
|
||||
<meta name="application-name" content="I.C.A.R.U.S."/>
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
||||
<meta name="msapplication-TileImage" content="../mstile-144x144.png" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="styler/normalize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="styler/demo.css" />
|
||||
<link rel="stylesheet" type="text/css" href="styler/component.css" />
|
||||
<link rel="stylesheet" type="text/css" href="styler/additional.css" />
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- remove this if you use Modernizr -->
|
||||
<script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header class="codrops-header">
|
||||
<h1>I.C.A.R.U.S. Imeji Uploader</h1>
|
||||
<p><sup>By Yandols ZeonX</sup><br/>Accepted filetypes: <strong><a>JPG, JPEG, PNG, GIF.</a></strong><br />Max filesize: <strong><a>6MB</a></strong></p>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="box">
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
<input type="file" name="fileToUpload" id="fileToUpload" class="inputfile inputfile-2" data-multiple-caption="{count} files selected" multiple >
|
||||
<label for="fileToUpload"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label>
|
||||
<br /><br />
|
||||
<input type="submit" value="Upload Image" name="submit" class="btn btn-big red">
|
||||
</form>
|
||||
</div>
|
||||
<footer>
|
||||
<hr />
|
||||
<br />I.C.A.R.U.S. Imeji Uploader v1.2a
|
||||
<br /><a href="https://gist.github.com/Yandols/cd7d5e6d24d4dbffd80aa3ebbeeaef8c" target="_blank">ShareX Support</a> โข
|
||||
<a href="./tos.php">Terms of Service</a> โข
|
||||
<a href="./tos.php#privacy">Privacy Policy</a> โข
|
||||
<a href="./removal.php">Removal Request</a>
|
||||
<!--<br />For ShareX support <a href="https://gist.github.com/Yandols/cd7d5e6d24d4dbffd80aa3ebbeeaef8c" target="_blank">click here</a>.
|
||||
For image removal purposes <a href="./removal.php">click here</a>.-->
|
||||
<!-- <br />Upload icon by <a href="http://www.flaticon.com/free-icon/outbox_3686" target="_blank">FlatIcon</a>. -->
|
||||
<!-- <br /><small>FMLS Access: <a href="./listprivate.php">Area 1</a> โข <a href="./list.php">Area 2</a></small> -->
|
||||
<br />Copyright © 2016 Locaria Technologies.
|
||||
</footer>
|
||||
</div>
|
||||
</div><!-- /container -->
|
||||
|
||||
<script src="styler/custom-file-input.js"></script>
|
||||
|
||||
<!-- // If you'd like to use jQuery, check out styler/jquery.custom-file-input.js
|
||||
<script src="styler/jquery-v1.min.js"></script>
|
||||
<script src="styler/jquery.custom-file-input.js"></script>
|
||||
-->
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
###############################################################
|
||||
# Page Password Protect 2.13
|
||||
###############################################################
|
||||
# Visit http://www.zubrag.com/scripts/ for updates
|
||||
###############################################################
|
||||
#
|
||||
# Usage:
|
||||
# Set usernames / passwords below between SETTINGS START and SETTINGS END.
|
||||
# Open it in browser with "help" parameter to get the code
|
||||
# to add to all files being protected.
|
||||
# Example: password_protect.php?help
|
||||
# Include protection string which it gave you into every file that needs to be protected
|
||||
#
|
||||
# Add following HTML code to your page where you want to have logout link
|
||||
# <a href="http://www.example.com/path/to/protected/page.php?logout=1">Logout</a>
|
||||
#
|
||||
###############################################################
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------
|
||||
SAMPLE if you only want to request login and password on login form.
|
||||
Each row represents different user.
|
||||
|
||||
$LOGIN_INFORMATION = array(
|
||||
'zubrag' => 'root',
|
||||
'test' => 'testpass',
|
||||
'admin' => 'passwd'
|
||||
);
|
||||
|
||||
--------------------------------------------------------------------
|
||||
SAMPLE if you only want to request only password on login form.
|
||||
Note: only passwords are listed
|
||||
|
||||
$LOGIN_INFORMATION = array(
|
||||
'root',
|
||||
'testpass',
|
||||
'passwd'
|
||||
);
|
||||
|
||||
--------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
##################################################################
|
||||
# SETTINGS START
|
||||
##################################################################
|
||||
|
||||
// Add login/password pairs below, like described above
|
||||
// NOTE: all rows except last must have comma "," at the end of line
|
||||
$LOGIN_INFORMATION = array(
|
||||
'zubrag' => 'root',
|
||||
'admin' => 'adminpass'
|
||||
);
|
||||
|
||||
// request login? true - show login and password boxes, false - password box only
|
||||
define('USE_USERNAME', true);
|
||||
|
||||
// User will be redirected to this page after logout
|
||||
define('LOGOUT_URL', 'http://www.example.com/');
|
||||
|
||||
// time out after NN minutes of inactivity. Set to 0 to not timeout
|
||||
define('TIMEOUT_MINUTES', 0);
|
||||
|
||||
// This parameter is only useful when TIMEOUT_MINUTES is not zero
|
||||
// true - timeout time from last activity, false - timeout time from login
|
||||
define('TIMEOUT_CHECK_ACTIVITY', true);
|
||||
|
||||
##################################################################
|
||||
# SETTINGS END
|
||||
##################################################################
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
// do not change code below
|
||||
///////////////////////////////////////////////////////
|
||||
|
||||
// show usage example
|
||||
if(isset($_GET['help'])) {
|
||||
die('Include following code into every page you would like to protect, at the very beginning (first line):<br><?php include("' . str_replace('\\','\\\\',__FILE__) . '"); ?>');
|
||||
}
|
||||
|
||||
// timeout in seconds
|
||||
$timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60);
|
||||
|
||||
// logout?
|
||||
if(isset($_GET['logout'])) {
|
||||
setcookie("verify", '', $timeout, '/'); // clear password;
|
||||
header('Location: ' . LOGOUT_URL);
|
||||
exit();
|
||||
}
|
||||
|
||||
if(!function_exists('showLoginPasswordProtect')) {
|
||||
|
||||
// show login form
|
||||
function showLoginPasswordProtect($error_msg) {
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Please enter password to access this page</title>
|
||||
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
|
||||
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
input { border: 1px solid black; }
|
||||
</style>
|
||||
<div style="width:500px; margin-left:auto; margin-right:auto; text-align:center">
|
||||
<form method="post">
|
||||
<h3>Please enter password to access this page</h3>
|
||||
<font color="red"><?php echo $error_msg; ?></font><br />
|
||||
<?php if (USE_USERNAME) echo 'Login:<br /><input type="input" name="access_login" /><br />Password:<br />'; ?>
|
||||
<input type="password" name="access_password" /><p></p><input type="submit" name="Submit" value="Submit" />
|
||||
</form>
|
||||
<br />
|
||||
<a style="font-size:9px; color: #B0B0B0; font-family: Verdana, Arial;" href="http://www.zubrag.com/scripts/password-protect.php" title="Download Password Protector">Powered by Password Protect</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
// stop at this point
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
// user provided password
|
||||
if (isset($_POST['access_password'])) {
|
||||
|
||||
$login = isset($_POST['access_login']) ? $_POST['access_login'] : '';
|
||||
$pass = $_POST['access_password'];
|
||||
if (!USE_USERNAME && !in_array($pass, $LOGIN_INFORMATION)
|
||||
|| (USE_USERNAME && ( !array_key_exists($login, $LOGIN_INFORMATION) || $LOGIN_INFORMATION[$login] != $pass ) )
|
||||
) {
|
||||
showLoginPasswordProtect("Incorrect password.");
|
||||
}
|
||||
else {
|
||||
// set cookie if password was validated
|
||||
setcookie("verify", md5($login.'%'.$pass), $timeout, '/');
|
||||
|
||||
// Some programs (like Form1 Bilder) check $_POST array to see if parameters passed
|
||||
// So need to clear password protector variables
|
||||
unset($_POST['access_login']);
|
||||
unset($_POST['access_password']);
|
||||
unset($_POST['Submit']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
// check if password cookie is set
|
||||
if (!isset($_COOKIE['verify'])) {
|
||||
showLoginPasswordProtect("");
|
||||
}
|
||||
|
||||
// check if cookie is good
|
||||
$found = false;
|
||||
foreach($LOGIN_INFORMATION as $key=>$val) {
|
||||
$lp = (USE_USERNAME ? $key : '') .'%'.$val;
|
||||
if ($_COOKIE['verify'] == md5($lp)) {
|
||||
$found = true;
|
||||
// prolong timeout
|
||||
if (TIMEOUT_CHECK_ACTIVITY) {
|
||||
setcookie("verify", md5($lp), $timeout, '/');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$found) {
|
||||
showLoginPasswordProtect("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|