mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-20 15:08:00 +00:00
added cli.. don't yet know why :D
This commit is contained in:
28
cli.php
Normal file
28
cli.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
define('ROOT', dirname(__FILE__));
|
||||||
|
define('CLI', true);
|
||||||
|
|
||||||
|
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
||||||
|
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
||||||
|
include_once(ROOT.DS.'inc'.DS.'config.inc.php');
|
||||||
|
|
||||||
|
if(FORCE_DOMAIN)
|
||||||
|
define('DOMAINPATH',FORCE_DOMAIN);
|
||||||
|
else
|
||||||
|
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
||||||
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
|
if(SHOW_ERRORS)
|
||||||
|
ini_set('display_errors','On');
|
||||||
|
else ini_set('display_errors','Off');
|
||||||
|
include_once(ROOT.DS.'inc'.DS.'core.php');
|
||||||
|
|
||||||
|
$action = $argv[2];
|
||||||
|
$params = $argv;
|
||||||
|
|
||||||
|
//lose first param (self name)
|
||||||
|
array_shift($params);
|
||||||
|
|
||||||
|
$model = new PictshareModel();
|
||||||
|
$model->backend($params);
|
||||||
42
template_album.php
Normal file
42
template_album.php
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]-->
|
||||||
|
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Album - <?php echo (defined('TITLE')?TITLE:'PictShare image hosting'); ?></title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta http-equiv="cleartype" content="on">
|
||||||
|
<?php echo $meta; ?>
|
||||||
|
<link rel="stylesheet" href="/css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="/css/pictshare.css">
|
||||||
|
<script src="/js/vendor/modernizr-2.6.2.min.js"></script>
|
||||||
|
<script type="text/javascript" src="/js/jquery-2.1.0.min.js"></script>
|
||||||
|
|
||||||
|
<meta name="description" content="Free image sharing, linking and tracking">
|
||||||
|
<meta name="keywords" content="image, share, hosting, free">
|
||||||
|
<meta name="robots" content="index, follow">
|
||||||
|
<meta name="copyright" content="Haschek Solutions">
|
||||||
|
<meta name="language" content="EN,DE">
|
||||||
|
<meta name="author" content="Haschek Solutions">
|
||||||
|
<meta name="distribution" content="global">
|
||||||
|
<meta name="rating" content="general">
|
||||||
|
|
||||||
|
</HEAD>
|
||||||
|
<BODY>
|
||||||
|
<div class="mitte" id="overall">
|
||||||
|
<a href="/"><div id="header">
|
||||||
|
<div style="padding:15px;"><div class="rechts"><?php echo $slogan; ?></div></div>
|
||||||
|
</div></a>
|
||||||
|
<div id="content">
|
||||||
|
<?php echo $content?>
|
||||||
|
</div>
|
||||||
|
<div class="content"><center>(c)<?php echo date("y");?> by<br/><a href="https://haschek.solutions" target="_blank"><img height="30" src="/css/imgs/hs_logo.png" /></a></center></div>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="https://github.com/chrisiaut/pictshare"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/82b228a3648bf44fc1163ef44c62fcc60081495e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png"></a>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
Reference in New Issue
Block a user