1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

Fatfree core lib only

This commit is contained in:
Vincent LAURENT 2022-03-26 23:40:57 +01:00
parent 2c8c9a7f8e
commit 30aa95f6ce
54 changed files with 3 additions and 2999 deletions

View File

@ -1,6 +1,6 @@
<?php
$f3 = require(__DIR__.'/vendor/fatfree/lib/base.php');
$f3 = require(__DIR__.'/vendor/fatfree/base.php');
if(getenv("DEBUG")) {
$f3->set('DEBUG', getenv("DEBUG"));

View File

@ -1,2 +0,0 @@
/tmp/
/.idea/

View File

@ -1,16 +0,0 @@
# Enable rewrite engine and route requests to framework
RewriteEngine On
# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
# RewriteBase /
RewriteRule ^(app|tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

View File

@ -1,18 +1,12 @@
{
"name": "bcosca/fatfree",
"name": "bcosca/fatfree-core",
"description": "A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!",
"homepage": "http://fatfreeframework.com/",
"license": "GPL-3.0",
"require": {
"php": ">=5.4"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/bcosca/fatfree"
}
],
"autoload": {
"files": ["lib/base.php"]
"classmap": ["."]
}
}

View File

@ -1,4 +0,0 @@
[globals]
DEBUG=3
UI=ui/

View File

@ -1,89 +0,0 @@
<?php
// Kickstart the framework
$f3=require('lib/base.php');
$f3->set('DEBUG',1);
if ((float)PCRE_VERSION<8.0)
trigger_error('PCRE version is out of date');
// Load configuration
$f3->config('config.ini');
$f3->route('GET /',
function($f3) {
$classes=array(
'Base'=>
array(
'hash',
'json',
'session',
'mbstring'
),
'Cache'=>
array(
'apc',
'apcu',
'memcache',
'memcached',
'redis',
'wincache',
'xcache'
),
'DB\SQL'=>
array(
'pdo',
'pdo_dblib',
'pdo_mssql',
'pdo_mysql',
'pdo_odbc',
'pdo_pgsql',
'pdo_sqlite',
'pdo_sqlsrv'
),
'DB\Jig'=>
array('json'),
'DB\Mongo'=>
array(
'json',
'mongo'
),
'Auth'=>
array('ldap','pdo'),
'Bcrypt'=>
array(
'openssl'
),
'Image'=>
array('gd'),
'Lexicon'=>
array('iconv'),
'SMTP'=>
array('openssl'),
'Web'=>
array('curl','openssl','simplexml'),
'Web\Geo'=>
array('geoip','json'),
'Web\OpenID'=>
array('json','simplexml'),
'Web\OAuth2'=>
array('json'),
'Web\Pingback'=>
array('dom','xmlrpc'),
'CLI\WS'=>
array('pcntl')
);
$f3->set('classes',$classes);
$f3->set('content','welcome.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /userref',
function($f3) {
$f3->set('content','userref.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->run();

View File

@ -1,12 +0,0 @@
{
"name": "bcosca/fatfree-core",
"description": "A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!",
"homepage": "http://fatfreeframework.com/",
"license": "GPL-3.0",
"require": {
"php": ">=5.4"
},
"autoload": {
"classmap": ["."]
}
}

2616
vendor/fatfree/readme.md vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
/* Reset */
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,dir,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}ol{list-style:decimal}ul{list-style:disc}ul ul{list-style:circle}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{text-decoration:underline}mark{background:none}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select,a img{vertical-align:middle}
/* Typography */
*{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%}html{height:100%;font-size:100%;font-family:serif;overflow-y:scroll;-webkit-text-size-adjust:100%}body{margin:0;min-height:100%;overflow:hidden}body,pre,label,input,button,select,textarea{font:normal 100%/1.25 serif;vertical-align:top}a{display:inline-block}p,ul,ol{margin:1.25em 0}h1{font-size:2em;line-height:1.25em;margin:0.625em 0}h2{font-size:1.5em;line-height:1.6667em;margin:0.8333em 0}h3{font-size:1.25em;line-height:1em;margin:1em 0}h4{font-size:1em;line-height:1.25em;margin:1.25em 0}h5{font-size:0.8125em;line-height:1.5385em;margin:1.5385em 0}h6{font-size:0.6875em;line-height:1.8182em;margin:1.8182em 0}blockquote{margin:0 3em}caption{font-weight:bold}ul,ol,dir,menu,dd{margin-left:3em}ul,dir,menu{list-style:disc}ol{list-style:decimal}sub,sup{font-size:75%;line-height:0;vertical-align:baseline;position:relative}sub{top:0.5em}sup{top:-0.5em}label{display:inline-block}input[type="text"],input[type="password"],input[type="file"]{padding:1px;border:1px solid #999;margin:-4px 0 0 0}select,textarea{padding:0;border:1px solid #999;margin:-4px 0 0 0}fieldset{padding:0.625em;border:1px solid #ccc;margin-bottom:0.625em}input[type="radio"],input[type="checkbox"]{height:1em;vertical-align:top;margin:0.125em}div,table{overflow:hidden}
/* Fluid Fonts */
@media screen and (max-width:960px){body{font-size:0.81255em}}

View File

@ -1,165 +0,0 @@
body {
font-family:Ubuntu,sans-serif;
font-size:1.2em;
}
h1 {
color:#faa;
}
h2 {
color:#e88;
}
h3 {
color:#b66;
}
h4 {
color:#944;
}
h5 {
color:#722;
}
h6 {
color:#500;
}
small {
font-size:0.75em
}
a {
text-decoration:none;
color:#66f;
}
a:hover {
color:#666;
}
img {
max-width:100%
}
table {
font-size:.8em;
color:#666 !important;
background:#eee;
width:100%;
border-radius:.5em;
}
table code {
background:transparent;
padding:0
}
tr {
border-bottom:1px solid #fff;
}
tr:last-child {
border-bottom:none;
}
th,td {
font-size:1em;
line-height:1.25em;
margin:0;
padding:1em;
white-space:nowrap;
}
th {
font-weight:bold;
text-align:left;
text-transform:uppercase;
color:#fff;
background:#999;
}
th a {
color:#fff;
}
th:first-child,
td:first-child {
width:50%;
}
pre {
background:#efefef;
padding:0.75em;
border-radius:0.75em;
}
ul,p {
color:#666;
line-height:1.5em;
}
p code,ul code {
padding:.25em .75em;
border-radius:.75em;
white-space:nowrap
}
blockquote pre,blockquote code {
color:#666;
background:#fff;
}
code {
background:#eee;
}
.center {
text-align:center;
}
.right {
text-align:right;
}
.content {
padding:0 20px;
max-width:768px;
margin:0 auto;
}
.header {
background:#eee;
}
.header img {
width:90%;
max-width:768px;
padding:0 5%;
}
.footer {
font-size:0.9em;
background:#333;
}
.footer p {
color:#eee;
padding:20px;
max-width:768px;
margin:0 auto;
}
.footer .stats {
font-size:.9em;
}
@media screen and (max-width:48em) {
body {
font-size:1em;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="<?php echo $ENCODING; ?>" />
<title>Powered by <?php echo $PACKAGE; ?></title>
<base href="<?php echo $SCHEME.'://'.$HOST.':'.$PORT.$BASE.'/'; ?>" />
<link rel="stylesheet" href="lib/code.css" type="text/css" />
<link rel="stylesheet" href="ui/css/base.css" type="text/css" />
<link rel="stylesheet" href="ui/css/theme.css" type="text/css" />
</head>
<body>
<?php echo $this->render(Base::instance()->get('content')); ?>
</body>
</html>

View File

@ -1,4 +0,0 @@
<div class="content">
<?php echo Markdown::instance()->
convert(Base::instance()->read('readme.md')); ?>
</div>

View File

@ -1,62 +0,0 @@
<div class="header center">
<p><img src="ui/images/logo.png"></p>
</div>
<div class="content">
<h2>Version <?php echo $VERSION; ?></h2>
<p>The first thing you might want to do is visualize your directory structures. Fat-Free gives you total control over your Web site. Organize your folders in any way that pleases you (or your development team if you're part of a group). Decide where you want to store the following:</p>
<ul>
<li>Application and code libraries</li>
<li>HTML templates</li>
<li>Graphics and media files</li>
<li>Javascript and CSS files</li>
<li>Database (if you plan to use an embedded DB like SQLite)</li>
<li>Configuration files</li>
<li>Uploads/Downloads</li>
</ul>
<p>For security reasons, consider relocating the <code>lib/</code> folder to a path that's not Web-accessible. If you decide to move this folder, just change the line in <code>index.php</code> containing <code>require 'lib/base.php';</code> so it points to the new location. The <code>lib/</code> folder also contains framework plug-ins that extend F3's capabilities. You can change the default location of all plug-ins by moving the files to your desired subdirectory. Then, it's just a matter of pointing the <code>PLUGINS</code> global variable to the new location. You may delete the plug-ins that you don't need. You can reinstate them later as you find necessary.</p>
<p>F3 can autoload OOP classes for you. Just add the path to the <code>AUTOLOAD</code> variable.</p>
<p>When you're ready to write your F3-enabled site, you can start editing the rest of the code contained in the <code>index.php</code> file that displayed this Web page. Developing PHP applications will never be the same!</p>
<h2>PHP Dependencies</h2>
<p>Some framework features in this version will not be available if PHP is not configured with the modules needed by your application.</p>
<table>
<tr>
<th>Class/Plug-in</th>
<th>PHP Module</th>
</tr>
<?php foreach ($classes as $class=>$modules): ?>
<tr>
<td><?php echo $class; ?></td>
<td>
<?php foreach ($modules as $module): ?>
<input type="checkbox" <?php echo extension_loaded($module)?'checked':''?> onclick="return false"> <?php echo $module; ?><br>
<?php endforeach; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<ul>
<li>The <code>Base</code> class requires all listed PHP modules enabled to function properly.</li>
<li>The <code>Cache</code> class will use any available module in the list. If none can be found, it will use the filesystem as fallback.</li>
<li>The <code>DB\SQL</code> class requires the <code>pdo</code> module and a PDO driver relevant to your application.</li>
<li>The <code>Bcrypt</code> class will use the <code>mcrypt</code> or <code>openssl</code> module for entropy generation. Otherwise, it employs a custom random function.</li>
<li>The <code>Web</code> class will use the <code>curl</code> module for HTTP requests to another server. If this is not detected, it will use other transports available, such as the HTTP stream wrapper or native sockets.</li>
<li>The <code>geoip</code> module listed in the <code>Web\Geo</code> class is optional; the class will use an alternative Web service for geo-location.</li>
<li>Other framework classes in the list need all its listed modules enabled.</li>
</ul>
<h2>Need Help?</h2>
<p>If you have any questions regarding the framework, technical support is available at <code><a href="https://groups.google.com/forum/#!forum/f3-framework">https://groups.google.com/forum/?fromgroups#!forum/f3-framework</a></code></p>
<p>You can also join our <a href="https://fatfreeframework-slack.herokuapp.com/">Slack Channel</a> to get support</p>
<p>Need live support? You can talk to the development team and the rest of the Fat-Free community via IRC. We're on the FreeNode (<code>chat.freenode.net</code>) <code>#fatfree</code> channel. If the channel appears quiet, the development team might just be busy with the next great release, or it's probably due to time zone differences. Just hang around.</p>
<p>The <strong><a href="<?php echo $BASE; ?>/userref">User Reference</a></strong> is designed to serve as a handbook and programming guide. However, the online documentation at <a href="https://github.com/bcosca/fatfree" onclick="window.open(this.href); return false;"><code>https://github.com/bcosca/fatfree</code></a> provides the latest and most comprehensive information about the framework.</p>
<h2>Fair Licensing</h2>
<p><b>Fat-Free Framework is free software covered by the terms of the GNU Public License (GPL v3).</b> You may not use the software, documentation, and samples except in compliance with the license. If the terms and conditions of this license are too restrictive for your use, alternative licensing is available for a very reasonable fee.</p>
<p>If you feel that this software is one great weapon to have in your programming arsenal, it saves you a lot of time and money, use it for commercial gain or in your business organization, please consider making a donation to the project. A significant amount of time, effort, and money has been spent on this project. Your donations help keep this project alive and the development team motivated. Donors and sponsors get priority support commensurate to your contribution (24-hour response time on business days).</p>
<h2>Support F3</h2>
<p>F3 is community-driven software. Support the development of the Fat-Free Framework. Your contributions help keep this project alive.</p>
<p class="center"><a href="https://www.paypal.me/fatfree" target="_blank"><img src="ui/images/paypal.png"></a></p>
</div>
<div class="footer center">
<p>Fat-Free Framework is licensed under the terms of the GPL, either v3 or later<br>
Copyright &copy; 2009-2017 F3::Factory/Bong Cosca &lt;bong&#46;cosca&#64;yahoo&#46;com&gt;</p>
<p class="stats"><code><?php echo Base::instance()->format('Page rendered in {0} msecs / Memory usage {1} Kibytes',round(1e3*(microtime(TRUE)-$TIME),2),round(memory_get_usage(TRUE)/1e3,1)); ?></code></p>
</div>