Beginning of site ver 3.0

This commit is contained in:
Ubergeek 2019-07-06 23:20:09 +00:00
parent 65b959f4db
commit a777ea330a
77 changed files with 3717 additions and 30066 deletions

5
.htaccess Normal file
View File

@ -0,0 +1,5 @@
RewriteEngine On
RewriteRule ^$ main [QSA]
RewriteRule ^index\.php$ wiki.php?page=main [QSA]
RewriteCond %{REQUEST_URI} !(/includes/|/media)
RewriteRule ^([^\d]+)/?$ wiki.php?page=$1 [QSA]

View File

@ -1,13 +0,0 @@
<div id="footer">
<p>Unless otherwise noted, all thunix.net materials (besides all user-generated content) is licensed as <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0 license</a>. Permissions beyond the scope of this license may be available at <a href="/copyright.php">https://www.thunix.net/copyright.php</a>.<br>Users define their own licensing and own all of their content.<br>
<?php echo "Page last updated on " . date ("Y-m-d\TH:i:sO.", getlastmod());?><br>
You may have to refresh the page to see any changes or updates.<br>
All questions, comments, and concerns about this site should be sent to <a href="/contact.php">the administration team</a>.</p>
<p>Created with valid <a href="https://validator.w3.org/check?uri=referer">HTML</a> and <a href="https://jigsaw.w3.org/css-validator/check/referer">CSS</a> code.</p>
<!-- EasyBanner code begin -->
<!--<CENTER>
<IFRAME SRC="https://banner.tildeverse.org/work.php?ID=thunix" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling="no"></IFRAME><br />
Ads by <a href="//banner.tildeverse.org">Tildeverse Banner Exchange</a>
</CENTER>-->
<!-- EasyBanner code end -->
</div></body></html>

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="thunix Official Website">
<meta name="keywords" content="thunix,Shell,Provider,And,Web,Host,Phoenix,Community,UNIX,Linux,HTML,CSS,XML,JavaScript,Gnu,Ubuntu,Debian,Arch,Mirrors,Mirror,Forums,Tildeverse">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/site.css" rel="stylesheet" type="text/css" media="all">
<link href="/favicon.png" rel="icon">
<link rel="author" href="humans.txt" />

View File

@ -1,12 +0,0 @@
</head>
<body>
<div id="top">
<div id="header">
<div id="logo">
<h1>&#9763; thunix</h1>
</div>
</div>
<div id="page">
<div id="page-bgtop">
<div id="page-bgbtm">
<div id="content">

163
LICENSE.md Normal file
View File

@ -0,0 +1,163 @@
GNU Lesser General Public License
=================================
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
### 0. Additional Definitions
As used herein, “this License” refers to version 3 of the GNU Lesser
General Public License, and the “GNU GPL” refers to version 3 of the GNU
General Public License.
“The Library” refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An “Application” is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A “Combined Work” is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the “Linked
Version”.
The “Minimal Corresponding Source” for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The “Corresponding Application Code” for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
### 1. Exception to Section 3 of the GNU GPL
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
### 2. Conveying Modified Versions
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
* **a)** under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
* **b)** under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
### 3. Object Code Incorporating Material from Library Header Files
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
* **a)** Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
* **b)** Accompany the object code with a copy of the GNU GPL and this license
document.
### 4. Combined Works
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
* **a)** Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
* **b)** Accompany the Combined Work with a copy of the GNU GPL and this license
document.
* **c)** For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
* **d)** Do one of the following:
- **0)** Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
- **1)** Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that **(a)** uses at run time
a copy of the Library already present on the user's computer
system, and **(b)** will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
* **e)** Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option **4d0**, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option **4d1**, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
### 5. Combined Libraries
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
* **a)** Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
* **b)** Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
### 6. Revised Versions of the GNU Lesser General Public License
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License “or any later version”
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

View File

@ -1,49 +0,0 @@
<div id="sidebar">
<ul>
<li>
<div style="clear: both;">&nbsp;</div>
</li>
<li>
<h2>Main Menu</h2>
<ul>
<li><a href="/">Home</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="tos.php">Terms of Service</a></li>
<li><a href="gdpr.php">GDPR Statement and Privacy Policy</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="signup.php">Sign Up</a></li>
<li><a href="abuse.php">Report Abuse</a></li>
<li><a href="https://ftp.thunix.net/">thunix Mirror Services</a></li>
<li><a href="https://stats.thunix.net/">Web Server Stats</a></li>
<li><a href="donate.php">Donations</a></li>
</ul>
</li>
<li>
<h2>Main Resources On This Site</h2>
<ul>
<li><a href="https://wiki.thunix.net/">Wiki</a></li>
<li><a href="server.php">Status of thunix Servers and Services</a></li>
<li><a href="news.php">Service News</a></li>
<li><a href="users.php">User Web Directories</a></li>
<li><a href="https://gopher.tildeverse.org/thunix.net">User Gopher Directories</a></li>
<li><a href="/webmail/">Web Mail</a></li>
<li><a href="https://thunix.net:1326/">ZNC Service</a></li>
</ul>
<li>
<h2>Server Staff</h2>
<ul>
<li><a href="/~amcclure/">Anton McClure</a></li>
<li><a href="/~ubergeek/">Ubergeek</a></li>
<li><a href="/~naglfar/">Naglfar</a></li>
<li><a href="/~fosslinux/">fosslinux</a></li>
</ul>
<!-- <li>
<h2>Other Information</h2>
<ul>
<li><a href=".">(Coming soon)</a></li>
</ul>-->
</li>
</ul>
</div>
<div style="clear: both;">&nbsp;</div>
</div></div></div></div>

View File

@ -1,14 +1,49 @@
# thunix 2.0 website update
Wiki.php
========
This is the code powering the website for thunix, originally founded by hexhaxtron. Since the original site went down, amcclure and ubergeek revived the site, though with only the bare necessities.
Wiki.php is a simple cms/wiki script. You can see it in use here:
These updates are designed to not only beautify the website with updated CSS and fully compliant HTML5 code, but also to automate visitor interaction with site administration and to provide server status information.
* [Thunix Wiki](https://wiki.thunix.net)
* [Ubergeek's Personal Page](https://thunix.net/~ubergeek)
Features include:
- Emailing scripts for general inquiries, registration and abuse reporting
- Scripting to automatically present functional user web pages in a menu list
- Scripting to provide server status reports to visitors*
Installation
============
*This requires the monurbox server monitoring shell script, executed through an hourly cron job
Installation is really only a couple of steps:
* Clone down the repo
* Edit config.php. The values are pretty self-explantory, but there's also comments explaining
* Edit includes/header.md, includes/footer.md, and includes/sidebar.md
If you are not using apache, you'll need to add in some mechanism for the rewrites to work, unless you don't care about pretty URLs. But, you will need to keep those in mind when adding links to your documents.
Something along these lines ~should~ work:
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /wiki.php?page=$uri;
}
Once that's all set, you can start editing articles. Main.md is always the landing page.
Directory Structure
===================
./ <-- Doc root
./wiki.php <-- main code
./media <-- Images and such. Files here do get get hit by the rewrite rule
./articles <-- All of your site's content
./includes <-- Support files that make up the layout
header.md <-- site header
footer.md <-- site footer
sidebar.mb <-- site sidebar
./config.php <-- Site configuration file
./parsedown-{version} <-- The parsedown version used in this engine
Support
=======
Open an issue at [ubergeek/wiki.php](https://tildegit.org/ubergeek/wiki.php/issues). PRs are also welcomed!
To run this website, the server computer requires PHP, with the GD extension (for generating CAPTCHA images,) Sendmail (to send emails from the website, to administration) and monurbox (to generate server status reports).

View File

@ -1,860 +0,0 @@
<?php
require_once( dirname(__FILE__).'/abuse.lib.php' );
define( 'PHPFMG_USER', "abuse@thunix.net" ); // must be a email address. for sending password to you.
define( 'PHPFMG_PW', "a31add" );
?>
<?php
/**
* GNU Library or Lesser General Public License version 2.0 (LGPLv2)
*/
# main
# ------------------------------------------------------
error_reporting( E_ERROR ) ;
phpfmg_admin_main();
# ------------------------------------------------------
function phpfmg_admin_main(){
$mod = isset($_REQUEST['mod']) ? $_REQUEST['mod'] : '';
$func = isset($_REQUEST['func']) ? $_REQUEST['func'] : '';
$function = "phpfmg_{$mod}_{$func}";
if( !function_exists($function) ){
phpfmg_admin_default();
exit;
};
// no login required modules
$public_modules = false !== strpos('|captcha||ajax|', "|{$mod}|");
$public_functions = false !== strpos('|phpfmg_ajax_submit||phpfmg_mail_request_password||phpfmg_filman_download||phpfmg_image_processing||phpfmg_dd_lookup|', "|{$function}|") ;
if( $public_modules || $public_functions ) {
$function();
exit;
};
return phpfmg_user_isLogin() ? $function() : phpfmg_admin_default();
}
function phpfmg_ajax_submit(){
$phpfmg_send = phpfmg_sendmail( $GLOBALS['form_mail'] );
$isHideForm = isset($phpfmg_send['isHideForm']) ? $phpfmg_send['isHideForm'] : false;
$response = array(
'ok' => $isHideForm,
'error_fields' => isset($phpfmg_send['error']) ? $phpfmg_send['error']['fields'] : '',
'OneEntry' => isset($GLOBALS['OneEntry']) ? $GLOBALS['OneEntry'] : '',
);
@header("Content-Type:text/html; charset=$charset");
echo "<html><body><script>
var response = " . json_encode( $response ) . ";
try{
parent.fmgHandler.onResponse( response );
}catch(E){};
\n\n";
echo "\n\n</script></body></html>";
}
function phpfmg_admin_default(){
if( phpfmg_user_login() ){
phpfmg_admin_panel();
};
}
function phpfmg_admin_panel()
{
if( !phpfmg_user_isLogin() ){
exit;
};
phpfmg_admin_header();
phpfmg_writable_check();
?>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign=top style="padding-left:280px;">
<style type="text/css">
.fmg_title{
font-size: 16px;
font-weight: bold;
padding: 10px;
}
.fmg_sep{
width:32px;
}
.fmg_text{
line-height: 150%;
vertical-align: top;
padding-left:28px;
}
</style>
<script type="text/javascript">
function deleteAll(n){
if( confirm("Are you sure you want to delete?" ) ){
location.href = "admin.php?mod=log&func=delete&file=" + n ;
};
return false ;
}
</script>
<div class="fmg_title">
1. Email Traffics
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=1">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=1">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_EMAILS_LOGFILE) ){
echo '<a href="#" onclick="return deleteAll(1);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
2. Form Data
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=2">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=2">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_SAVE_FILE) ){
echo '<a href="#" onclick="return deleteAll(2);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
3. Form Generator
</div>
<div class="fmg_text">
<a href="http://www.formmail-maker.com/generator.php" onclick="document.frmFormMail.submit(); return false;" title="<?php echo htmlspecialchars(PHPFMG_SUBJECT);?>">Edit Form</a> &nbsp;&nbsp;
<a href="http://www.formmail-maker.com/generator.php" >New Form</a>
</div>
<form name="frmFormMail" action='http://www.formmail-maker.com/generator.php' method='post' enctype='multipart/form-data'>
<input type="hidden" name="uuid" value="<?php echo PHPFMG_ID; ?>">
<input type="hidden" name="external_ini" value="<?php echo function_exists('phpfmg_formini') ? phpfmg_formini() : ""; ?>">
</form>
</td>
</tr>
</table>
<?php
phpfmg_admin_footer();
}
function phpfmg_admin_header( $title = '' ){
header( "Content-Type: text/html; charset=" . PHPFMG_CHARSET );
?>
<html>
<head>
<title><?php echo '' == $title ? '' : $title . ' | ' ; ?>PHP FormMail Admin Panel </title>
<meta name="keywords" content="PHP FormMail Generator, PHP HTML form, send html email with attachment, PHP web form, Free Form, Form Builder, Form Creator, phpFormMailGen, Customized Web Forms, phpFormMailGenerator,formmail.php, formmail.pl, formMail Generator, ASP Formmail, ASP form, PHP Form, Generator, phpFormGen, phpFormGenerator, anti-spam, web hosting">
<meta name="description" content="PHP formMail Generator - A tool to ceate ready-to-use web forms in a flash. Validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. ">
<meta name="generator" content="PHP Mail Form Generator, phpfmg.sourceforge.net">
<style type='text/css'>
body, td, label, div, span{
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
}
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<td nowrap align=center style="background-color:#024e7b;padding:10px;font-size:18px;color:#ffffff;font-weight:bold;width:250px;" >
Form Admin Panel
</td>
<td style="padding-left:30px;background-color:#86BC1B;width:100%;font-weight:bold;" >
&nbsp;
<?php
if( phpfmg_user_isLogin() ){
echo '<a href="admin.php" style="color:#ffffff;">Main Menu</a> &nbsp;&nbsp;' ;
echo '<a href="admin.php?mod=user&func=logout" style="color:#ffffff;">Logout</a>' ;
};
?>
</td>
</table>
<div style="padding-top:28px;">
<?php
}
function phpfmg_admin_footer(){
?>
</div>
<div style="color:#cccccc;text-decoration:none;padding:18px;font-weight:bold;">
:: <a href="http://phpfmg.sourceforge.net" target="_blank" title="Free Mailform Maker: Create read-to-use Web Forms in a flash. Including validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. " style="color:#cccccc;font-weight:bold;text-decoration:none;">PHP FormMail Generator</a> ::
</div>
</body>
</html>
<?php
}
function phpfmg_image_processing(){
$img = new phpfmgImage();
$img->out_processing_gif();
}
# phpfmg module : captcha
# ------------------------------------------------------
function phpfmg_captcha_get(){
$img = new phpfmgImage();
$img->out();
//$_SESSION[PHPFMG_ID.'fmgCaptchCode'] = $img->text ;
$_SESSION[ phpfmg_captcha_name() ] = $img->text ;
}
function phpfmg_captcha_generate_images(){
for( $i = 0; $i < 50; $i ++ ){
$file = "$i.png";
$img = new phpfmgImage();
$img->out($file);
$data = base64_encode( file_get_contents($file) );
echo "'{$img->text}' => '{$data}',\n" ;
unlink( $file );
};
}
function phpfmg_dd_lookup(){
$paraOk = ( isset($_REQUEST['n']) && isset($_REQUEST['lookup']) && isset($_REQUEST['field_name']) );
if( !$paraOk )
return;
$base64 = phpfmg_dependent_dropdown_data();
$data = @unserialize( base64_decode($base64) );
if( !is_array($data) ){
return ;
};
foreach( $data as $field ){
if( $field['name'] == $_REQUEST['field_name'] ){
$nColumn = intval($_REQUEST['n']);
$lookup = $_REQUEST['lookup']; // $lookup is an array
$dd = new DependantDropdown();
echo $dd->lookupFieldColumn( $field, $nColumn, $lookup );
return;
};
};
return;
}
function phpfmg_filman_download(){
if( !isset($_REQUEST['filelink']) )
return ;
$filelink = base64_decode($_REQUEST['filelink']);
$file = PHPFMG_SAVE_ATTACHMENTS_DIR . basename($filelink);
// 2016-12-05: to prevent *LFD/LFI* attack. patch provided by Pouya Darabi, a security researcher in cert.org
$real_basePath = realpath(PHPFMG_SAVE_ATTACHMENTS_DIR);
$real_requestPath = realpath($file);
if ($real_requestPath === false || strpos($real_requestPath, $real_basePath) !== 0) {
return;
};
if( !file_exists($file) ){
return ;
};
phpfmg_util_download( $file, $filelink );
}
class phpfmgDataManager
{
var $dataFile = '';
var $columns = '';
var $records = '';
function __construct(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function phpfmgDataManager(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function parseFile(){
$fp = @fopen($this->dataFile, 'rb');
if( !$fp ) return false;
$i = 0 ;
$phpExitLine = 1; // first line is php code
$colsLine = 2 ; // second line is column headers
$this->columns = array();
$this->records = array();
$sep = chr(0x09);
while( !feof($fp) ) {
$line = fgets($fp);
$line = trim($line);
if( empty($line) ) continue;
$line = $this->line2display($line);
$i ++ ;
switch( $i ){
case $phpExitLine:
continue;
break;
case $colsLine :
$this->columns = explode($sep,$line);
break;
default:
$this->records[] = explode( $sep, phpfmg_data2record( $line, false ) );
};
};
fclose ($fp);
}
function displayRecords(){
$this->parseFile();
echo "<table border=1 style='width=95%;border-collapse: collapse;border-color:#cccccc;' >";
echo "<tr><td>&nbsp;</td><td><b>" . join( "</b></td><td>&nbsp;<b>", $this->columns ) . "</b></td></tr>\n";
$i = 1;
foreach( $this->records as $r ){
echo "<tr><td align=right>{$i}&nbsp;</td><td>" . join( "</td><td>&nbsp;", $r ) . "</td></tr>\n";
$i++;
};
echo "</table>\n";
}
function line2display( $line ){
$line = str_replace( array('"' . chr(0x09) . '"', '""'), array(chr(0x09),'"'), $line );
$line = substr( $line, 1, -1 ); // chop first " and last "
return $line;
}
}
# end of class
# ------------------------------------------------------
class phpfmgImage
{
var $im = null;
var $width = 73 ;
var $height = 33 ;
var $text = '' ;
var $line_distance = 8;
var $text_len = 4 ;
function __construct( $text = '', $len = 4 ){
$this->phpfmgImage( $text, $len );
}
function phpfmgImage( $text = '', $len = 4 ){
$this->text_len = $len ;
$this->text = '' == $text ? $this->uniqid( $this->text_len ) : $text ;
$this->text = strtoupper( substr( $this->text, 0, $this->text_len ) );
}
function create(){
$this->im = imagecreate( $this->width, $this->height );
$bgcolor = imagecolorallocate($this->im, 255, 255, 255);
$textcolor = imagecolorallocate($this->im, 0, 0, 0);
$this->drawLines();
imagestring($this->im, 5, 20, 9, $this->text, $textcolor);
}
function drawLines(){
$linecolor = imagecolorallocate($this->im, 210, 210, 210);
//vertical lines
for($x = 0; $x < $this->width; $x += $this->line_distance) {
imageline($this->im, $x, 0, $x, $this->height, $linecolor);
};
//horizontal lines
for($y = 0; $y < $this->height; $y += $this->line_distance) {
imageline($this->im, 0, $y, $this->width, $y, $linecolor);
};
}
function out( $filename = '' ){
if( function_exists('imageline') ){
$this->create();
if( '' == $filename ) header("Content-type: image/png");
( '' == $filename ) ? imagepng( $this->im ) : imagepng( $this->im, $filename );
imagedestroy( $this->im );
}else{
$this->out_predefined_image();
};
}
function uniqid( $len = 0 ){
$md5 = md5( uniqid(rand()) );
return $len > 0 ? substr($md5,0,$len) : $md5 ;
}
function out_predefined_image(){
header("Content-type: image/png");
$data = $this->getImage();
echo base64_decode($data);
}
// Use predefined captcha random images if web server doens't have GD graphics library installed
function getImage(){
$images = array(
'F152' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7QkMZAlhDHaY6IIkFNDAGsDYwBASgiLECxRgdRFDEgHqnMjSIILkvNGpV1NLMrFVRSO4DqQOSjQ5oeoFkKwO6eQ0BU9DFGB0dAlDFWEMZQhlDQwZB+FERYnEfAAa9y0AwZOMeAAAAAElFTkSuQmCC',
'E0D3' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWElEQVR4nGNYhQEaGAYTpIn7QkMYAlhDGUIdkMQCGhhDWBsdHQJQxFhbWYGkCIqYSKMrkAxAcl9o1LSVqauilmYhuQ9NHYqYCEE7MN2Czc0DFX5UhFjcBwAy2c6h5bRojwAAAABJRU5ErkJggg==',
'DA83' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZ0lEQVR4nGNYhQEaGAYTpIn7QgMYAhhCGUIdkMQCpjCGMDo6OgQgi7WytrI2BDSIoIiJNAKVNQQguS9q6bSVWaGrlmYhuQ9NHVRMNNQVi3kYYlNAelHdEhog0uiA5uaBCj8qQizuAwBqnM8Xn/TN4wAAAABJRU5ErkJggg==',
'F9B7' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAAC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qHZhiU1hbGdH0hgYwhgDdHBowCMKPihCL+wAEBs3FJNZm/wAAAABJRU5ErkJggg==',
'EFEB' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAATUlEQVR4nGNYhQEaGAYTpIn7QkNEQ11DHUMdkMQCGkQaWBsYHQKwiIngVgd2UmjU1LCloStDs5DcR6p5eOyAuhkohubmgQo/KkIs7gMAzNXL2UVo758AAAAASUVORK5CYII=',
'2BC3' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaElEQVR4nGNYhQEaGAYTpIn7WANEQxhCHUIdkMREpoi0MjoEOgQgiQW0ijS6Ngg0iCDrbhVpZQXJIbtv2tSwpatWLc1Cdl8AijowZHQAmceAYh5rA6YdIg2YbgkNxXTzQIUfFSEW9wEAnUDMi4E+pBwAAAAASUVORK5CYII=',
'3209' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdklEQVR4nGNYhQEaGAYTpIn7RAMYQximMEx1QBILmMLayhDKEBCArLJVpNHR0dFBBFlsCkOja0MgTAzspJVRq5YuXRUVFYbsvikMU1gbAqai6G1lCACKNaCKMTowOjqg2AF0SwO6W0QDREMd0Nw8UOFHRYjFfQBU/8uCqGVKHAAAAABJRU5ErkJggg==',
'9F5E' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZUlEQVR4nGNYhQEaGAYTpIn7WANEQ11DHUMDkMREpog0sDYwOiCrC2jFITYVLgZ20rSpU8OWZmaGZiG5j9VVBEgGouhlaMUUEwDbgSoGcgujoyOKGGsAUG8oI4qbByr8qAixuA8A/WjJho2W8hAAAAAASUVORK5CYII=',
'766B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54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0atjSVZFZ05DcR4Re3GJY3ILNzQMVflSEWNwHAKFizVh9TwSKAAAAAElFTkSuQmCC',
'9F74' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WANEQ11DAxoCkMREpogAyYBGZLGAVrBYK4ZYo8OUACT3TZs6NWzV0lVRUUjuY3UFqpvC6ICslwGkN4AxNARJTAAoxujAgOEW1gZUMdYATLGBCj8qQizuAwBiZM2fhhaKUAAAAABJRU5ErkJggg==',
'9317' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WANYQximMIaGIImJTBFpZQgB0khiAa0MjY6YYq0MU4A0kvumTV0VtmraqpVZSO5jdQWra0WxGWiewxSQbgQUgIgFMKC7ZQqjA7qbGUMdUcQGKvyoCLG4DwDlGMrwZVHhOwAAAABJRU5ErkJggg==',
'1917' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcElEQVR4nGNYhQEaGAYTpIn7GB0YQximMIaGIImxOrC2MoQwNIggiYk6iDQ6ookxAsUcpjA0BCC5b2XW0qVZ04AUkvuAdgQC1bWi2ssA0jsFVYwFJBaAKgZ0yxSgamS3hDCGMIY6oogNVPhREWJxHwD7/siyYXw2RAAAAABJRU5ErkJggg==',
'DED8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAVklEQVR4nGNYhQEaGAYTpIn7QgNEQ1lDGaY6IIkFTBFpYG10CAhAFmsFijUEOohgiAXA1IGdFLV0atjSVVFTs5Dch6aOgHloYljcgs3NAxV+VIRY3AcAIfXOioZ7rn0AAAAASUVORK5CYII=',
'177F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZElEQVR4nGNYhQEaGAYTpIn7GB1EQ11DA0NDkMRYHRgaHRoCHZDViWIRY3RgaGVodISJgZ20MmvVtFVLV4ZmIbkPqC6AYQojml6QKLoYK0QcRUykASSK4pYQTLGBCj8qQizuAwDvO8a5dD0LpAAAAABJRU5ErkJggg==',
'5BC8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZ0lEQVR4nGNYhQEaGAYTpIn7QkNEQxhCHaY6IIkFNIi0MjoEBASgijW6Ngg6iCCJBQaItLI2MMDUgZ0UNm1q2NJVq6ZmIbuvFUUdTAxoHiOKeQGtmHaITMF0C2sAppsHKvyoCLG4DwARFczDMjPWawAAAABJRU5ErkJggg==',
'9803' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7WAMYQximMIQ6IImJTGFtZQhldAhAEgtoFWl0dHRoEEERY21lbQhoCEBy37SpK8OWropamoXkPlZXFHUQCDTPFSiCbJ4AFjuwuQWbmwcq/KgIsbgPAKMBzINB7vefAAAAAElFTkSuQmCC',
'6280' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdElEQVR4nGNYhQEaGAYTpIn7WAMYQxhCGVqRxUSmsLYyOjpMdUASC2gRaXRtCAgIQBZrYGh0dHR0EEFyX2TUqqWrQldmTUNyX8gUhimMCHUQva0MAawNgWhijA6saHYA3dKA7hbWANFQBzQ3D1T4URFicR8ACIvMEh8Xdc4AAAAASUVORK5CYII=',
'8FB8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAVElEQVR4nGNYhQEaGAYTpIn7WANEQ11DGaY6I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AADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7QkNEQ11DHaY6IIkFNIg0sDYwBARgiDE6iCCJBQYAxabCxcBOCps2NWxpZlZUGLL7WkEqAqYi64WKNSCLBbSC7AhAsUNkikgDo6MDiltYgfYyhDKguHmgwo+KEIv7ACDdzAmhHWYrAAAAAElFTkSuQmCC',
'9D43' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpIn7WANEQxgaHUIdkMREpoi0MrQ6OgQgiQW0ijQ6THVoEEEXC3RoCEBy37Sp01ZmZmYtzUJyH6urSKNrI1wdBAL1uoYGoJgnADKvEdUOsFsaUd2Czc0DFX5UhFjcBwAgDc58de4yqgAAAABJRU5ErkJggg=='
);
$this->text = array_rand( $images );
return $images[ $this->text ] ;
}
function out_processing_gif(){
$image = dirname(__FILE__) . '/processing.gif';
$base64_image = "R0lGODlhFAAUALMIAPh2AP+TMsZiALlcAKNOAOp4ANVqAP+PFv///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAIACwAAAAAFAAUAAAEUxDJSau9iBDMtebTMEjehgTBJYqkiaLWOlZvGs8WDO6UIPCHw8TnAwWDEuKPcxQml0Ynj2cwYACAS7VqwWItWyuiUJB4s2AxmWxGg9bl6YQtl0cAACH5BAUKAAgALAEAAQASABIAAAROEMkpx6A4W5upENUmEQT2feFIltMJYivbvhnZ3Z1h4FMQIDodz+cL7nDEn5CH8DGZhcLtcMBEoxkqlXKVIgAAibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkphaA4W5upMdUmDQP2feFIltMJYivbvhnZ3V1R4BNBIDodz+cL7nDEn5CH8DGZAMAtEMBEoxkqlXKVIg4HibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpjaE4W5tpKdUmCQL2feFIltMJYivbvhnZ3R0A4NMwIDodz+cL7nDEn5CH8DGZh8ONQMBEoxkqlXKVIgIBibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpS6E4W5spANUmGQb2feFIltMJYivbvhnZ3d1x4JMgIDodz+cL7nDEn5CH8DGZgcBtMMBEoxkqlXKVIggEibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpAaA4W5vpOdUmFQX2feFIltMJYivbvhnZ3V0Q4JNhIDodz+cL7nDEn5CH8DGZBMJNIMBEoxkqlXKVIgYDibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpz6E4W5tpCNUmAQD2feFIltMJYivbvhnZ3R1B4FNRIDodz+cL7nDEn5CH8DGZg8HNYMBEoxkqlXKVIgQCibbK9YLBYvLtHH5K0J0IACH5BAkKAAgALAEAAQASABIAAAROEMkpQ6A4W5spIdUmHQf2feFIltMJYivbvhnZ3d0w4BMAIDodz+cL7nDEn5CH8DGZAsGtUMBEoxkqlXKVIgwGibbK9YLBYvLtHH5K0J0IADs=";
$binary = is_file($image) ? join("",file($image)) : base64_decode($base64_image);
header("Cache-Control: post-check=0, pre-check=0, max-age=0, no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: image/gif");
echo $binary;
}
}
# end of class phpfmgImage
# ------------------------------------------------------
# end of module : captcha
# module user
# ------------------------------------------------------
function phpfmg_user_isLogin(){
return ( isset($_SESSION['authenticated']) && true === $_SESSION['authenticated'] );
}
function phpfmg_user_logout(){
session_destroy();
header("Location: admin.php");
}
function phpfmg_user_login()
{
if( phpfmg_user_isLogin() ){
return true ;
};
$sErr = "" ;
if( 'Y' == $_POST['formmail_submit'] ){
if(
defined( 'PHPFMG_USER' ) && strtolower(PHPFMG_USER) == strtolower($_POST['Username']) &&
defined( 'PHPFMG_PW' ) && strtolower(PHPFMG_PW) == strtolower($_POST['Password'])
){
$_SESSION['authenticated'] = true ;
return true ;
}else{
$sErr = 'Login failed. Please try again.';
}
};
// show login form
phpfmg_admin_header();
?>
<form name="frmFormMail" action="" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:380px;height:260px;">
<fieldset style="padding:18px;" >
<table cellspacing='3' cellpadding='3' border='0' >
<tr>
<td class="form_field" valign='top' align='right'>Email :</td>
<td class="form_text">
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" class='text_box' >
</td>
</tr>
<tr>
<td class="form_field" valign='top' align='right'>Password :</td>
<td class="form_text">
<input type="password" name="Password" value="" class='text_box'>
</td>
</tr>
<tr><td colspan=3 align='center'>
<input type='submit' value='Login'><br><br>
<?php if( $sErr ) echo "<span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
<a href="admin.php?mod=mail&func=request_password">I forgot my password</a>
</td></tr>
</table>
</fieldset>
</div>
<script type="text/javascript">
document.frmFormMail.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_request_password(){
$sErr = '';
if( $_POST['formmail_submit'] == 'Y' ){
if( strtoupper(trim($_POST['Username'])) == strtoupper(trim(PHPFMG_USER)) ){
phpfmg_mail_password();
exit;
}else{
$sErr = "Failed to verify your email.";
};
};
$n1 = strpos(PHPFMG_USER,'@');
$n2 = strrpos(PHPFMG_USER,'.');
$email = substr(PHPFMG_USER,0,1) . str_repeat('*',$n1-1) .
'@' . substr(PHPFMG_USER,$n1+1,1) . str_repeat('*',$n2-$n1-2) .
'.' . substr(PHPFMG_USER,$n2+1,1) . str_repeat('*',strlen(PHPFMG_USER)-$n2-2) ;
phpfmg_admin_header("Request Password of Email Form Admin Panel");
?>
<form name="frmRequestPassword" action="admin.php?mod=mail&func=request_password" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:580px;height:260px;text-align:left;">
<fieldset style="padding:18px;" >
<legend>Request Password</legend>
Enter Email Address <b><?php echo strtoupper($email) ;?></b>:<br />
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" style="width:380px;">
<input type='submit' value='Verify'><br>
The password will be sent to this email address.
<?php if( $sErr ) echo "<br /><br /><span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
</fieldset>
</div>
<script type="text/javascript">
document.frmRequestPassword.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_password(){
phpfmg_admin_header();
if( defined( 'PHPFMG_USER' ) && defined( 'PHPFMG_PW' ) ){
$body = "Here is the password for your form admin panel:\n\nUsername: " . PHPFMG_USER . "\nPassword: " . PHPFMG_PW . "\n\n" ;
if( 'html' == PHPFMG_MAIL_TYPE )
$body = nl2br($body);
mailAttachments( PHPFMG_USER, "Password for Your Form Admin Panel", $body, PHPFMG_USER, 'You', "You <" . PHPFMG_USER . ">" );
echo "<center>Your password has been sent.<br><br><a href='admin.php'>Click here to login again</a></center>";
};
phpfmg_admin_footer();
}
function phpfmg_writable_check(){
if( is_writable( dirname(PHPFMG_SAVE_FILE) ) && is_writable( dirname(PHPFMG_EMAILS_LOGFILE) ) ){
return ;
};
?>
<style type="text/css">
.fmg_warning{
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 16px;
color : black;
margin: 10px;
line-height: 180%;
width:80%;
}
.fmg_warning_title{
font-weight: bold;
}
</style>
<br><br>
<div class="fmg_warning">
<div class="fmg_warning_title">Your form data or email traffic log is NOT saving.</div>
The form data (<?php echo PHPFMG_SAVE_FILE ?>) and email traffic log (<?php echo PHPFMG_EMAILS_LOGFILE?>) will be created automatically when the form is submitted.
However, the script doesn't have writable permission to create those files. In order to save your valuable information, please set the directory to writable.
If you don't know how to do it, please ask for help from your web Administrator or Technical Support of your hosting company.
</div>
<br><br>
<?php
}
function phpfmg_log_view(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
if( 1== $n ){
echo "<pre>\n";
echo join("",file($file) );
echo "</pre>\n";
}else{
$man = new phpfmgDataManager();
$man->displayRecords();
};
}else{
echo "<b>No form data found.</b>";
};
phpfmg_admin_footer();
}
function phpfmg_log_download(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
$file = $files[$n];
if( is_file($file) ){
phpfmg_util_download( $file, PHPFMG_SAVE_FILE == $file ? 'form-data.csv' : 'email-traffics.txt', true, 1 ); // skip the first line
}else{
phpfmg_admin_header();
echo "<b>No email traffic log found.</b>";
phpfmg_admin_footer();
};
}
function phpfmg_log_delete(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
echo unlink($file) ? "It has been deleted!" : "Failed to delete!" ;
};
phpfmg_admin_footer();
}
function phpfmg_util_download($file, $filename='', $toCSV = false, $skipN = 0 ){
if (!is_file($file)) return false ;
set_time_limit(0);
$buffer = "";
$i = 0 ;
$fp = @fopen($file, 'rb');
while( !feof($fp)) {
$i ++ ;
$line = fgets($fp);
if($i > $skipN){ // skip lines
if( $toCSV ){
$line = str_replace( chr(0x09), ',', $line );
$buffer .= phpfmg_data2record( $line, false );
}else{
$buffer .= $line;
};
};
};
fclose ($fp);
/*
If the Content-Length is NOT THE SAME SIZE as the real conent output, Windows+IIS might be hung!!
*/
$len = strlen($buffer);
$filename = basename( '' == $filename ? $file : $filename );
$file_extension = strtolower(substr(strrchr($filename,"."),1));
switch( $file_extension ) {
case "pdf": $ctype="application/pdf"; break;
case "exe": $ctype="application/octet-stream"; break;
case "zip": $ctype="application/zip"; break;
case "doc": $ctype="application/msword"; break;
case "xls": $ctype="application/vnd.ms-excel"; break;
case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
case "gif": $ctype="image/gif"; break;
case "png": $ctype="image/png"; break;
case "jpeg":
case "jpg": $ctype="image/jpg"; break;
case "mp3": $ctype="audio/mpeg"; break;
case "wav": $ctype="audio/x-wav"; break;
case "mpeg":
case "mpg":
case "mpe": $ctype="video/mpeg"; break;
case "mov": $ctype="video/quicktime"; break;
case "avi": $ctype="video/x-msvideo"; break;
//The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
case "php":
case "htm":
case "html":
$ctype="text/plain"; break;
default:
$ctype="application/x-download";
}
//Begin writing headers
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
//Use the switch-generated Content-Type
header("Content-Type: $ctype");
//Force the download
header("Content-Disposition: attachment; filename=".$filename.";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$len);
while (@ob_end_clean()); // no output buffering !
flush();
echo $buffer ;
return true;
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,94 +0,0 @@
<?php
if( !defined('FormmailMakerFormLoader') ){
require_once( dirname(__FILE__).'/abuse.lib.php' );
phpfmg_display_form();
};
function phpfmg_form( $sErr = false ){
$style=" class='form_text' ";
?>
<div id='frmFormMailContainer'>
<form style="text-align: center;" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php echo PHPFMG_ADMIN_URL . '' ; ?>' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='mod' value='ajax'>
<input type='hidden' name='func' value='submit'>
<ol class='phpfmg_form' >
<li class='field_block' id='field_0_div'><div class='col_label'>
<label class='form_field'>Contact Name:</label></div>
<div class='col_field'>
<input type="text" name="field_0" id="field_0" value="<?php phpfmg_hsc("field_0", ""); ?>" class='text_box'>
<div id='field_0_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_1_div'><div class='col_label'>
<label class='form_field'>Email Address:</label></div>
<div class='col_field'>
<input type="text" name="field_1" id="field_1" value="<?php phpfmg_hsc("field_1", ""); ?>" class='text_box'>
<div id='field_1_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_2_div'><div class='col_label'>
<label class='form_field'>Subject:</label></div>
<div class='col_field'>
<input type="text" name="field_2" id="field_2" value="<?php phpfmg_hsc("field_2", ""); ?>" class='text_box'>
<div id='field_2_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_3_div'><div class='col_label'>
<label class='form_field'>Message:</label></div>
<div class='col_field'>
<textarea name="field_3" id="field_3" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_3"); ?></textarea>
<div id='field_3_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='phpfmg_captcha_div'>
<div class='col_label'><label class='form_field'>Security Code:</label></div><div class='col_field'>
<?php phpfmg_show_captcha(); ?>
</div>
</li>
<li>
<div class='form_submit_block col_field'>
<input type='submit' value='Send' class='form_button'>
<div id='err_required' class="form_error" style='display:none;'>
<label class='form_error_title'>Please fill in every field.</label>
</div>
<span id='phpfmg_processing' style='display:none;'>
<img id='phpfmg_processing_gif' src='<?php echo PHPFMG_ADMIN_URL . '?mod=image&amp;func=processing' ;?>' border=0 alt='Processing...'> <label id='phpfmg_processing_dots'></label>
</span>
</div>
</li>
</ol>
</form>
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
</div>
<!-- end of form container -->
<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your report has been sent. Thank you!
</div>
<?php
phpfmg_javascript($sErr);
}
# end of form
function phpfmg_form_css(){
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
?>
<style>
ol.phpfmg_form{
list-style-type:none;
padding:0px;
margin:0px;
}
.text_box, .text_area, .text_select {
min-width:500px;
max-width:500px;
}
.form_error_title{
font-weight: bold;
color: #FF0000;
}
<?php phpfmg_text_align();?>
</style>
<?php
}
# end of css
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,46 +0,0 @@
<?php
/* gitea deploy webhook */
/* security */
$access_token = 'abcdefg';
$ansible_lastrun = '/dev/shm/ansible-hook-last-run';
$ansible_dropfile = '/dev/shm/run-ansible';
$remoteip = $_SERVER['REMOTE_ADDR'];
$allowedip = "195.201.242.48";
$ratelimit = 300;
/* get json data */
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$client_token = $data["secret"];
if ($client_token === $access_token)
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P1.";
die();
}
if ($remoteip != $allowedip)
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P2.";
//echo '\n' . $remoteip . " " . $allowedip;
die();
}
syslog(LOG_INFO, 'Ansible Webhook recieved.');
if ( time () - filemtime ( $ansible_lastrun ) > $ratelimit ) {
touch ( $ansible_dropfile );
touch ( $ansible_lastrun );
echo "HTTP 200 - Ansible webhook recieved.";
die();
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.";
die();
}
die();
?>

BIN
articles/.signup.md.swp Normal file

Binary file not shown.

173
articles/copyright.md Normal file
View File

@ -0,0 +1,173 @@
## creative commons
# Attribution-ShareAlike 4.0 International
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
### Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
* __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
* __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensors permission is not necessary for any reasonfor example, because of any applicable exception or limitation to copyrightthen that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
## Creative Commons Attribution-ShareAlike 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
### Section 1 Definitions.
a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. __BY-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License.
d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
j. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
k. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
l. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
m. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
### Section 2 Scope.
a. ___License grant.___
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
A. reproduce and Share the Licensed Material, in whole or in part; and
B. produce, reproduce, and Share Adapted Material.
2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. __Term.__ The term of this Public License is specified in Section 6(a).
4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
5. __Downstream recipients.__
A. __Offer from the Licensor Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
B. __Additional offer from the Licensor Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapters License You apply.
C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. ___Other rights.___
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
### Section 3 License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
a. ___Attribution.___
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
b. ___ShareAlike.___
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
1. The Adapters License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
### Section 4 Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
### Section 5 Disclaimer of Warranties and Limitation of Liability.
a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
### Section 6 Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
### Section 7 Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
### Section 8 Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
>
> Creative Commons may be contacted at creativecommons.org.

17
articles/donate.md Normal file
View File

@ -0,0 +1,17 @@
# Donations
As this server and our projects are all a labor of love and goodwill for
the community, operating the thunix server costs money. We love what we
do and we love sharing what we do for free, but over time, operating
expenses can have a big impact.
That being said, we also rely on the good nature of generous people, who
are willing to donate to us. The price breakdown right now is €38/month.
So to help with server costs and time spent, you can donate the
following ways:
Via BitCoin: 1DFM3qY7XmCxGTFPATSQJVCNjvmWiVubGN
You can donate via Liberapay here: [![Donate using Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/ub3g33k/donate)
Or via PayPal here: [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GW2H85HY9VJ3L)

66
articles/faq.md Normal file
View File

@ -0,0 +1,66 @@
# Frequently Asked Questions
**How do I sign up for an account?**
Simply by going to our [signup page](/signup.php) and filling in the
form. You can ask for help in \#thunix on tilde.chat, or you can
[contact us](/contact.php), if you run into any difficulties.
**Who is running thunix?**
The current system administrators are [amcclure](/~amcclure),
[ubergeek](/~ubergeek), [Naglfar](/~naglfar), and
[fosslinux](/~fosslinux).
**What happened to the old thunix? Why the name change?**
The original machine and founder dissappeared without any warning to
anyone, including server staff. For this reason, most things were not
backed up, and we needed to obtain a new domain name, and a new set of
machines.
**I want a new package installed, or I want something changed on
Thunix!**
Excellent! We're looking to make this system useful for the
community! You can submit a PR or an issue
[here](https://tildegit.org/thunix/ansible) to request the system
change.
**Can I get password-based login? Old thunix had it!**
No. Sorry. Not for
shell access. For other integrated services, password auth will be
enabled, but not for your ssh connection. We use key based
authentication, as it's more secure, and more convienent for you, to be
honest.
**I want to run {fill in the blank} server, but I can't seem to access
it?**
The only exposed ports to the internet are services as defined in
our [ansible playbook.](https://tildegit.org/thunix/ansible) If there is
a public service you want to see, open an issue, or do a pull request
for it, and we'll probably enable it without much question.
**That's too hard! Can you just open the port up for this service I have
running?**
No. Due to security issues, we cannot. HOWEVER! You can
certainly use an [SSH tunnel](https://duckduckgo.com/?q=ssh+tunnnel) to
access it.
**Old thunix did {fill in the blank}, and now it doesn't. Make it work
like it used to!**
There was a huge changeover. Maybe we can get
something going old thunix had, and maybe not. You can mention it in the
IRC channel, and we'll see what we can do.
**How can I access my thunix email?**
You can use the following for your
mail settings (This is Thunderbird's setting screen, but the settings
are the same):
[![](https://thunix.net/images/mail.png)](https://thunix.net/images/mail.png)

43
articles/gdpr.md Normal file
View File

@ -0,0 +1,43 @@
# GDPR Statement and Privacy Policy
Thunix takes privacy seriously, and as such remains committed to being
in compliance with the GDPR, which took affect on May 25th, 2018.
## What data do we collect from you?
Thunix collects your email address, during signup, and IPs you log into
the system from, in accordance with technical requirements.
We also store whatever data you create or maintain in your home
directory on Thunix, which may include emails to and from your Thunix
account.
## How long do we retain data about you?
Your email address is retained only long enough to process you account
creation request. IPs you log into from are retained for a maximum of 30
days.
## How can I request a copy of my data?
You can submit a request at [contact page](/contact.php). We will
endeavor to provide you a copy of all data we store within 14 days.
## How can I request removal of my information?
You can submit a request at [contact page](/contact.php), and we will
endeavor to remove all personal data of yours from our system within 14
days. However, this will include removal of your user account from our
system as well, which will prevent access to most of the services
provided by Thunix.
If you request deletion of your account, all of your data will be purged
within 14 days from our system.
## How do you protect my data?
All data on thunix is encrypted at rest. Logs are maintained only for as
long as is technically required (30 days, for troubleshooting of
issues). Personally created data, is protected by the UNIX permissions
model, as dictated by yourself, however, by default, your personally
created data is viewable by all other users of the system, per design.

1
articles/index.html Normal file
View File

@ -0,0 +1 @@
<html>Apache is functioning normally</html>

50
articles/main.md Normal file
View File

@ -0,0 +1,50 @@
# Welcome to thunix!
We're so glad you could drop by and we hope you enjoy your visit. Stay a
while! Feel free to inquire about what we have to offer and explore our
services.
## About thunix
thunix offers Secure Shell (SSH) accounts, Web Hosting, Email Accounts,
and many other services. But, most of all, we are a community of users.
It was founded by hexhaxtron in the Summer of 2017, and was continued by
[amcclure](/~amcclure) and [ubergeek](/~ubergeek) since 2018. We aim to
provide the best service possible with a wide variety of features, and
we hope you have fun with it!
## Project Phoenix
The thunix Phoenix project aims to provide a new user experience for
shell users, with integration into the wider Tildeverse network.
Join us on IRC on irc.tilde.chat/6697 in the #thunix channel, or just
click here for a web client: [![#thunix channel](https://tilde.chat/badges/badge.php?channel=%23thunix)](https://web.tilde.chat/?join=thunix)
If you want to sign up for an account, simply open our [signup
form](/signup.php) and provide us with:
* Your contact name
* Your email address (so that we can contact you with login details)
* Your desired username (all lowercase, alphanumeric characters only, no spaces)
* How you heard about us and what interests you in thunix
* Your Public SSH Key
thunix tries to adhere to the values and philosophy of the Hacker Ethic
whenever possible. The hacker ethics and beliefs as described by Levy
are:
* Access to computers - and anything which might teach you something about the way the world works - should be unlimited and total. Always yield to the Hands-On Imperative!
* All information should be free
* Mistrust authority - promote decentralization
* Hackers should be judged by their hacking, not criteria such as degrees, age, race, sex, or position
* You can create art and beauty on a computer
* Computers can change your life for the better
thunix will never use proprietary software but users can do that if they
wish. This is something they should avoid however.
If you want to help keep thunix running, please consider
[donating](donate).

40
articles/news.md Normal file
View File

@ -0,0 +1,40 @@
# State of the Thunix - May 09, 2019
Another month, another update!
Not too much to announce, as far as front end changes. New user requests
should happen much faster now that we've written/stolen a tool from
tilde.team that we can use to expedite user creation, and automation of
a bunch of the steps we take to onboard users.
We're considering adding in user aging for accounts. Lots of accounts
get created, and then never logged into. This can actually post a
security problem for the system, as often times, accounts get created
now, to be used months from today for botnets and the like. Let us know
what your thoughts are on a reasonable time to age off users. At this
time, I am personally leaning towards 180 days. Plenty of time to log
into your shell, and use it a bit. And, once every 6 months isn't much
to ask, since we expect members to actually contribute to the community,
anyways.
We've terminated one account already for running a botnet member from
here, and we'll keep a vigilant eye for any others.
This leads to another point: Just running a znc process doesn't count
for login. Neither does checking your email. You'll need to actually log
into the shell, in order to reset the counter. You should, anyways,
since we have a lot of services internally, that we don't offer external
access too.
We are also looking at terminating the minecraft and minetest instances
here. If anyone is using them, speak up now, or forever hold you peace!
Not really. We wouldn't be deleting anything, just shutting down the
processes, and removing them from the backup scheme.
We do need to welcome our newest sysadmin here: fosslinux. Give them a
warm welcome if you see them around.
And again, any questions, or concerns, feel free to drop myself, or any
of the other admins a line.
Ubergeek/ub3g33k

57
articles/server.md Normal file
View File

@ -0,0 +1,57 @@
# Service Status and Information
## Minetest
Connect to thunix.net:30000 in your minetest client
## Minecraft
Connect to thunix.net in your minecraft client. Running the Paperclip
minecraft server.
## Mail Services
Thunix offers webmail at [https://thunix.net/webmail](/webmail). You can
also connect via imap. Thunderbird will autodetect your settings, and we
recommend the use of Thunderbird email client, so you can get the
best-of-breed email experience. We also recommend using enigmail with
Thunderbird as well. You can get it from your distro's package manager,
or from [the Thunderbird project's site](https://www.thunderbird.net/)
## Onion Service
Thunix's services are available as a onion site as well. Our onion
address is thunixme5v4rnoby.onion.
## BZFlag Game Server
BZFlag runs on the standard port. If you have a specific map you want
loaded, send an email to root, and we'll look at getting the map swapped
out
## IRC Chat
Thunix is part of the tilde.chat network. You can access chat via the
terminal, with the 'chat' command, via your favorite email client at
irc.tilde.chat/6697, or via a web chat interface located [here]().
## FOSS Project Mirrors
Thunix hosts mirrors for several FOSS projects. You can see the full
mirror list in the sidebar link.
# Server Status
Last update: 18:17
| Check | Status|
|---|---|
| sshd | GOOD|
| BZFlag\_Server | GOOD|
| Memory | GOOD|
| Minetest\_Server | GOOD|
| web\_site | GOOD|
| web\_site\_https| GOOD|
| imap | GOOD|
| smtp | GOOD|

73
articles/signup.md Normal file
View File

@ -0,0 +1,73 @@
# Formtest
<form method="post" name="myemailform" action="form-to-email.php">
<p>Enter Name: <input type="text" name="name"></p>
<p>Enter Email Address: <input type="text" name="email"></p>
<p>Enter Message: <textarea name="message"></textarea></p>
<input type="submit" value="Send Form">
</form>
<script>
$(function()
{
function after_form_submitted(data)
{
if(data.result == 'success')
{
$('form#reused_form').hide();
$('#success_message').show();
$('#error_message').hide();
}
else
{
$('#error_message').append('<ul></ul>');
jQuery.each(data.errors,function(key,val)
{
$('#error_message ul').append('<li>'+key+':'+val+'</li>');
});
$('#success_message').hide();
$('#error_message').show();
//reverse the response on the button
$('button[type="button"]', $form).each(function()
{
$btn = $(this);
label = $btn.prop('orig_label');
if(label)
{
$btn.prop('type','submit' );
$btn.text(label);
$btn.prop('orig_label','');
}
});
}//else
}
$('#reused_form').submit(function(e)
{
e.preventDefault();
$form = $(this);
//show some response on the button
$('button[type="submit"]', $form).each(function()
{
$btn = $(this);
$btn.prop('type','button' );
$btn.prop('orig_label',$btn.text());
$btn.text('Sending ...');
});
$.ajax({
type: "POST",
url: 'handler.php',
data: $form.serialize(),
success: after_form_submitted,
dataType: 'json'
});
});
});
</script>

59
articles/tos.md Normal file
View File

@ -0,0 +1,59 @@
# Terms of Service
Nothing is without its rules and regulations; thunix is no exception.
Below are the site's service terms. Everything in this page should be
clear to everyone who wishes to use thunix's services; failure to abide
by these terms can result in penalties such as service bans and may
result in legal action against any offending users, depending on the
severity of each case and any other individuals who may have been
affected. Thunix may conduct investigations on any suspected violations,
and we will cooperate with law enforcement agencies with their
investigations. Be sure to read this page carefully and understand it.
You are responsibe for checking your local mail account from time to
time. This email address is the only one we retain, and as such, any
warnings and notices regarding your account, or service status will be
sent to this account.
1. Deliberately defacing the accounts of other users
2. Deliberately trying to disrupt thunix's server
3. Using thunix as a launch pad for disrupting other servers
4. Using thunix to impersonate other websites and businesses for
criminal purposes
5. Storing/distributing pornography of any genre and medium (especially
child pornography)
6. Storing/distributing content that defames any individual
7. Promoting racial, ethnic, religious, political and other forms of
bigotry
8. Storing/distributing, promoting, or encouraging use of
pirated/cracked software, license keys, license/registration
circumvention programs, or any questionable programs/scripts that
can risk causing unauthorized modifications, or disrupts network
services for any programs or devices.
9. Mining cryptocurrencies
10. Spamming on any forums, mailing lists, irc channels,
newsgroups, etc.
11. Leaking or publishing any user's or individual's personal
information without that person's consent.
Copyright infringement is not allowed on thunix, and we will not allow
any illegal content to be distributed. It's also expected that all users
respect the copyrights of those who produce original content of any kind
and only share if the author or license grants you permission. Content
hosted on accounts used for external file storage must also follow
copyright law.
If you want to request for content you own the copyright for to be
removed from thunix, please refer to our [abuse reporting
page](/abuse.php). In the email, please identify who you are, if you are
the copyright holder or legally representing them, the exact files you
want removed with links to the files and infringed content, and contact
information such as phone numbers or a reply-to email address.
Users that repeatedly violate the Terms of Service will have their
account removed. Depending on the degree of the offense, their account
may be removed immediately. These terms also apply to communication
services such as forums, mailing lists, irc channels, newsgroups, and
any other service either hosted on or used for thunix. If you come
across anything that violates the terms of service, please let us know
with the [abuse reporting page](/abuse.php).

14
config.php Normal file
View File

@ -0,0 +1,14 @@
<?php
//Name of your site
$site_name="☣ thunix ☣";
//Root for the site, in a browser
$site_root="https://thunix.net/~ubergeek/thunix_site";
//Local base root for app files
$doc_root="/home/ubergeek/public_html/thunix_site";
//Site style
// site is the default. Specify something else here to switch
$site_style="thunix";
?>

View File

@ -1,860 +0,0 @@
<?php
require_once( dirname(__FILE__).'/contact.lib.php' );
define( 'PHPFMG_USER', "root@thunix.net" ); // must be a email address. for sending password to you.
define( 'PHPFMG_PW', "a31add" );
?>
<?php
/**
* GNU Library or Lesser General Public License version 2.0 (LGPLv2)
*/
# main
# ------------------------------------------------------
error_reporting( E_ERROR ) ;
phpfmg_admin_main();
# ------------------------------------------------------
function phpfmg_admin_main(){
$mod = isset($_REQUEST['mod']) ? $_REQUEST['mod'] : '';
$func = isset($_REQUEST['func']) ? $_REQUEST['func'] : '';
$function = "phpfmg_{$mod}_{$func}";
if( !function_exists($function) ){
phpfmg_admin_default();
exit;
};
// no login required modules
$public_modules = false !== strpos('|captcha||ajax|', "|{$mod}|");
$public_functions = false !== strpos('|phpfmg_ajax_submit||phpfmg_mail_request_password||phpfmg_filman_download||phpfmg_image_processing||phpfmg_dd_lookup|', "|{$function}|") ;
if( $public_modules || $public_functions ) {
$function();
exit;
};
return phpfmg_user_isLogin() ? $function() : phpfmg_admin_default();
}
function phpfmg_ajax_submit(){
$phpfmg_send = phpfmg_sendmail( $GLOBALS['form_mail'] );
$isHideForm = isset($phpfmg_send['isHideForm']) ? $phpfmg_send['isHideForm'] : false;
$response = array(
'ok' => $isHideForm,
'error_fields' => isset($phpfmg_send['error']) ? $phpfmg_send['error']['fields'] : '',
'OneEntry' => isset($GLOBALS['OneEntry']) ? $GLOBALS['OneEntry'] : '',
);
@header("Content-Type:text/html; charset=$charset");
echo "<html><body><script>
var response = " . json_encode( $response ) . ";
try{
parent.fmgHandler.onResponse( response );
}catch(E){};
\n\n";
echo "\n\n</script></body></html>";
}
function phpfmg_admin_default(){
if( phpfmg_user_login() ){
phpfmg_admin_panel();
};
}
function phpfmg_admin_panel()
{
if( !phpfmg_user_isLogin() ){
exit;
};
phpfmg_admin_header();
phpfmg_writable_check();
?>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign=top style="padding-left:280px;">
<style type="text/css">
.fmg_title{
font-size: 16px;
font-weight: bold;
padding: 10px;
}
.fmg_sep{
width:32px;
}
.fmg_text{
line-height: 150%;
vertical-align: top;
padding-left:28px;
}
</style>
<script type="text/javascript">
function deleteAll(n){
if( confirm("Are you sure you want to delete?" ) ){
location.href = "admin.php?mod=log&func=delete&file=" + n ;
};
return false ;
}
</script>
<div class="fmg_title">
1. Email Traffics
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=1">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=1">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_EMAILS_LOGFILE) ){
echo '<a href="#" onclick="return deleteAll(1);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
2. Form Data
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=2">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=2">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_SAVE_FILE) ){
echo '<a href="#" onclick="return deleteAll(2);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
3. Form Generator
</div>
<div class="fmg_text">
<a href="http://www.formmail-maker.com/generator.php" onclick="document.frmFormMail.submit(); return false;" title="<?php echo htmlspecialchars(PHPFMG_SUBJECT);?>">Edit Form</a> &nbsp;&nbsp;
<a href="http://www.formmail-maker.com/generator.php" >New Form</a>
</div>
<form name="frmFormMail" action='http://www.formmail-maker.com/generator.php' method='post' enctype='multipart/form-data'>
<input type="hidden" name="uuid" value="<?php echo PHPFMG_ID; ?>">
<input type="hidden" name="external_ini" value="<?php echo function_exists('phpfmg_formini') ? phpfmg_formini() : ""; ?>">
</form>
</td>
</tr>
</table>
<?php
phpfmg_admin_footer();
}
function phpfmg_admin_header( $title = '' ){
header( "Content-Type: text/html; charset=" . PHPFMG_CHARSET );
?>
<html>
<head>
<title><?php echo '' == $title ? '' : $title . ' | ' ; ?>PHP FormMail Admin Panel </title>
<meta name="keywords" content="PHP FormMail Generator, PHP HTML form, send html email with attachment, PHP web form, Free Form, Form Builder, Form Creator, phpFormMailGen, Customized Web Forms, phpFormMailGenerator,formmail.php, formmail.pl, formMail Generator, ASP Formmail, ASP form, PHP Form, Generator, phpFormGen, phpFormGenerator, anti-spam, web hosting">
<meta name="description" content="PHP formMail Generator - A tool to ceate ready-to-use web forms in a flash. Validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. ">
<meta name="generator" content="PHP Mail Form Generator, phpfmg.sourceforge.net">
<style type='text/css'>
body, td, label, div, span{
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
}
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<td nowrap align=center style="background-color:#024e7b;padding:10px;font-size:18px;color:#ffffff;font-weight:bold;width:250px;" >
Form Admin Panel
</td>
<td style="padding-left:30px;background-color:#86BC1B;width:100%;font-weight:bold;" >
&nbsp;
<?php
if( phpfmg_user_isLogin() ){
echo '<a href="admin.php" style="color:#ffffff;">Main Menu</a> &nbsp;&nbsp;' ;
echo '<a href="admin.php?mod=user&func=logout" style="color:#ffffff;">Logout</a>' ;
};
?>
</td>
</table>
<div style="padding-top:28px;">
<?php
}
function phpfmg_admin_footer(){
?>
</div>
<div style="color:#cccccc;text-decoration:none;padding:18px;font-weight:bold;">
:: <a href="http://phpfmg.sourceforge.net" target="_blank" title="Free Mailform Maker: Create read-to-use Web Forms in a flash. Including validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. " style="color:#cccccc;font-weight:bold;text-decoration:none;">PHP FormMail Generator</a> ::
</div>
</body>
</html>
<?php
}
function phpfmg_image_processing(){
$img = new phpfmgImage();
$img->out_processing_gif();
}
# phpfmg module : captcha
# ------------------------------------------------------
function phpfmg_captcha_get(){
$img = new phpfmgImage();
$img->out();
//$_SESSION[PHPFMG_ID.'fmgCaptchCode'] = $img->text ;
$_SESSION[ phpfmg_captcha_name() ] = $img->text ;
}
function phpfmg_captcha_generate_images(){
for( $i = 0; $i < 50; $i ++ ){
$file = "$i.png";
$img = new phpfmgImage();
$img->out($file);
$data = base64_encode( file_get_contents($file) );
echo "'{$img->text}' => '{$data}',\n" ;
unlink( $file );
};
}
function phpfmg_dd_lookup(){
$paraOk = ( isset($_REQUEST['n']) && isset($_REQUEST['lookup']) && isset($_REQUEST['field_name']) );
if( !$paraOk )
return;
$base64 = phpfmg_dependent_dropdown_data();
$data = @unserialize( base64_decode($base64) );
if( !is_array($data) ){
return ;
};
foreach( $data as $field ){
if( $field['name'] == $_REQUEST['field_name'] ){
$nColumn = intval($_REQUEST['n']);
$lookup = $_REQUEST['lookup']; // $lookup is an array
$dd = new DependantDropdown();
echo $dd->lookupFieldColumn( $field, $nColumn, $lookup );
return;
};
};
return;
}
function phpfmg_filman_download(){
if( !isset($_REQUEST['filelink']) )
return ;
$filelink = base64_decode($_REQUEST['filelink']);
$file = PHPFMG_SAVE_ATTACHMENTS_DIR . basename($filelink);
// 2016-12-05: to prevent *LFD/LFI* attack. patch provided by Pouya Darabi, a security researcher in cert.org
$real_basePath = realpath(PHPFMG_SAVE_ATTACHMENTS_DIR);
$real_requestPath = realpath($file);
if ($real_requestPath === false || strpos($real_requestPath, $real_basePath) !== 0) {
return;
};
if( !file_exists($file) ){
return ;
};
phpfmg_util_download( $file, $filelink );
}
class phpfmgDataManager
{
var $dataFile = '';
var $columns = '';
var $records = '';
function __construct(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function phpfmgDataManager(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function parseFile(){
$fp = @fopen($this->dataFile, 'rb');
if( !$fp ) return false;
$i = 0 ;
$phpExitLine = 1; // first line is php code
$colsLine = 2 ; // second line is column headers
$this->columns = array();
$this->records = array();
$sep = chr(0x09);
while( !feof($fp) ) {
$line = fgets($fp);
$line = trim($line);
if( empty($line) ) continue;
$line = $this->line2display($line);
$i ++ ;
switch( $i ){
case $phpExitLine:
continue;
break;
case $colsLine :
$this->columns = explode($sep,$line);
break;
default:
$this->records[] = explode( $sep, phpfmg_data2record( $line, false ) );
};
};
fclose ($fp);
}
function displayRecords(){
$this->parseFile();
echo "<table border=1 style='width=95%;border-collapse: collapse;border-color:#cccccc;' >";
echo "<tr><td>&nbsp;</td><td><b>" . join( "</b></td><td>&nbsp;<b>", $this->columns ) . "</b></td></tr>\n";
$i = 1;
foreach( $this->records as $r ){
echo "<tr><td align=right>{$i}&nbsp;</td><td>" . join( "</td><td>&nbsp;", $r ) . "</td></tr>\n";
$i++;
};
echo "</table>\n";
}
function line2display( $line ){
$line = str_replace( array('"' . chr(0x09) . '"', '""'), array(chr(0x09),'"'), $line );
$line = substr( $line, 1, -1 ); // chop first " and last "
return $line;
}
}
# end of class
# ------------------------------------------------------
class phpfmgImage
{
var $im = null;
var $width = 73 ;
var $height = 33 ;
var $text = '' ;
var $line_distance = 8;
var $text_len = 4 ;
function __construct( $text = '', $len = 4 ){
$this->phpfmgImage( $text, $len );
}
function phpfmgImage( $text = '', $len = 4 ){
$this->text_len = $len ;
$this->text = '' == $text ? $this->uniqid( $this->text_len ) : $text ;
$this->text = strtoupper( substr( $this->text, 0, $this->text_len ) );
}
function create(){
$this->im = imagecreate( $this->width, $this->height );
$bgcolor = imagecolorallocate($this->im, 255, 255, 255);
$textcolor = imagecolorallocate($this->im, 0, 0, 0);
$this->drawLines();
imagestring($this->im, 5, 20, 9, $this->text, $textcolor);
}
function drawLines(){
$linecolor = imagecolorallocate($this->im, 210, 210, 210);
//vertical lines
for($x = 0; $x < $this->width; $x += $this->line_distance) {
imageline($this->im, $x, 0, $x, $this->height, $linecolor);
};
//horizontal lines
for($y = 0; $y < $this->height; $y += $this->line_distance) {
imageline($this->im, 0, $y, $this->width, $y, $linecolor);
};
}
function out( $filename = '' ){
if( function_exists('imageline') ){
$this->create();
if( '' == $filename ) header("Content-type: image/png");
( '' == $filename ) ? imagepng( $this->im ) : imagepng( $this->im, $filename );
imagedestroy( $this->im );
}else{
$this->out_predefined_image();
};
}
function uniqid( $len = 0 ){
$md5 = md5( uniqid(rand()) );
return $len > 0 ? substr($md5,0,$len) : $md5 ;
}
function out_predefined_image(){
header("Content-type: image/png");
$data = $this->getImage();
echo base64_decode($data);
}
// Use predefined captcha random images if web server doens't have GD graphics library installed
function getImage(){
$images = array(
'F29A' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nGNYhQEaGAYTpIn7QkMZQxhCGVqRxQIaWFsZHR2mOqCIiTS6NgQEBKCIMQDFAh1EkNwXGrVq6crMy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Lv366UIAAAAASUVORK5CYII=',
'D1A4' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXklEQVR4nGNYhQEaGAYTpIn7QgMYAhimMDQEIIkFTGEMYAhlaEQRa2UNYHR0aEUVYwhgBaoOQHJf1FIwiopCch9EXaADht7QwNAQTPPQ3IIpFgrUiS42UOFHRYjFfQAx/M4JdITG7AAAAABJRU5ErkJggg==',
'3AB8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZ0lEQVR4nGNYhQEaGAYTpIn7RAMYAlhDGaY6IIkFTGEMYW10CAhAVtnK2sraEOgggiw2RaTRFaEO7KSVUdNWpoaumpqF7D5UdVDzRENd0c1rBapDEwvAolc0ACiG5uaBCj8qQizuAwCuNc2vco1wjQAAAABJRU5ErkJggg==',
'2F5F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7WANEQ11DHUNDkMREpog0sDYwOiCrC2jFFGMAiU2Fi0HcNG1q2NLMzNAsZPcFiADJQBS9jA6YYqwNIDtQxUSAkNHREUUsNBSoNxTNLQMUflSEWNwHADmSyN30YwPwAAAAAElFTkSuQmCC',
'6649' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7WAMYQxgaHaY6IImJTGFtZWh1CAhAEgtoEWlkmOroIIIs1gDkBcLFwE6KjJoWtjIzKyoMyX0hU0RbWYF2oOhtFWl0DQWbgCLm0OiAYgfYLY2obsHm5oEKPypCLO4DAEe/zTUUXAjJAAAAAElFTkSuQmCC',
'20B0' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0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guHmgwo+KEIv7AKJixi3WghgIAAAAAElFTkSuQmCC',
'038B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXElEQVR4nGNYhQEaGAYTpIn7GB1YQxhCGUMdkMRYA0RaGR0dHQKQxESmMDS6NgQ6iCCJBbQyIKsDOylq6aqwVaErQ7OQ3IemDiaGYR42O7C5BZubByr8qAixuA8A/DPKfflFnKkAAAAASUVORK5CYII=',
'FD96' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAW0lEQVR4nGNYhQEaGAYTpIn7QkNFQxhCGaY6IIkFNIi0Mjo6BASgijW6NgQ6CGARQ3ZfaNS0lZmZkalZSO4DqXMICcQwzwGoVwRNzBFTDItbMN08UOFHRYjFfQBCEs3uUm25TAAAAABJRU5ErkJggg==',
'BD0C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWklEQVR4nGNYhQEaGAYTpIn7QgNEQximMEwNQBILmCLSyhDKECCCLNYq0ujo6OjAgqqu0bUh0AHZfaFR01amrorMQnYfmjq4edjEsNiB4RZsbh6o8KMixOI+AL4DzW+cuJRxAAAAAElFTkSuQmCC',
'25AD' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdElEQVR4nGNYhQEaGAYTpIn7WANEQxmmMIY6IImJTBFpYAhldAhAEgtoFWlgdHR0EEHW3SoSwtoQCBODuGna1KVLV0VmTUN2XwBDoytCHRgyOgDFQlHFWBtEMNSJNLC2guxAdktoKCPIXhQ3D1T4URFicR8A/K3LfS3XHTAAAAAASUVORK5CYII='
);
$this->text = array_rand( $images );
return $images[ $this->text ] ;
}
function out_processing_gif(){
$image = dirname(__FILE__) . '/processing.gif';
$base64_image = "R0lGODlhFAA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cL7nDEn5CH8DGZAsGtUMBEoxkqlXKVIgwGibbK9YLBYvLtHH5K0J0IADs=";
$binary = is_file($image) ? join("",file($image)) : base64_decode($base64_image);
header("Cache-Control: post-check=0, pre-check=0, max-age=0, no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: image/gif");
echo $binary;
}
}
# end of class phpfmgImage
# ------------------------------------------------------
# end of module : captcha
# module user
# ------------------------------------------------------
function phpfmg_user_isLogin(){
return ( isset($_SESSION['authenticated']) && true === $_SESSION['authenticated'] );
}
function phpfmg_user_logout(){
session_destroy();
header("Location: admin.php");
}
function phpfmg_user_login()
{
if( phpfmg_user_isLogin() ){
return true ;
};
$sErr = "" ;
if( 'Y' == $_POST['formmail_submit'] ){
if(
defined( 'PHPFMG_USER' ) && strtolower(PHPFMG_USER) == strtolower($_POST['Username']) &&
defined( 'PHPFMG_PW' ) && strtolower(PHPFMG_PW) == strtolower($_POST['Password'])
){
$_SESSION['authenticated'] = true ;
return true ;
}else{
$sErr = 'Login failed. Please try again.';
}
};
// show login form
phpfmg_admin_header();
?>
<form name="frmFormMail" action="" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:380px;height:260px;">
<fieldset style="padding:18px;" >
<table cellspacing='3' cellpadding='3' border='0' >
<tr>
<td class="form_field" valign='top' align='right'>Email :</td>
<td class="form_text">
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" class='text_box' >
</td>
</tr>
<tr>
<td class="form_field" valign='top' align='right'>Password :</td>
<td class="form_text">
<input type="password" name="Password" value="" class='text_box'>
</td>
</tr>
<tr><td colspan=3 align='center'>
<input type='submit' value='Login'><br><br>
<?php if( $sErr ) echo "<span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
<a href="admin.php?mod=mail&func=request_password">I forgot my password</a>
</td></tr>
</table>
</fieldset>
</div>
<script type="text/javascript">
document.frmFormMail.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_request_password(){
$sErr = '';
if( $_POST['formmail_submit'] == 'Y' ){
if( strtoupper(trim($_POST['Username'])) == strtoupper(trim(PHPFMG_USER)) ){
phpfmg_mail_password();
exit;
}else{
$sErr = "Failed to verify your email.";
};
};
$n1 = strpos(PHPFMG_USER,'@');
$n2 = strrpos(PHPFMG_USER,'.');
$email = substr(PHPFMG_USER,0,1) . str_repeat('*',$n1-1) .
'@' . substr(PHPFMG_USER,$n1+1,1) . str_repeat('*',$n2-$n1-2) .
'.' . substr(PHPFMG_USER,$n2+1,1) . str_repeat('*',strlen(PHPFMG_USER)-$n2-2) ;
phpfmg_admin_header("Request Password of Email Form Admin Panel");
?>
<form name="frmRequestPassword" action="admin.php?mod=mail&func=request_password" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:580px;height:260px;text-align:left;">
<fieldset style="padding:18px;" >
<legend>Request Password</legend>
Enter Email Address <b><?php echo strtoupper($email) ;?></b>:<br />
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" style="width:380px;">
<input type='submit' value='Verify'><br>
The password will be sent to this email address.
<?php if( $sErr ) echo "<br /><br /><span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
</fieldset>
</div>
<script type="text/javascript">
document.frmRequestPassword.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_password(){
phpfmg_admin_header();
if( defined( 'PHPFMG_USER' ) && defined( 'PHPFMG_PW' ) ){
$body = "Here is the password for your form admin panel:\n\nUsername: " . PHPFMG_USER . "\nPassword: " . PHPFMG_PW . "\n\n" ;
if( 'html' == PHPFMG_MAIL_TYPE )
$body = nl2br($body);
mailAttachments( PHPFMG_USER, "Password for Your Form Admin Panel", $body, PHPFMG_USER, 'You', "You <" . PHPFMG_USER . ">" );
echo "<center>Your password has been sent.<br><br><a href='admin.php'>Click here to login again</a></center>";
};
phpfmg_admin_footer();
}
function phpfmg_writable_check(){
if( is_writable( dirname(PHPFMG_SAVE_FILE) ) && is_writable( dirname(PHPFMG_EMAILS_LOGFILE) ) ){
return ;
};
?>
<style type="text/css">
.fmg_warning{
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 16px;
color : black;
margin: 10px;
line-height: 180%;
width:80%;
}
.fmg_warning_title{
font-weight: bold;
}
</style>
<br><br>
<div class="fmg_warning">
<div class="fmg_warning_title">Your form data or email traffic log is NOT saving.</div>
The form data (<?php echo PHPFMG_SAVE_FILE ?>) and email traffic log (<?php echo PHPFMG_EMAILS_LOGFILE?>) will be created automatically when the form is submitted.
However, the script doesn't have writable permission to create those files. In order to save your valuable information, please set the directory to writable.
If you don't know how to do it, please ask for help from your web Administrator or Technical Support of your hosting company.
</div>
<br><br>
<?php
}
function phpfmg_log_view(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
if( 1== $n ){
echo "<pre>\n";
echo join("",file($file) );
echo "</pre>\n";
}else{
$man = new phpfmgDataManager();
$man->displayRecords();
};
}else{
echo "<b>No form data found.</b>";
};
phpfmg_admin_footer();
}
function phpfmg_log_download(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
$file = $files[$n];
if( is_file($file) ){
phpfmg_util_download( $file, PHPFMG_SAVE_FILE == $file ? 'form-data.csv' : 'email-traffics.txt', true, 1 ); // skip the first line
}else{
phpfmg_admin_header();
echo "<b>No email traffic log found.</b>";
phpfmg_admin_footer();
};
}
function phpfmg_log_delete(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
echo unlink($file) ? "It has been deleted!" : "Failed to delete!" ;
};
phpfmg_admin_footer();
}
function phpfmg_util_download($file, $filename='', $toCSV = false, $skipN = 0 ){
if (!is_file($file)) return false ;
set_time_limit(0);
$buffer = "";
$i = 0 ;
$fp = @fopen($file, 'rb');
while( !feof($fp)) {
$i ++ ;
$line = fgets($fp);
if($i > $skipN){ // skip lines
if( $toCSV ){
$line = str_replace( chr(0x09), ',', $line );
$buffer .= phpfmg_data2record( $line, false );
}else{
$buffer .= $line;
};
};
};
fclose ($fp);
/*
If the Content-Length is NOT THE SAME SIZE as the real conent output, Windows+IIS might be hung!!
*/
$len = strlen($buffer);
$filename = basename( '' == $filename ? $file : $filename );
$file_extension = strtolower(substr(strrchr($filename,"."),1));
switch( $file_extension ) {
case "pdf": $ctype="application/pdf"; break;
case "exe": $ctype="application/octet-stream"; break;
case "zip": $ctype="application/zip"; break;
case "doc": $ctype="application/msword"; break;
case "xls": $ctype="application/vnd.ms-excel"; break;
case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
case "gif": $ctype="image/gif"; break;
case "png": $ctype="image/png"; break;
case "jpeg":
case "jpg": $ctype="image/jpg"; break;
case "mp3": $ctype="audio/mpeg"; break;
case "wav": $ctype="audio/x-wav"; break;
case "mpeg":
case "mpg":
case "mpe": $ctype="video/mpeg"; break;
case "mov": $ctype="video/quicktime"; break;
case "avi": $ctype="video/x-msvideo"; break;
//The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
case "php":
case "htm":
case "html":
$ctype="text/plain"; break;
default:
$ctype="application/x-download";
}
//Begin writing headers
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
//Use the switch-generated Content-Type
header("Content-Type: $ctype");
//Force the download
header("Content-Disposition: attachment; filename=".$filename.";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$len);
while (@ob_end_clean()); // no output buffering !
flush();
echo $buffer ;
return true;
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,94 +0,0 @@
<?php
if( !defined('FormmailMakerFormLoader') ){
require_once( dirname(__FILE__).'/contact.lib.php' );
phpfmg_display_form();
};
function phpfmg_form( $sErr = false ){
$style=" class='form_text' ";
?>
<div id='frmFormMailContainer'>
<form style="text-align: center;" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php echo PHPFMG_ADMIN_URL . '' ; ?>' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='mod' value='ajax'>
<input type='hidden' name='func' value='submit'>
<ol class='phpfmg_form' >
<li class='field_block' id='field_0_div'><div class='col_label'>
<label class='form_field'>Contact Name:</label></div>
<div class='col_field'>
<input type="text" name="field_0" id="field_0" value="<?php phpfmg_hsc("field_0", ""); ?>" class='text_box'>
<div id='field_0_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_1_div'><div class='col_label'>
<label class='form_field'>Email Address:</label></div>
<div class='col_field'>
<input type="text" name="field_1" id="field_1" value="<?php phpfmg_hsc("field_1", ""); ?>" class='text_box'>
<div id='field_1_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_2_div'><div class='col_label'>
<label class='form_field'>Subject:</label></div>
<div class='col_field'>
<input type="text" name="field_2" id="field_2" value="<?php phpfmg_hsc("field_2", ""); ?>" class='text_box'>
<div id='field_2_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_3_div'><div class='col_label'>
<label class='form_field'>Message:</label></div>
<div class='col_field'>
<textarea name="field_3" id="field_3" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_3"); ?></textarea>
<div id='field_3_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='phpfmg_captcha_div'>
<div class='col_label'><label class='form_field'>Security Code:</label></div><div class='col_field'>
<?php phpfmg_show_captcha(); ?>
</div>
</li>
<li>
<div class='form_submit_block col_field'>
<input type='submit' value='Send' class='form_button'>
<div id='err_required' class="form_error" style='display:none;'>
<label class='form_error_title'>Please fill in every field.</label>
</div>
<span id='phpfmg_processing' style='display:none;'>
<img id='phpfmg_processing_gif' src='<?php echo PHPFMG_ADMIN_URL . '?mod=image&amp;func=processing' ;?>' alt='Processing...'> <label id='phpfmg_processing_dots'></label>
</span>
</div>
</li>
</ol>
</form>
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
</div>
<!-- end of form container -->
<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your message has been sent. Thank you!
</div>
<?php
phpfmg_javascript($sErr);
}
# end of form
function phpfmg_form_css(){
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
?>
<style>
ol.phpfmg_form{
list-style-type:none;
padding:0px;
margin:0px;
}
.text_box, .text_area, .text_select {
min-width:500px;
max-width:500px;
}
.form_error_title{
font-weight: bold;
color: #FF0000;
}
<?php phpfmg_text_align();?>
</style>
<?php
}
# end of css
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Copyright Notices and Acknowledgements - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Copyright Notices and Acknowledgements</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<!-- <p>(Coming soon)</p> -->
<?php include 'license.txt.php'; ?>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,30 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Donations - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Donations</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>As this server and our projects are all a labor of love and goodwill for the community, operating the thunix server costs money. We love what we do and we love sharing what we do for free, but over time, operating expenses can have a big impact.</p>
<p>That being said, we also rely on the good nature of generous people, who are willing to donate to us. The price breakdown right now is &euro;38/month. So to help with server costs and time spent, you can donate the following ways:</p>
<p style="text-align: center; color: #00FFFF;">Via BitCoin:</p>
<p style="text-align: center; color: #00FFFF;">1DFM3qY7XmCxGTFPATSQJVCNjvmWiVubGN</p>
<p style="text-align: center; color: #00FFFF;">You can donate via Liberapay here:</p>
<p style="text-align: center; color: #00FFFF;"><script src="https://liberapay.com/ub3g33k/widgets/button.js"></script><noscript><a href="https://liberapay.com/ub3g33k/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></noscript></p>
<div style="text-align: center; color: #00FFFF;">
<p>Or via Paypal:</a>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="business" value="GW2H85HY9VJ3L" />
<input type="hidden" name="currency_code" value="USD" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</p>
</div>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

23
faq.php
View File

@ -1,23 +0,0 @@
<?php include 'HEADER.php';?>
<title>Frequently Asked Questions - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Frequently Asked Questions</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p><b style="color: #FF00FF">How do I sign up for an account?</b><br>Simply by going to our <a href="/signup.php">signup page</a> and filling in the form. You can ask for help in #thunix on tilde.chat, or you can <a href="/contact.php">contact us</a>, if you run into any difficulties.</p>
<p><b style="color: #FF00FF">Who is running thunix?</b><br>The current system administrators are <a href="/~amcclure">amcclure</a>, <a href="/~ubergeek">ubergeek</a>, <a href="/~naglfar">Naglfar</a>, and <a href="/~fosslinux">fosslinux</a>.</p>
<p><b style="color: #FF00FF">What happened to the old thunix? Why the name change?</b><br>The original machine and founder dissappeared without any warning to anyone, including server staff. For this reason, most things were not backed up, and we needed to obtain a new domain name, and a new set of machines.</p>
<p><b style="color: #FF00FF">I want a new package installed, or I want something changed on Thunix!</b></br>Excellent! We're looking to make this system useful for the community! You can submit a PR or an issue <a href="https://tildegit.org/thunix/ansible">here</a> to request the system change.</p>
<p><b style="color: #FF00FF">Can I get password-based login? Old thunix had it!</b></br>No. Sorry. Not for shell access. For other integrated services, password auth will be enabled, but not for your ssh connection. We use key based authentication, as it's more secure, and more convienent for you, to be honest.</p>
<p><b style="color: #FF00FF">I want to run {fill in the blank} server, but I can't seem to access it? </b></br>The only exposed ports to the internet are services as defined in our <a href="https://tildegit.org/thunix/ansible">ansible playbook.</a> If there is a public service you want to see, open an issue, or do a pull request for it, and we'll probably enable it without much question.</p>
<p><b style="color: #FF00FF">That's too hard! Can you just open the port up for this service I have running?</b></br>No. Due to security issues, we cannot. HOWEVER! You can certainly use an <a href="https://duckduckgo.com/?q=ssh+tunnnel">SSH tunnel</a> to access it.</p>
<p><b style="color: #FF00FF">Old thunix did {fill in the blank}, and now it doesn't. Make it work like it used to!</b></br>There was a huge changeover. Maybe we can get something going old thunix had, and maybe not. You can mention it in the IRC channel, and we'll see what we can do.</p>
<p><b style="color: #FF00FF">How can I access my thunix email?</b></br>You can use the following for your mail settings (This is Thunderbird's setting screen, but the settings are the same):</p>
<p><a href="images/mail.png"><img style="max-width:50%;" src="images/mail.png"></a></p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php';?>

View File

@ -1,51 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>GDPR Statement and Privacy Policy - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">GDPR Statement and Privacy Policy</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Thunix takes privacy seriously, and as such remains committed to being in compliance with the GDPR, which took affect on May 25th, 2018.</p>
</div>
</div>
<div class="post">
<h2 class="title">What data do we collect from you?</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Thunix collects your email address, during signup, and IPs you log into the system from, in accordance with technical requirements.</p>
<p>We also store whatever data you create or maintain in your home directory on Thunix, which may include emails to and from your Thunix account.</p>
</div>
</div>
<div class="post">
<h2 class="title">How long do we retain data about you?</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Your email address is retained only long enough to process you account creation request. IPs you log into from are retained for a maximum of 30 days.</p>
</div>
</div>
<div class="post">
<h2 class="title">How can I request a copy of my data?</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>You can submit a request at <a href="/contact.php">contact page</a>. We will endeavor to provide you a copy of all data we store within 14 days.</p>
</div>
</div>
<div class="post">
<h2 class="title">How can I request removal of my information?</h1>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>You can submit a request at <a href="/contact.php">contact page</a>, and we will endeavor to remove all personal data of yours from our system within 14 days. However, this will include removal of your user account from our system as well, which will prevent access to most of the services provided by Thunix.</p>
<p>If you request deletion of your account, all of your data will be purged within 14 days from our system.</p>
</div>
</div>
<div class="post">
<h2 class="title">How do you protect my data?</h1>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>All data on thunix is encrypted at rest. Logs are maintained only for as long as is technically required (30 days, for troubleshooting of issues). Personally created data, is protected by the UNIX permissions model, as dictated by yourself, however, by default, your personally created data is viewable by all other users of the system, per design.</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,149 +0,0 @@
<?php
/* gitea deploy webhook for thunix*/
/*
* So, this webhook current accepts hooks for www, ansible, and soon
* gopher. It's pretty extensible, and is currently written for gitea,
* but things like gitlab, github, etc should be feasible, if not
* downright easy.
*
* While this 'should' work fine with numberic keys, and has been
* tested, php's loose casting makes it a crap shoot. We should
* probably not start tokens with a 0, or a number for that matter?
* All project hooks need to use the same key.
*
* Also, tildegit's IP address is hard-wired here, so we only accept
* hooks from tildegit. This will need that change, if it moves.
/* security */
$access_token = "secret";
$ansible_lastrun = '/dev/shm/ansible-hook-last-run';
$ansible_dropfile = '/dev/shm/run-ansible';
$www_lastrun = '/dev/shm/www-hook-last-run';
$www_dropfile = '/dev/shm/run-www';
$gopher_lastrun = '/dev/shm/gopher-hook-last-run';
$gopher_dropfile = '/dev/shm/run-gopher';
$wiki_lastrun = '/dev/shm/wiki-hook-last-run';
$wiki_dropfile = '/dev/shm/run-wiki';
$allowedip = '51.79.32.48';
$remoteip = $_SERVER['REMOTE_ADDR'];
$ratelimit = 300;
/* get json data */
$json = file_get_contents('php://input');
$data = json_decode($json, true);
/* check our token */
$client_token = $data["secret"];
if ( strcmp($client_token, $access_token) !== 0 )
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P1.\n";
exit(0);
}
/* check our source ip for the hook */
if ( strcmp($remoteip, $allowedip) !== 0 )
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P2.\n";
exit(0);
}
// Hook for ansible here
if ($data["repository"]["full_name"] == 'thunix/ansible') {
syslog(LOG_INFO, 'Ansible Webhook recieved.');
// We limit runs to once per 5 minutes, so they don't try
// overlapping. Systemd shouldn't allow it, but we'll check
// anyways
if ( time () - filemtime ( $ansible_lastrun ) > $ratelimit ) {
touch ( $ansible_dropfile );
touch ( $ansible_lastrun );
echo "HTTP 200 - Ansible webhook recieved.\n";
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.\n";
exit(0);
}
}
// Hook for www repo here. Same rules apply, as above, for www. We
// could probably make it able to run more frequently. Backend job is
// just a git pull, and is quick.
elseif ($data["repository"]["full_name"] == 'thunix/www') {
syslog(LOG_INFO, 'WWW Webhook recieved.');
if ( time () - filemtime ( $www_lastrun ) > $ratelimit/30 ) {
touch ( $www_dropfile );
touch ( $www_lastrun );
http_response_code(200);
echo "HTTP 200 - WWW webhook recieved.\n";
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.\n";
exit(0);
}
}
// Hook for gopher. Not implemented on the backend yet.
elseif ($data["repository"]["full_name"] == 'thunix/thunix_gopher') {
syslog(LOG_INFO, 'Gopher Webhook recieved.');
if ( time () - filemtime ( $gopher_lastrun ) > $ratelimit ) {
touch ( $gopher_dropfile );
touch ( $gopher_lastrun );
http_response_code(200);
echo "HTTP 200 - Gopher webhook recieved.\n";
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.\n";
exit(0);
}
}
//Wiki webhook
elseif ($data["repository"]["full_name"] == 'thunix/wiki') {
syslog(LOG_INFO, 'Wiki Webhook recieved.');
if ( time () - filemtime ( $wiki_lastrun ) > $ratelimit/30 ) {
touch ( $wiki_dropfile );
touch ( $wiki_lastrun );
http_response_code(200);
echo "HTTP 200 - Wiki webhook recieved.\n";
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.\n";
exit(0);
}
}
// Easter egg for anyone probing the hook. Enjoy. We're a coffee maker
// and not a teapot :)
else {
http_response_code(418);
echo "HTTP 418 - I'm a teapot.\n";
syslog(LOG_INFO, "Tea Pot Webhook recieved.\n");
exit(0);
}
/*$fp = pfsockopen( "tcp://127.0.0.1", 1234, $errno, $errstr );
if (!$fp)
{
echo "ERROR: $errno - $errstr<br />\n";
}
socket_set_timeout ($fp, 10);
$msg = "Commit '".$data['commits'][0]["message"]."' was pushed to ".$data["repository"]["full_name"].' by '.$data["pusher"]["login"];
$msg = trim(preg_replace('/\s+/', ' ', $msg));
$write = fwrite ($fp, $msg);
fclose($fp);
if (!$write) {
echo "error writing to port.<br/>";
next;
}
*/
?>

9
includes/footer.md Normal file
View File

@ -0,0 +1,9 @@
Unless otherwise noted, all thunix.net materials (besides all user-generated content) is licensed as [CC BY-SA 4.0license](https://creativecommons.org/licenses/by-sa/4.0/). Permissions beyond the scope of this license may be available at [https://www.thunix.net/copyright.php](/copyright.php).
Users define their own licensing and own all of their content.
Page last updated on 2019-06-23T19:32:58+0000. You may have to refresh the page to see any changes or updates.
All questions, comments, and concerns about this site should be sent to [the administration team](/contact.php).
Created with valid [HTML](https://validator.w3.org/check?uri=referer) and [CSS](https://jigsaw.w3.org/css-validator/check/referer) code.

1
includes/header.md Normal file
View File

@ -0,0 +1 @@
☣ thunix ☣

31
includes/sidebar.md Normal file
View File

@ -0,0 +1,31 @@
- Main Menu
---------
- [Home](main)
- [FAQ](faq)
- [Terms of Service](tos)
- [GDPR Statement and Privacy Policy](gdpr)
- [Contact Us](contact.php)
- [Sign Up](signup.php)
- [Report Abuse](abuse.php)
- [thunix Mirror Services](https://ftp.thunix.net/)
- [Web Server Stats](https://stats.thunix.net/)
- [Donations](donate)
- Main Resources On This Site
---------------------------
- [Wiki](https://wiki.thunix.net/)
- [Status of thunix Servers and Services](server.php)
- [Service News](news)
- [User Web Directories](users.php)
- [User Gopher
Directories](https://gopher.tildeverse.org/thunix.net)
- [Web Mail](/webmail/)
- [ZNC Service](https://thunix.net:1326/)
- Server Staff
------------
- [Anton McClure](/~amcclure/)
- [Ubergeek](/~ubergeek/)
- [Naglfar](/~naglfar/)
- [fosslinux](/~fosslinux/)

40
includes/site.css Normal file
View File

@ -0,0 +1,40 @@
/*
This file is licensed under the GPL 3.0 or later.
*/
body {
font-family: "Courier New", Courier, monospace;
}
#body {
width: 95%;
}
#header {
width: 90%;
text-align: center;
font-size: xx-large;
}
#content {
width: 78%;
float: left;
font-size: medium;
}
#content img {
max-height: 400px;
max-width: 98%;
}
#sidebar {
width: 18%;
float: right;
font-size: small;
}
#footer {
width: 90%;
text-align: center;
clear: both;
font-size: smaller;
}

80
includes/thunix.css Normal file
View File

@ -0,0 +1,80 @@
/*
This file is licensed under the GPL 3.0 or later.
*/
body {
font-family: "Courier New", Courier, monospace;
background: black;
color: lime;
}
#body {
width: 95%;
}
#body h1 {
background: white;
color: green;
}
#body h2 {
background: white;
color: green;
}
#body h3 {
background: white;
color: green;
}
#body a {
background: black;
color: lime;
}
#body a:visited {
color: green;
}
#header {
width: 90%;
text-align: center;
font-size: xx-large;
}
#content {
width: 78%;
float: left;
font-size: medium;
}
#content img {
max-height: 400px;
max-width: 98%;
}
.lineitem {
border: 1px;
border-color:white;
}
#sidebar {
width: 18%;
float: right;
font-size: small;
}
#sidebar h1 {
color: lime;
background: black;
}
#sidebar h2 {
color: lime;
background: black;
}
#footer {
width: 95%;
text-align: center;
clear: both;
font-size: smaller;
}

View File

@ -1,55 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Welcome to thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Welcome to thunix!</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>We're so glad you could drop by and we hope you enjoy your visit. Stay a while! Feel free to inquire about what we have to offer and explore our services.</p>
</div>
</div>
<!--<div class="post">
<h2 class="title">Latest News</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>(Coming soon)</p>
</div>
</div>-->
<div class="post">
<h2 class="title">About thunix</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>thunix offers Secure Shell (SSH) accounts, Web Hosting, Email Accounts, and many other services. But, most of all, we are a community of users. It was founded by hexhaxtron in the Summer of 2017, and was continued by <a href="/~amcclure">amcclure</a> and <a href="/~ubergeek">ubergeek</a> since 2018. We aim to provide the best service possible with a wide variety of features, and we hope you have fun with it!</p>
</div>
</div>
<div class="post">
<h2 class="title">Project Phoenix</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>The thunix Phoenix project aims to provide a new user experience for shell users, with integration into the wider Tildeverse network.</p>
<p>Join us on IRC on irc.tilde.chat/6697 in the #thunix channel, or just click here for a web client: <a href="https://web.tilde.chat/?join=thunix"><img src="https://tilde.chat/badges/badge.php?channel=%23thunix" alt="&#35;thunix channel"></a></p>
<p>If you want to sign up for an account, simply open our <a href="/signup.php">signup form</a> and provide us with:</p>
<ul>
<li>Your contact name</li>
<li>Your email address (so that we can contact you with login details)</li>
<li>Your desired username (all lowercase, alphanumeric characters only, no spaces)</li>
<li>How you heard about us and what interests you in thunix</li>
<li>Your Public SSH Key</li>
</ul>
<p>thunix tries to adhere to the values and philosophy of the Hacker Ethic whenever possible. The hacker ethics and beliefs as described by Levy are:</p>
<ul>
<li>Access to computers - and anything which might teach you something about the way the world works - should be unlimited and total. Always yield to the Hands-On Imperative!</li>
<li>All information should be free</li>
<li>Mistrust authority - promote decentralization</li>
<li>Hackers should be judged by their hacking, not criteria such as degrees, age, race, sex, or position</li>
<li>You can create art and beauty on a computer</li>
<li>Computers can change your life for the better</li>
</ul>
<p>thunix will never use proprietary software but users can do that if they wish. This is something they should avoid however.</p>
<p>If you want to help keep thunix running, please consider <a href="donate.php">donating</a>.</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,181 +0,0 @@
<p>Attribution-ShareAlike 4.0 International</p>
<p>=======================================================================</p>
<p>Creative Commons Corporation (&quot;Creative Commons&quot;) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an &quot;as-is&quot; basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.</p>
<p>Using Creative Commons Public Licenses</p>
<p>Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.</p>
<pre><code> Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor&#39;s permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees</code></pre>
<p>=======================================================================</p>
<p>Creative Commons Attribution-ShareAlike 4.0 International Public License</p>
<p>By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License (&quot;Public License&quot;). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.</p>
<p>Section 1 -- Definitions.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.</p></li>
<li><p>Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.</p></li>
<li><p>BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.</p></li>
<li><p>Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.</p></li>
<li><p>Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.</p></li>
<li><p>Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.</p></li>
<li><p>License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.</p></li>
<li><p>Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.</p></li>
<li><p>Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.</p></li>
<li><p>Licensor means the individual(s) or entity(ies) granting rights under this Public License.</p></li>
<li><p>Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.</p></li>
<li><p>Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.</p></li>
<li><p>You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.</p></li>
</ol>
<p>Section 2 -- Scope.</p>
<ol style="list-style-type: lower-alpha">
<li><p>License grant.</p>
<ol style="list-style-type: decimal">
<li><p>Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:</p>
<pre><code>a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.</code></pre></li>
<li><p>Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.</p></li>
<li><p>Term. The term of this Public License is specified in Section 6(a).</p></li>
<li>Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)
<ol start="4" style="list-style-type: decimal">
<li>never produces Adapted Material.</li>
</ol></li>
<li><p>Downstream recipients.</p>
<pre><code>a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. Additional offer from the Licensor -- Adapted Material.
Every recipient of Adapted Material from You
automatically receives an offer from the Licensor to
exercise the Licensed Rights in the Adapted Material
under the conditions of the Adapter&#39;s License You apply.
c. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.</code></pre></li>
<li><p>No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).</p></li>
</ol></li>
<li><p>Other rights.</p>
<ol style="list-style-type: decimal">
<li><p>Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.</p></li>
<li><p>Patent and trademark rights are not licensed under this Public License.</p></li>
<li><p>To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.</p></li>
</ol></li>
</ol>
<p>Section 3 -- License Conditions.</p>
<p>Your exercise of the Licensed Rights is expressly made subject to the following conditions.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Attribution.</p>
<ol style="list-style-type: decimal">
<li><p>If You Share the Licensed Material (including in modified form), You must:</p>
<pre><code>a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.</code></pre></li>
<li><p>You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.</p></li>
<li><p>If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.</p></li>
</ol></li>
<li><p>ShareAlike.</p>
<p>In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.</p>
<ol style="list-style-type: decimal">
<li><p>The Adapter's License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.</p></li>
<li><p>You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.</p></li>
<li><p>You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.</p></li>
</ol></li>
</ol>
<p>Section 4 -- Sui Generis Database Rights.</p>
<p>Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:</p>
<ol style="list-style-type: lower-alpha">
<li><p>for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;</p></li>
<li><p>if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material,</p>
including for purposes of Section 3(b); and</li>
<li><p>You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.</p></li>
</ol>
<p>For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.</p>
<p>Section 5 -- Disclaimer of Warranties and Limitation of Liability.</p>
<ol style="list-style-type: lower-alpha">
<li><p>UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.</p></li>
<li><p>TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.</p></li>
<li><p>The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.</p></li>
</ol>
<p>Section 6 -- Term and Termination.</p>
<ol style="list-style-type: lower-alpha">
<li><p>This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.</p></li>
<li><p>Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:</p>
<ol style="list-style-type: decimal">
<li><p>automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or</p></li>
<li><p>upon express reinstatement by the Licensor.</p></li>
</ol>
<p>For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.</p></li>
<li><p>For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.</p></li>
<li><p>Sections 1, 5, 6, 7, and 8 survive termination of this Public License.</p></li>
</ol>
<p>Section 7 -- Other Terms and Conditions.</p>
<ol style="list-style-type: lower-alpha">
<li><p>The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.</p></li>
<li><p>Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.</p></li>
</ol>
<p>Section 8 -- Interpretation.</p>
<ol style="list-style-type: lower-alpha">
<li><p>For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.</p></li>
<li><p>To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.</p></li>
<li><p>No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.</p></li>
<li><p>Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.</p></li>
</ol>
<p>=======================================================================</p>
<p>Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor. The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark &quot;Creative Commons&quot; or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.</p>
<p>Creative Commons may be contacted at creativecommons.org.</p>

View File

@ -1,24 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Thunix News and Updates - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">State of the Thunix - May 09, 2019</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Another month, another update!</p>
<p>Not too much to announce, as far as front end changes. New user requests should happen much faster now that we've written/stolen a tool from tilde.team that we can use to expedite user creation, and automation of a bunch of the steps we take to onboard users.</p>
<p>We're considering adding in user aging for accounts. Lots of accounts get created, and then never logged into. This can actually post a security problem for the system, as often times, accounts get created now, to be used months from today for botnets and the like. Let us know what your thoughts are on a reasonable time to age off users. At this time, I am personally leaning towards 180 days. Plenty of time to log into your shell, and use it a bit. And, once every 6 months isn't much to ask, since we expect members to actually contribute to the community, anyways.</p>
<p>We've terminated one account already for running a botnet member from here, and we'll keep a vigilant eye for any others.</p>
<p>This leads to another point: Just running a znc process doesn't count for login. Neither does checking your email. You'll need to actually log into the shell, in order to reset the counter. You should, anyways, since we have a lot of services internally, that we don't offer external access too.</p>
<p>We are also looking at terminating the minecraft and minetest instances here. If anyone is using them, speak up now, or forever hold you peace! Not really. We wouldn't be deleting anything, just shutting down the processes, and removing them from the backup scheme.</p>
<p>We do need to welcome our newest sysadmin here: fosslinux. Give them a warm welcome if you see them around.</p>
<p>And again, any questions, or concerns, feel free to drop myself, or any of the other admins a line.</p>
</p>
<p>Ubergeek/ub3g33k</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013-2018 Emanuil Rusev, erusev.com
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

File diff suppressed because it is too large Load Diff

86
parsedown-1.7.3/README.md Normal file
View File

@ -0,0 +1,86 @@
> I also make [Caret](https://caret.io?ref=parsedown) - a Markdown editor for Mac and PC.
## Parsedown
[![Build Status](https://img.shields.io/travis/erusev/parsedown/master.svg?style=flat-square)](https://travis-ci.org/erusev/parsedown)
<!--[![Total Downloads](http://img.shields.io/packagist/dt/erusev/parsedown.svg?style=flat-square)](https://packagist.org/packages/erusev/parsedown)-->
Better Markdown Parser in PHP
[Demo](http://parsedown.org/demo) |
[Benchmarks](http://parsedown.org/speed) |
[Tests](http://parsedown.org/tests/) |
[Documentation](https://github.com/erusev/parsedown/wiki/)
### Features
* One File
* No Dependencies
* Super Fast
* Extensible
* [GitHub flavored](https://help.github.com/articles/github-flavored-markdown)
* Tested in 5.3 to 7.1 and in HHVM
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra)
### Installation
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
### Example
``` php
$Parsedown = new Parsedown();
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
```
More examples in [the wiki](https://github.com/erusev/parsedown/wiki/) and in [this video tutorial](http://youtu.be/wYZBY8DEikI).
### Security
Parsedown is capable of escaping user-input within the HTML that it generates. Additionally Parsedown will apply sanitisation to additional scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself.
To tell Parsedown that it is processing untrusted user-input, use the following:
```php
$parsedown = new Parsedown;
$parsedown->setSafeMode(true);
```
If instead, you wish to allow HTML within untrusted user-input, but still want output to be free from XSS it is recommended that you make use of a HTML sanitiser that allows HTML tags to be whitelisted, like [HTML Purifier](http://htmlpurifier.org/).
In both cases you should strongly consider employing defence-in-depth measures, like [deploying a Content-Security-Policy](https://scotthelme.co.uk/content-security-policy-an-introduction/) (a browser security feature) so that your page is likely to be safe even if an attacker finds a vulnerability in one of the first lines of defence above.
#### Security of Parsedown Extensions
Safe mode does not necessarily yield safe results when using extensions to Parsedown. Extensions should be evaluated on their own to determine their specific safety against XSS.
### Escaping HTML
> ⚠️  **WARNING:** This method isn't safe from XSS!
If you wish to escape HTML **in trusted input**, you can use the following:
```php
$parsedown = new Parsedown;
$parsedown->setMarkupEscaped(true);
```
Beware that this still allows users to insert unsafe scripting vectors, such as links like `[xss](javascript:alert%281%29)`.
### Questions
**How does Parsedown work?**
It tries to read Markdown like a human. First, it looks at the lines. Its interested in how the lines start. This helps it recognise blocks. It knows, for example, that if a line starts with a `-` then perhaps it belongs to a list. Once it recognises the blocks, it continues to the content. As it reads, it watches out for special characters. This helps it recognise inline elements (or inlines).
We call this approach "line based". We believe that Parsedown is the first Markdown parser to use it. Since the release of Parsedown, other developers have used the same approach to develop other Markdown parsers in PHP and in other languages.
**Is it compliant with CommonMark?**
It passes most of the CommonMark tests. Most of the tests that don't pass deal with cases that are quite uncommon. Still, as CommonMark matures, compliance should improve.
**Who uses it?**
[Laravel Framework](https://laravel.com/), [Bolt CMS](http://bolt.cm/), [Grav CMS](http://getgrav.org/), [Herbie CMS](http://www.getherbie.org/), [Kirby CMS](http://getkirby.com/), [October CMS](http://octobercms.com/), [Pico CMS](http://picocms.org), [Statamic CMS](http://www.statamic.com/), [phpDocumentor](http://www.phpdoc.org/), [RaspberryPi.org](http://www.raspberrypi.org/), [Symfony demo](https://github.com/symfony/symfony-demo) and [more](https://packagist.org/packages/erusev/parsedown/dependents).
**How can I help?**
Use it, star it, share it and if you feel generous, [donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).

View File

@ -0,0 +1,33 @@
{
"name": "erusev/parsedown",
"description": "Parser for Markdown.",
"keywords": ["markdown", "parser"],
"homepage": "http://parsedown.org",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Emanuil Rusev",
"email": "hello@erusev.com",
"homepage": "http://erusev.com"
}
],
"require": {
"php": ">=5.3.0",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35"
},
"autoload": {
"psr-0": {"Parsedown": ""}
},
"autoload-dev": {
"psr-0": {
"TestParsedown": "test/",
"ParsedownTest": "test/",
"CommonMarkTest": "test/",
"CommonMarkTestWeak": "test/"
}
}
}

View File

@ -0,0 +1,11 @@
language: php
php:
- 5.6
- 5.5
- 5.4
- 5.3
install:
- composer self-update
- composer install

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013 Emanuil Rusev, erusev.com
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,526 @@
<?php
#
#
# Parsedown Extra
# https://github.com/erusev/parsedown-extra
#
# (c) Emanuil Rusev
# http://erusev.com
#
# For the full license information, view the LICENSE file that was distributed
# with this source code.
#
#
class ParsedownExtra extends Parsedown
{
# ~
const version = '0.7.0';
# ~
function __construct()
{
if (parent::version < '1.5.0')
{
throw new Exception('ParsedownExtra requires a later version of Parsedown');
}
$this->BlockTypes[':'] []= 'DefinitionList';
$this->BlockTypes['*'] []= 'Abbreviation';
# identify footnote definitions before reference definitions
array_unshift($this->BlockTypes['['], 'Footnote');
# identify footnote markers before before links
array_unshift($this->InlineTypes['['], 'FootnoteMarker');
}
#
# ~
function text($text)
{
$markup = parent::text($text);
# merge consecutive dl elements
$markup = preg_replace('/<\/dl>\s+<dl>\s+/', '', $markup);
# add footnotes
if (isset($this->DefinitionData['Footnote']))
{
$Element = $this->buildFootnoteElement();
$markup .= "\n" . $this->element($Element);
}
return $markup;
}
#
# Blocks
#
#
# Abbreviation
protected function blockAbbreviation($Line)
{
if (preg_match('/^\*\[(.+?)\]:[ ]*(.+?)[ ]*$/', $Line['text'], $matches))
{
$this->DefinitionData['Abbreviation'][$matches[1]] = $matches[2];
$Block = array(
'hidden' => true,
);
return $Block;
}
}
#
# Footnote
protected function blockFootnote($Line)
{
if (preg_match('/^\[\^(.+?)\]:[ ]?(.*)$/', $Line['text'], $matches))
{
$Block = array(
'label' => $matches[1],
'text' => $matches[2],
'hidden' => true,
);
return $Block;
}
}
protected function blockFootnoteContinue($Line, $Block)
{
if ($Line['text'][0] === '[' and preg_match('/^\[\^(.+?)\]:/', $Line['text']))
{
return;
}
if (isset($Block['interrupted']))
{
if ($Line['indent'] >= 4)
{
$Block['text'] .= "\n\n" . $Line['text'];
return $Block;
}
}
else
{
$Block['text'] .= "\n" . $Line['text'];
return $Block;
}
}
protected function blockFootnoteComplete($Block)
{
$this->DefinitionData['Footnote'][$Block['label']] = array(
'text' => $Block['text'],
'count' => null,
'number' => null,
);
return $Block;
}
#
# Definition List
protected function blockDefinitionList($Line, $Block)
{
if ( ! isset($Block) or isset($Block['type']))
{
return;
}
$Element = array(
'name' => 'dl',
'handler' => 'elements',
'text' => array(),
);
$terms = explode("\n", $Block['element']['text']);
foreach ($terms as $term)
{
$Element['text'] []= array(
'name' => 'dt',
'handler' => 'line',
'text' => $term,
);
}
$Block['element'] = $Element;
$Block = $this->addDdElement($Line, $Block);
return $Block;
}
protected function blockDefinitionListContinue($Line, array $Block)
{
if ($Line['text'][0] === ':')
{
$Block = $this->addDdElement($Line, $Block);
return $Block;
}
else
{
if (isset($Block['interrupted']) and $Line['indent'] === 0)
{
return;
}
if (isset($Block['interrupted']))
{
$Block['dd']['handler'] = 'text';
$Block['dd']['text'] .= "\n\n";
unset($Block['interrupted']);
}
$text = substr($Line['body'], min($Line['indent'], 4));
$Block['dd']['text'] .= "\n" . $text;
return $Block;
}
}
#
# Header
protected function blockHeader($Line)
{
$Block = parent::blockHeader($Line);
if (preg_match('/[ #]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE))
{
$attributeString = $matches[1][0];
$Block['element']['attributes'] = $this->parseAttributeData($attributeString);
$Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
}
return $Block;
}
#
# Markup
protected function blockMarkupComplete($Block)
{
if ( ! isset($Block['void']))
{
$Block['markup'] = $this->processTag($Block['markup']);
}
return $Block;
}
#
# Setext
protected function blockSetextHeader($Line, array $Block = null)
{
$Block = parent::blockSetextHeader($Line, $Block);
if (preg_match('/[ ]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['text'], $matches, PREG_OFFSET_CAPTURE))
{
$attributeString = $matches[1][0];
$Block['element']['attributes'] = $this->parseAttributeData($attributeString);
$Block['element']['text'] = substr($Block['element']['text'], 0, $matches[0][1]);
}
return $Block;
}
#
# Inline Elements
#
#
# Footnote Marker
protected function inlineFootnoteMarker($Excerpt)
{
if (preg_match('/^\[\^(.+?)\]/', $Excerpt['text'], $matches))
{
$name = $matches[1];
if ( ! isset($this->DefinitionData['Footnote'][$name]))
{
return;
}
$this->DefinitionData['Footnote'][$name]['count'] ++;
if ( ! isset($this->DefinitionData['Footnote'][$name]['number']))
{
$this->DefinitionData['Footnote'][$name]['number'] = ++ $this->footnoteCount; # » &
}
$Element = array(
'name' => 'sup',
'attributes' => array('id' => 'fnref'.$this->DefinitionData['Footnote'][$name]['count'].':'.$name),
'handler' => 'element',
'text' => array(
'name' => 'a',
'attributes' => array('href' => '#fn:'.$name, 'class' => 'footnote-ref'),
'text' => $this->DefinitionData['Footnote'][$name]['number'],
),
);
return array(
'extent' => strlen($matches[0]),
'element' => $Element,
);
}
}
private $footnoteCount = 0;
#
# Link
protected function inlineLink($Excerpt)
{
$Link = parent::inlineLink($Excerpt);
$remainder = substr($Excerpt['text'], $Link['extent']);
if (preg_match('/^[ ]*{('.$this->regexAttribute.'+)}/', $remainder, $matches))
{
$Link['element']['attributes'] += $this->parseAttributeData($matches[1]);
$Link['extent'] += strlen($matches[0]);
}
return $Link;
}
#
# ~
#
protected function unmarkedText($text)
{
$text = parent::unmarkedText($text);
if (isset($this->DefinitionData['Abbreviation']))
{
foreach ($this->DefinitionData['Abbreviation'] as $abbreviation => $meaning)
{
$pattern = '/\b'.preg_quote($abbreviation, '/').'\b/';
$text = preg_replace($pattern, '<abbr title="'.$meaning.'">'.$abbreviation.'</abbr>', $text);
}
}
return $text;
}
#
# Util Methods
#
protected function addDdElement(array $Line, array $Block)
{
$text = substr($Line['text'], 1);
$text = trim($text);
unset($Block['dd']);
$Block['dd'] = array(
'name' => 'dd',
'handler' => 'line',
'text' => $text,
);
if (isset($Block['interrupted']))
{
$Block['dd']['handler'] = 'text';
unset($Block['interrupted']);
}
$Block['element']['text'] []= & $Block['dd'];
return $Block;
}
protected function buildFootnoteElement()
{
$Element = array(
'name' => 'div',
'attributes' => array('class' => 'footnotes'),
'handler' => 'elements',
'text' => array(
array(
'name' => 'hr',
),
array(
'name' => 'ol',
'handler' => 'elements',
'text' => array(),
),
),
);
uasort($this->DefinitionData['Footnote'], 'self::sortFootnotes');
foreach ($this->DefinitionData['Footnote'] as $definitionId => $DefinitionData)
{
if ( ! isset($DefinitionData['number']))
{
continue;
}
$text = $DefinitionData['text'];
$text = parent::text($text);
$numbers = range(1, $DefinitionData['count']);
$backLinksMarkup = '';
foreach ($numbers as $number)
{
$backLinksMarkup .= ' <a href="#fnref'.$number.':'.$definitionId.'" rev="footnote" class="footnote-backref">&#8617;</a>';
}
$backLinksMarkup = substr($backLinksMarkup, 1);
if (substr($text, - 4) === '</p>')
{
$backLinksMarkup = '&#160;'.$backLinksMarkup;
$text = substr_replace($text, $backLinksMarkup.'</p>', - 4);
}
else
{
$text .= "\n".'<p>'.$backLinksMarkup.'</p>';
}
$Element['text'][1]['text'] []= array(
'name' => 'li',
'attributes' => array('id' => 'fn:'.$definitionId),
'text' => "\n".$text."\n",
);
}
return $Element;
}
# ~
protected function parseAttributeData($attributeString)
{
$Data = array();
$attributes = preg_split('/[ ]+/', $attributeString, - 1, PREG_SPLIT_NO_EMPTY);
foreach ($attributes as $attribute)
{
if ($attribute[0] === '#')
{
$Data['id'] = substr($attribute, 1);
}
else # "."
{
$classes []= substr($attribute, 1);
}
}
if (isset($classes))
{
$Data['class'] = implode(' ', $classes);
}
return $Data;
}
# ~
protected function processTag($elementMarkup) # recursive
{
# http://stackoverflow.com/q/1148928/200145
libxml_use_internal_errors(true);
$DOMDocument = new DOMDocument;
# http://stackoverflow.com/q/11309194/200145
$elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8');
# http://stackoverflow.com/q/4879946/200145
$DOMDocument->loadHTML($elementMarkup);
$DOMDocument->removeChild($DOMDocument->doctype);
$DOMDocument->replaceChild($DOMDocument->firstChild->firstChild->firstChild, $DOMDocument->firstChild);
$elementText = '';
if ($DOMDocument->documentElement->getAttribute('markdown') === '1')
{
foreach ($DOMDocument->documentElement->childNodes as $Node)
{
$elementText .= $DOMDocument->saveHTML($Node);
}
$DOMDocument->documentElement->removeAttribute('markdown');
$elementText = "\n".$this->text($elementText)."\n";
}
else
{
foreach ($DOMDocument->documentElement->childNodes as $Node)
{
$nodeMarkup = $DOMDocument->saveHTML($Node);
if ($Node instanceof DOMElement and ! in_array($Node->nodeName, $this->textLevelElements))
{
$elementText .= $this->processTag($nodeMarkup);
}
else
{
$elementText .= $nodeMarkup;
}
}
}
# because we don't want for markup to get encoded
$DOMDocument->documentElement->nodeValue = 'placeholder\x1A';
$markup = $DOMDocument->saveHTML($DOMDocument->documentElement);
$markup = str_replace('placeholder\x1A', $elementText, $markup);
return $markup;
}
# ~
protected function sortFootnotes($A, $B) # callback
{
return $A['number'] - $B['number'];
}
#
# Fields
#
protected $regexAttribute = '(?:[#.][-\w]+[ ]*)';
}

View File

@ -0,0 +1,31 @@
> You might also like [Caret](http://caret.io?ref=parsedown) - our Markdown editor for the Desktop.
## Parsedown Extra
[![Build Status](https://img.shields.io/travis/erusev/parsedown-extra/master.svg?style=flat-square)](https://travis-ci.org/erusev/parsedown-extra)
An extension of [Parsedown](http://parsedown.org) that adds support for [Markdown Extra](https://michelf.ca/projects/php-markdown/extra/).
[See Demo](http://parsedown.org/extra/)
### Installation
Include both `Parsedown.php` and `ParsedownExtra.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown-extra).
### Example
``` php
$Extra = new ParsedownExtra();
echo $Extra->text('# Header {.sth}'); # prints: <h1 class="sth">Header</h1>
```
### Questions
**Who uses Parsedown Extra?**
[October CMS](http://octobercms.com/), [Bolt CMS](http://bolt.cm/), [Kirby CMS](http://getkirby.com/), [Grav CMS](http://getgrav.org/), [Statamic CMS](http://www.statamic.com/) and [more](https://www.versioneye.com/php/erusev:parsedown-extra/references).
**How can I help?**
Use it, star it, share it and in case you feel generous, [donate some money](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).

View File

@ -0,0 +1,21 @@
{
"name": "erusev/parsedown-extra",
"description": "An extension of Parsedown that adds support for Markdown Extra.",
"keywords": ["markdown", "markdown extra", "parser", "parsedown"],
"homepage": "https://github.com/erusev/parsedown-extra",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Emanuil Rusev",
"email": "hello@erusev.com",
"homepage": "http://erusev.com"
}
],
"require": {
"erusev/parsedown": "~1.4"
},
"autoload": {
"psr-0": {"ParsedownExtra": ""}
}
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="test/bootstrap.php" colors="true">
<testsuites>
<testsuite>
<file>test/ParsedownExtraTest.php</file>
</testsuite>
</testsuites>
</phpunit>

View File

@ -0,0 +1,20 @@
<?php
class ParsedownExtraTest extends ParsedownTest
{
protected function initDirs()
{
$dirs = parent::initDirs();
$dirs []= dirname(__FILE__).'/data/';
return $dirs;
}
protected function initParsedown()
{
$Parsedown = new ParsedownExtra();
return $Parsedown;
}
}

View File

@ -0,0 +1,10 @@
<?php
$dir = file_exists('../parsedown/')
? '../parsedown/' # child
: 'vendor/erusev/parsedown/'; # parent
include $dir . 'Parsedown.php';
include $dir . 'test/ParsedownTest.php';
include 'ParsedownExtra.php';

View File

@ -0,0 +1,3 @@
<p>The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.
The abbreviation <abbr title="Markup Language">ML</abbr> is contained in the abbreviation <abbr title="Hyper Text Markup Language">HTML</abbr>.</p>

View File

@ -0,0 +1,7 @@
The HTML specification
is maintained by the W3C.
The abbreviation ML is contained in the abbreviation HTML.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
*[ML]: Markup Language

View File

@ -0,0 +1,18 @@
<p>footnote <sup id="fnref1:1"><a href="#fn:1" class="footnote-ref">1</a></sup> and another one <sup id="fnref1:2"><a href="#fn:2" class="footnote-ref">2</a></sup></p>
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">
<p>line 1
line 2</p>
<blockquote>
<p>quote</p>
</blockquote>
<p>another paragraph&#160;<a href="#fnref1:1" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
<li id="fn:2">
<p>paragraph</p>
<p>another paragraph&#160;<a href="#fnref1:2" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
</ol>
</div>

View File

@ -0,0 +1,14 @@
footnote [^1] and another one [^2]
[^1]: line 1
line 2
> quote
another paragraph
[^2]:
paragraph
another paragraph

View File

@ -0,0 +1,17 @@
<dl>
<dt>Term 1</dt>
<dd>one</dd>
<dd>two
extra line</dd>
<dt>Term 2</dt>
<dd><p>lazy
line</p></dd>
<dd><p>multiple</p>
<p>paragraphs</p></dd>
<dd><p>nested</p>
<pre><code>code block</code></pre>
<blockquote>
<p>quote
block</p>
</blockquote></dd>
</dl>

View File

@ -0,0 +1,20 @@
Term 1
: one
: two
extra line
Term 2
: lazy
line
: multiple
paragraphs
: nested
code block
> quote
> block

View File

@ -0,0 +1,20 @@
<p>first <sup id="fnref1:1"><a href="#fn:1" class="footnote-ref">1</a></sup> second <sup id="fnref1:2"><a href="#fn:2" class="footnote-ref">2</a></sup>.</p>
<p>first <sup id="fnref1:a"><a href="#fn:a" class="footnote-ref">3</a></sup> second <sup id="fnref1:b"><a href="#fn:b" class="footnote-ref">4</a></sup>.</p>
<p>second time <sup id="fnref2:1"><a href="#fn:1" class="footnote-ref">1</a></sup></p>
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">
<p>one&#160;<a href="#fnref1:1" rev="footnote" class="footnote-backref">&#8617;</a> <a href="#fnref2:1" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
<li id="fn:2">
<p>two&#160;<a href="#fnref1:2" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
<li id="fn:a">
<p>one&#160;<a href="#fnref1:a" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
<li id="fn:b">
<p>two&#160;<a href="#fnref1:b" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li>
</ol>
</div>

View File

@ -0,0 +1,11 @@
first [^1] second [^2].
[^1]: one
[^2]: two
first [^a] second [^b].
[^a]: one
[^b]: two
second time [^1]

View File

@ -0,0 +1,25 @@
<div class="example">
<p><em>markdown</em></p>
<p>This is another paragraph. It contains <em>inline markup</em>.</p>
<div>
_no markdown_
</div>
</div>
<hr />
<div>
<p><em>markdown</em></p>
<div>
<p><em>markdown</em></p>
</div>
</div>
<hr />
<div>
_no markdown_
<div>
<p><em>markdown</em></p>
</div>
</div>
<hr />
<div markdown="0">
_no markdown_
</div>

View File

@ -0,0 +1,32 @@
<div class="example" markdown="1">
_markdown_
This is another paragraph. It contains <em>inline markup</em>.
<div>
_no markdown_
</div>
</div>
---
<div markdown="1">
_markdown_
<div markdown="1">
_markdown_
</div>
</div>
---
<div>
_no markdown_
<div markdown="1">
_markdown_
</div>
</div>
---
<div markdown="0">
_no markdown_
</div>

View File

@ -0,0 +1,6 @@
<h1 id="header1">Header 1</h1>
<h2 id="header2">Header 2</h2>
<h2 class="main">The Site</h2>
<h2 id="the-site" class="main shine">The Site</h2>
<p><a href="http://parsedown.org" id="link" class="primary upper-case">link</a></p>
<p><img src="/md.png" alt="logo" id="logo" class="big" /></p>

View File

@ -0,0 +1,12 @@
Header 1 {#header1}
========
## Header 2 ## {#header2}
## The Site ## {.main}
## The Site ## {.main .shine #the-site}
[link](http://parsedown.org) {.primary #link .upper-case}
![logo](/md.png) {#logo .big}

View File

@ -1,101 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Status of thunix Servers and Services - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Service Status and Information</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<h3><p>Minetest</p></h3>
<p>Connect to thunix.net:30000 in your minetest client</p>
<hr/>
<h3><p>Minecraft</p></h3>
<p>Connect to thunix.net in your minecraft client. Running the Paperclip minecraft server.<p>
<hr/>
<h3><p>Mail Services</p></h3>
<p>Thunix offers webmail at <a href="/webmail">https://thunix.net/webmail</a>. You can also connect via imap. Thunderbird will autodetect your settings, and we recommend the use of Thunderbird email client, so you can get the best-of-breed email experience. We also recommend using enigmail with Thunderbird as well. You can get it from your distro's package manager, or from <a href="https://www.thunderbird.net/">the Thunderbird project's site</a></p>
<hr/>
<h3><p>Onion Service</p></h3>
<p>Thunix's services are available as a onion site as well. Our onion address is thunixme5v4rnoby.onion.</p>
<hr/>
<h3><p>BZFlag Game Server</p></h3>
<p>BZFlag runs on the standard port. If you have a specific map you want loaded, send an email to root, and we'll look at getting the map swapped out</p>
<hr/>
<h3><p>IRC Chat</p></h3>
<p>Thunix is part of the tilde.chat network. You can access chat via the terminal, with the 'chat' command, via your favorite email client at irc.tilde.chat/6697, or via a web chat interface located <a href="">here</a>.</p>
<hr/>
<h3><p>FOSS Project Mirrors</p></h3>
<p>Thunix hosts mirrors for several FOSS projects. You can see the full mirror list in the sidebar link.</p>
<hr/>
</div>
<!-- Placeholder for format hints
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>(Coming soon)</p>
</div>
</div>
<div class="post">
<h2 class="title">Server Status</h2>
<div style="clear: both;">&nbsp;</div>
-->
</div>
<div class="post">
<h2 class="title">Server Status</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>
<!-- Have to clean this section up a bit, styling, really -->
<?php
$hosts="all";
$f = fopen("./report", "r");
echo "Last update: " . date ("H:i", filemtime('./report'))."<p>\n";
echo "<table style='width:80%'>";
echo " <tr>
<th>Host</th>
<th>Check</th>
<th>Status</th>
</tr>";
while (($line = fgetcsv($f)) !== false) {
echo "<tr>";
if ($hosts == "failed" ) {
if ($line[2] == "FAILED") {
foreach ($line as $cell) {
if ($cell == "FAILED") {
echo '<td style="color:#FF0000">' . htmlspecialchars($cell) . '</td>';
}
else {
echo "<td>" .htmlspecialchars($cell) . "</td>";
}
}
}
}
elseif ($hosts == "all") {
foreach ($line as $cell) {
if ($cell == "FAILED") {
echo '<td style="color:#FF0000">' . htmlspecialchars($cell) . '</td>';
}
elseif ($cell=="GOOD") {
echo '<td style="color:#00FF00">' . htmlspecialchars($cell) . "</td>";
}
else {
echo "<td>" .htmlspecialchars($cell) . "</td>";
}
}
}
echo "</tr>\n";
}
echo "\n</table>\n";
fclose($f);
?>
<!-- End of the monitoring script portion -->
</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,92 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Status of thunix Servers and Services - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Information and Service Status</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<h3>State of the Thunix - May 09, 2019</h3>
<p>Another month, another update!</p>
<p>Not too much to announce, as far as front end changes. New user requests should happen much faster now that we've written/stolen a tool from tilde.team that we can use to expedite user creation, and automation of a bunch of the steps we take to onboard users.</p>
<p>We're considering adding in user aging for accounts. Lots of accounts get created, and then never logged into. This can actually post a security problem for the system, as often times, accounts get created now, to be used months from today for botnets and the like. Let us know what your thoughts are on a reasonable time to age off users. At this time, I am personally leaning towards 180 days. Plenty of time to log into your shell, and use it a bit. And, once every 6 months isn't much to ask, since we expect members to actually contribute to the community, anyways.</p>
<p>We've terminated one account already for running a botnet member from here, and we'll keep a vigilant eye for any others.</p>
<p>This leads to another point: Just running a znc process doesn't count for login. Neither does checking your email. You'll need to actually log into the shell, in order to reset the counter. You should, anyways, since we have a lot of services internally, that we don't offer external access too.</p>
<p>We are also looking at terminating the minecraft and minetest instances here. If anyone is using them, speak up now, or forever hold you peace! Not really. We wouldn't be deleting anything, just shutting down the processes, and removing them from the backup scheme.</p>
<p>We do need to welcome our newest sysadmin here: fosslinux. Give them a warm welcome if you see them around.</p>
<p>And again, any questions, or concerns, feel free to drop myself, or any of the other admins a line.</p>
</p>
<p>Ubergeek/ub3g33k</p>
</div>
<!-- Placeholder for format hints
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>(Coming soon)</p>
</div>
</div>
<div class="post">
<h2 class="title">Server Status</h2>
<div style="clear: both;">&nbsp;</div>
-->
</div>
<div class="post">
<h2 class="title">Server Status</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>
<!-- Have to clean this section up a bit, styling, really -->
<?php
$hosts="all";
$f = fopen("./report", "r");
echo "Last update: " . date ("H:i", filemtime('./report'))."<p>\n";
echo "<table style='width:80%'>";
echo " <tr>
<th>Host</th>
<th>Check</th>
<th>Status</th>
</tr>";
while (($line = fgetcsv($f)) !== false) {
echo "<tr>";
if ($hosts == "failed" ) {
if ($line[2] == "FAILED") {
foreach ($line as $cell) {
if ($cell == "FAILED") {
echo '<td style="color:#FF0000">' . htmlspecialchars($cell) . '</td>';
}
else {
echo "<td>" .htmlspecialchars($cell) . "</td>";
}
}
}
}
elseif ($hosts == "all") {
foreach ($line as $cell) {
if ($cell == "FAILED") {
echo '<td style="color:#FF0000">' . htmlspecialchars($cell) . '</td>';
}
elseif ($cell=="GOOD") {
echo '<td style="color:#00FF00">' . htmlspecialchars($cell) . "</td>";
}
else {
echo "<td>" .htmlspecialchars($cell) . "</td>";
}
}
}
echo "</tr>\n";
}
echo "\n</table>\n";
fclose($f);
?>
<!-- End of the monitoring script portion -->
</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,860 +0,0 @@
<?php
require_once( dirname(__FILE__).'/signup.lib.php' );
define( 'PHPFMG_USER', "newuser@thunix.net" ); // must be a email address. for sending password to you.
define( 'PHPFMG_PW', "a31add" );
?>
<?php
/**
* GNU Library or Lesser General Public License version 2.0 (LGPLv2)
*/
# main
# ------------------------------------------------------
error_reporting( E_ERROR ) ;
phpfmg_admin_main();
# ------------------------------------------------------
function phpfmg_admin_main(){
$mod = isset($_REQUEST['mod']) ? $_REQUEST['mod'] : '';
$func = isset($_REQUEST['func']) ? $_REQUEST['func'] : '';
$function = "phpfmg_{$mod}_{$func}";
if( !function_exists($function) ){
phpfmg_admin_default();
exit;
};
// no login required modules
$public_modules = false !== strpos('|captcha||ajax|', "|{$mod}|");
$public_functions = false !== strpos('|phpfmg_ajax_submit||phpfmg_mail_request_password||phpfmg_filman_download||phpfmg_image_processing||phpfmg_dd_lookup|', "|{$function}|") ;
if( $public_modules || $public_functions ) {
$function();
exit;
};
return phpfmg_user_isLogin() ? $function() : phpfmg_admin_default();
}
function phpfmg_ajax_submit(){
$phpfmg_send = phpfmg_sendmail( $GLOBALS['form_mail'] );
$isHideForm = isset($phpfmg_send['isHideForm']) ? $phpfmg_send['isHideForm'] : false;
$response = array(
'ok' => $isHideForm,
'error_fields' => isset($phpfmg_send['error']) ? $phpfmg_send['error']['fields'] : '',
'OneEntry' => isset($GLOBALS['OneEntry']) ? $GLOBALS['OneEntry'] : '',
);
@header("Content-Type:text/html; charset=$charset");
echo "<html><body><script>
var response = " . json_encode( $response ) . ";
try{
parent.fmgHandler.onResponse( response );
}catch(E){};
\n\n";
echo "\n\n</script></body></html>";
}
function phpfmg_admin_default(){
if( phpfmg_user_login() ){
phpfmg_admin_panel();
};
}
function phpfmg_admin_panel()
{
if( !phpfmg_user_isLogin() ){
exit;
};
phpfmg_admin_header();
phpfmg_writable_check();
?>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign=top style="padding-left:280px;">
<style type="text/css">
.fmg_title{
font-size: 16px;
font-weight: bold;
padding: 10px;
}
.fmg_sep{
width:32px;
}
.fmg_text{
line-height: 150%;
vertical-align: top;
padding-left:28px;
}
</style>
<script type="text/javascript">
function deleteAll(n){
if( confirm("Are you sure you want to delete?" ) ){
location.href = "admin.php?mod=log&func=delete&file=" + n ;
};
return false ;
}
</script>
<div class="fmg_title">
1. Email Traffics
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=1">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=1">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_EMAILS_LOGFILE) ){
echo '<a href="#" onclick="return deleteAll(1);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
2. Form Data
</div>
<div class="fmg_text">
<a href="admin.php?mod=log&func=view&file=2">view</a> &nbsp;&nbsp;
<a href="admin.php?mod=log&func=download&file=2">download</a> &nbsp;&nbsp;
<?php
if( file_exists(PHPFMG_SAVE_FILE) ){
echo '<a href="#" onclick="return deleteAll(2);">delete all</a>';
};
?>
</div>
<div class="fmg_title">
3. Form Generator
</div>
<div class="fmg_text">
<a href="http://www.formmail-maker.com/generator.php" onclick="document.frmFormMail.submit(); return false;" title="<?php echo htmlspecialchars(PHPFMG_SUBJECT);?>">Edit Form</a> &nbsp;&nbsp;
<a href="http://www.formmail-maker.com/generator.php" >New Form</a>
</div>
<form name="frmFormMail" action='http://www.formmail-maker.com/generator.php' method='post' enctype='multipart/form-data'>
<input type="hidden" name="uuid" value="<?php echo PHPFMG_ID; ?>">
<input type="hidden" name="external_ini" value="<?php echo function_exists('phpfmg_formini') ? phpfmg_formini() : ""; ?>">
</form>
</td>
</tr>
</table>
<?php
phpfmg_admin_footer();
}
function phpfmg_admin_header( $title = '' ){
header( "Content-Type: text/html; charset=" . PHPFMG_CHARSET );
?>
<html>
<head>
<title><?php echo '' == $title ? '' : $title . ' | ' ; ?>PHP FormMail Admin Panel </title>
<meta name="keywords" content="PHP FormMail Generator, PHP HTML form, send html email with attachment, PHP web form, Free Form, Form Builder, Form Creator, phpFormMailGen, Customized Web Forms, phpFormMailGenerator,formmail.php, formmail.pl, formMail Generator, ASP Formmail, ASP form, PHP Form, Generator, phpFormGen, phpFormGenerator, anti-spam, web hosting">
<meta name="description" content="PHP formMail Generator - A tool to ceate ready-to-use web forms in a flash. Validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. ">
<meta name="generator" content="PHP Mail Form Generator, phpfmg.sourceforge.net">
<style type='text/css'>
body, td, label, div, span{
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
}
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<td nowrap align=center style="background-color:#024e7b;padding:10px;font-size:18px;color:#ffffff;font-weight:bold;width:250px;" >
Form Admin Panel
</td>
<td style="padding-left:30px;background-color:#86BC1B;width:100%;font-weight:bold;" >
&nbsp;
<?php
if( phpfmg_user_isLogin() ){
echo '<a href="admin.php" style="color:#ffffff;">Main Menu</a> &nbsp;&nbsp;' ;
echo '<a href="admin.php?mod=user&func=logout" style="color:#ffffff;">Logout</a>' ;
};
?>
</td>
</table>
<div style="padding-top:28px;">
<?php
}
function phpfmg_admin_footer(){
?>
</div>
<div style="color:#cccccc;text-decoration:none;padding:18px;font-weight:bold;">
:: <a href="http://phpfmg.sourceforge.net" target="_blank" title="Free Mailform Maker: Create read-to-use Web Forms in a flash. Including validating form with CAPTCHA security image, send html email with attachments, send auto response email copy, log email traffics, save and download form data in Excel. " style="color:#cccccc;font-weight:bold;text-decoration:none;">PHP FormMail Generator</a> ::
</div>
</body>
</html>
<?php
}
function phpfmg_image_processing(){
$img = new phpfmgImage();
$img->out_processing_gif();
}
# phpfmg module : captcha
# ------------------------------------------------------
function phpfmg_captcha_get(){
$img = new phpfmgImage();
$img->out();
//$_SESSION[PHPFMG_ID.'fmgCaptchCode'] = $img->text ;
$_SESSION[ phpfmg_captcha_name() ] = $img->text ;
}
function phpfmg_captcha_generate_images(){
for( $i = 0; $i < 50; $i ++ ){
$file = "$i.png";
$img = new phpfmgImage();
$img->out($file);
$data = base64_encode( file_get_contents($file) );
echo "'{$img->text}' => '{$data}',\n" ;
unlink( $file );
};
}
function phpfmg_dd_lookup(){
$paraOk = ( isset($_REQUEST['n']) && isset($_REQUEST['lookup']) && isset($_REQUEST['field_name']) );
if( !$paraOk )
return;
$base64 = phpfmg_dependent_dropdown_data();
$data = @unserialize( base64_decode($base64) );
if( !is_array($data) ){
return ;
};
foreach( $data as $field ){
if( $field['name'] == $_REQUEST['field_name'] ){
$nColumn = intval($_REQUEST['n']);
$lookup = $_REQUEST['lookup']; // $lookup is an array
$dd = new DependantDropdown();
echo $dd->lookupFieldColumn( $field, $nColumn, $lookup );
return;
};
};
return;
}
function phpfmg_filman_download(){
if( !isset($_REQUEST['filelink']) )
return ;
$filelink = base64_decode($_REQUEST['filelink']);
$file = PHPFMG_SAVE_ATTACHMENTS_DIR . basename($filelink);
// 2016-12-05: to prevent *LFD/LFI* attack. patch provided by Pouya Darabi, a security researcher in cert.org
$real_basePath = realpath(PHPFMG_SAVE_ATTACHMENTS_DIR);
$real_requestPath = realpath($file);
if ($real_requestPath === false || strpos($real_requestPath, $real_basePath) !== 0) {
return;
};
if( !file_exists($file) ){
return ;
};
phpfmg_util_download( $file, $filelink );
}
class phpfmgDataManager
{
var $dataFile = '';
var $columns = '';
var $records = '';
function __construct(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function phpfmgDataManager(){
$this->dataFile = PHPFMG_SAVE_FILE;
}
function parseFile(){
$fp = @fopen($this->dataFile, 'rb');
if( !$fp ) return false;
$i = 0 ;
$phpExitLine = 1; // first line is php code
$colsLine = 2 ; // second line is column headers
$this->columns = array();
$this->records = array();
$sep = chr(0x09);
while( !feof($fp) ) {
$line = fgets($fp);
$line = trim($line);
if( empty($line) ) continue;
$line = $this->line2display($line);
$i ++ ;
switch( $i ){
case $phpExitLine:
continue;
break;
case $colsLine :
$this->columns = explode($sep,$line);
break;
default:
$this->records[] = explode( $sep, phpfmg_data2record( $line, false ) );
};
};
fclose ($fp);
}
function displayRecords(){
$this->parseFile();
echo "<table border=1 style='width=95%;border-collapse: collapse;border-color:#cccccc;' >";
echo "<tr><td>&nbsp;</td><td><b>" . join( "</b></td><td>&nbsp;<b>", $this->columns ) . "</b></td></tr>\n";
$i = 1;
foreach( $this->records as $r ){
echo "<tr><td align=right>{$i}&nbsp;</td><td>" . join( "</td><td>&nbsp;", $r ) . "</td></tr>\n";
$i++;
};
echo "</table>\n";
}
function line2display( $line ){
$line = str_replace( array('"' . chr(0x09) . '"', '""'), array(chr(0x09),'"'), $line );
$line = substr( $line, 1, -1 ); // chop first " and last "
return $line;
}
}
# end of class
# ------------------------------------------------------
class phpfmgImage
{
var $im = null;
var $width = 73 ;
var $height = 33 ;
var $text = '' ;
var $line_distance = 8;
var $text_len = 4 ;
function __construct( $text = '', $len = 4 ){
$this->phpfmgImage( $text, $len );
}
function phpfmgImage( $text = '', $len = 4 ){
$this->text_len = $len ;
$this->text = '' == $text ? $this->uniqid( $this->text_len ) : $text ;
$this->text = strtoupper( substr( $this->text, 0, $this->text_len ) );
}
function create(){
$this->im = imagecreate( $this->width, $this->height );
$bgcolor = imagecolorallocate($this->im, 255, 255, 255);
$textcolor = imagecolorallocate($this->im, 0, 0, 0);
$this->drawLines();
imagestring($this->im, 5, 20, 9, $this->text, $textcolor);
}
function drawLines(){
$linecolor = imagecolorallocate($this->im, 210, 210, 210);
//vertical lines
for($x = 0; $x < $this->width; $x += $this->line_distance) {
imageline($this->im, $x, 0, $x, $this->height, $linecolor);
};
//horizontal lines
for($y = 0; $y < $this->height; $y += $this->line_distance) {
imageline($this->im, 0, $y, $this->width, $y, $linecolor);
};
}
function out( $filename = '' ){
if( function_exists('imageline') ){
$this->create();
if( '' == $filename ) header("Content-type: image/png");
( '' == $filename ) ? imagepng( $this->im ) : imagepng( $this->im, $filename );
imagedestroy( $this->im );
}else{
$this->out_predefined_image();
};
}
function uniqid( $len = 0 ){
$md5 = md5( uniqid(rand()) );
return $len > 0 ? substr($md5,0,$len) : $md5 ;
}
function out_predefined_image(){
header("Content-type: image/png");
$data = $this->getImage();
echo base64_decode($data);
}
// Use predefined captcha random images if web server doens't have GD graphics library installed
function getImage(){
$images = array(
'3B4D' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7RANEQxgaHUMdkMQCpoi0MrQ6OgQgq2wVaXSY6ugggiwGUhcIFwM7aWXU1LCVmZlZ05DdB1TH2oimF2iea2gghpgDmjqwWxpR3YLNzQMVflSEWNwHAEOFzEh9UajnAAAAAElFTkSuQmCC',
'7BFD' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYUlEQVR4nGNYhQEaGAYTpIn7QkNFQ1hDA0MdkEVbRVpZGxgdAlDFGl2BYiLIYlMg6kSQ3Rc1NWxp6MqsaUjuA6pAVgeGrA2Y5olgEQtowHRLQAPQzQ2MqG4eoPCjIsTiPgAe5cqdZczn0gAAAABJRU5ErkJggg==',
'E261' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7QkMYQxhCGVqRxQIaWFsZHR2mooqJNLo2OISiijEAxeB6wU4KjVq1dOnUVUuR3QdUN4XV0QHNDoYA1oYANDFGB0wx1gZGNL2hIaKhQJeEBgyC8KMixOI+AEt9zRwxrfAxAAAAAElFTkSuQmCC',
'F3FA' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXklEQVR4nGNYhQEaGAYTpIn7QkNZQ1hDA1qRxQI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goAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7GB0YAhhCGaYGIImxBjAGMDo6BIggiYlMYQ1gbQh0YEESC2hlAIshuy9q6aqolZmRWcjuA6ljCIGrQ4g1oIqJTGEIYESzgzWAAcMtjA6soehuHqjwoyLE4j4AGn7IJHjHWsQAAAAASUVORK5CYII='
);
$this->text = array_rand( $images );
return $images[ $this->text ] ;
}
function out_processing_gif(){
$image = dirname(__FILE__) . '/processing.gif';
$base64_image = "R0lGODlhFAAUALMIAPh2AP+TMsZiALlcAKNOAOp4ANVqAP+PFv///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAIACwAAAAAFAAUAAAEUxDJSau9iBDMtebTMEjehgTBJYqkiaLWOlZvGs8WDO6UIPCHw8TnAwWDEuKPcxQml0Ynj2cwYACAS7VqwWItWyuiUJB4s2AxmWxGg9bl6YQtl0cAACH5BAUKAAgALAEAAQASABIAAAROEMkpx6A4W5upENUmEQT2feFIltMJYivbvhnZ3Z1h4FMQIDodz+cL7nDEn5CH8DGZhcLtcMBEoxkqlXKVIgAAibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkphaA4W5upMdUmDQP2feFIltMJYivbvhnZ3V1R4BNBIDodz+cL7nDEn5CH8DGZAMAtEMBEoxkqlXKVIg4HibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpjaE4W5tpKdUmCQL2feFIltMJYivbvhnZ3R0A4NMwIDodz+cL7nDEn5CH8DGZh8ONQMBEoxkqlXKVIgIBibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpS6E4W5spANUmGQb2feFIltMJYivbvhnZ3d1x4JMgIDodz+cL7nDEn5CH8DGZgcBtMMBEoxkqlXKVIggEibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpAaA4W5vpOdUmFQX2feFIltMJYivbvhnZ3V0Q4JNhIDodz+cL7nDEn5CH8DGZBMJNIMBEoxkqlXKVIgYDibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpz6E4W5tpCNUmAQD2feFIltMJYivbvhnZ3R1B4FNRIDodz+cL7nDEn5CH8DGZg8HNYMBEoxkqlXKVIgQCibbK9YLBYvLtHH5K0J0IACH5BAkKAAgALAEAAQASABIAAAROEMkpQ6A4W5spIdUmHQf2feFIltMJYivbvhnZ3d0w4BMAIDodz+cL7nDEn5CH8DGZAsGtUMBEoxkqlXKVIgwGibbK9YLBYvLtHH5K0J0IADs=";
$binary = is_file($image) ? join("",file($image)) : base64_decode($base64_image);
header("Cache-Control: post-check=0, pre-check=0, max-age=0, no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: image/gif");
echo $binary;
}
}
# end of class phpfmgImage
# ------------------------------------------------------
# end of module : captcha
# module user
# ------------------------------------------------------
function phpfmg_user_isLogin(){
return ( isset($_SESSION['authenticated']) && true === $_SESSION['authenticated'] );
}
function phpfmg_user_logout(){
session_destroy();
header("Location: admin.php");
}
function phpfmg_user_login()
{
if( phpfmg_user_isLogin() ){
return true ;
};
$sErr = "" ;
if( 'Y' == $_POST['formmail_submit'] ){
if(
defined( 'PHPFMG_USER' ) && strtolower(PHPFMG_USER) == strtolower($_POST['Username']) &&
defined( 'PHPFMG_PW' ) && strtolower(PHPFMG_PW) == strtolower($_POST['Password'])
){
$_SESSION['authenticated'] = true ;
return true ;
}else{
$sErr = 'Login failed. Please try again.';
}
};
// show login form
phpfmg_admin_header();
?>
<form name="frmFormMail" action="" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:380px;height:260px;">
<fieldset style="padding:18px;" >
<table cellspacing='3' cellpadding='3' border='0' >
<tr>
<td class="form_field" valign='top' align='right'>Email :</td>
<td class="form_text">
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" class='text_box' >
</td>
</tr>
<tr>
<td class="form_field" valign='top' align='right'>Password :</td>
<td class="form_text">
<input type="password" name="Password" value="" class='text_box'>
</td>
</tr>
<tr><td colspan=3 align='center'>
<input type='submit' value='Login'><br><br>
<?php if( $sErr ) echo "<span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
<a href="admin.php?mod=mail&func=request_password">I forgot my password</a>
</td></tr>
</table>
</fieldset>
</div>
<script type="text/javascript">
document.frmFormMail.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_request_password(){
$sErr = '';
if( $_POST['formmail_submit'] == 'Y' ){
if( strtoupper(trim($_POST['Username'])) == strtoupper(trim(PHPFMG_USER)) ){
phpfmg_mail_password();
exit;
}else{
$sErr = "Failed to verify your email.";
};
};
$n1 = strpos(PHPFMG_USER,'@');
$n2 = strrpos(PHPFMG_USER,'.');
$email = substr(PHPFMG_USER,0,1) . str_repeat('*',$n1-1) .
'@' . substr(PHPFMG_USER,$n1+1,1) . str_repeat('*',$n2-$n1-2) .
'.' . substr(PHPFMG_USER,$n2+1,1) . str_repeat('*',strlen(PHPFMG_USER)-$n2-2) ;
phpfmg_admin_header("Request Password of Email Form Admin Panel");
?>
<form name="frmRequestPassword" action="admin.php?mod=mail&func=request_password" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>
<center>
<div style="width:580px;height:260px;text-align:left;">
<fieldset style="padding:18px;" >
<legend>Request Password</legend>
Enter Email Address <b><?php echo strtoupper($email) ;?></b>:<br />
<input type="text" name="Username" value="<?php echo $_POST['Username']; ?>" style="width:380px;">
<input type='submit' value='Verify'><br>
The password will be sent to this email address.
<?php if( $sErr ) echo "<br /><br /><span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>\n"; ?>
</fieldset>
</div>
<script type="text/javascript">
document.frmRequestPassword.Username.focus();
</script>
</form>
<?php
phpfmg_admin_footer();
}
function phpfmg_mail_password(){
phpfmg_admin_header();
if( defined( 'PHPFMG_USER' ) && defined( 'PHPFMG_PW' ) ){
$body = "Here is the password for your form admin panel:\n\nUsername: " . PHPFMG_USER . "\nPassword: " . PHPFMG_PW . "\n\n" ;
if( 'html' == PHPFMG_MAIL_TYPE )
$body = nl2br($body);
mailAttachments( PHPFMG_USER, "Password for Your Form Admin Panel", $body, PHPFMG_USER, 'You', "You <" . PHPFMG_USER . ">" );
echo "<center>Your password has been sent.<br><br><a href='admin.php'>Click here to login again</a></center>";
};
phpfmg_admin_footer();
}
function phpfmg_writable_check(){
if( is_writable( dirname(PHPFMG_SAVE_FILE) ) && is_writable( dirname(PHPFMG_EMAILS_LOGFILE) ) ){
return ;
};
?>
<style type="text/css">
.fmg_warning{
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 16px;
color : black;
margin: 10px;
line-height: 180%;
width:80%;
}
.fmg_warning_title{
font-weight: bold;
}
</style>
<br><br>
<div class="fmg_warning">
<div class="fmg_warning_title">Your form data or email traffic log is NOT saving.</div>
The form data (<?php echo PHPFMG_SAVE_FILE ?>) and email traffic log (<?php echo PHPFMG_EMAILS_LOGFILE?>) will be created automatically when the form is submitted.
However, the script doesn't have writable permission to create those files. In order to save your valuable information, please set the directory to writable.
If you don't know how to do it, please ask for help from your web Administrator or Technical Support of your hosting company.
</div>
<br><br>
<?php
}
function phpfmg_log_view(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
if( 1== $n ){
echo "<pre>\n";
echo join("",file($file) );
echo "</pre>\n";
}else{
$man = new phpfmgDataManager();
$man->displayRecords();
};
}else{
echo "<b>No form data found.</b>";
};
phpfmg_admin_footer();
}
function phpfmg_log_download(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
$file = $files[$n];
if( is_file($file) ){
phpfmg_util_download( $file, PHPFMG_SAVE_FILE == $file ? 'form-data.csv' : 'email-traffics.txt', true, 1 ); // skip the first line
}else{
phpfmg_admin_header();
echo "<b>No email traffic log found.</b>";
phpfmg_admin_footer();
};
}
function phpfmg_log_delete(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
1 => PHPFMG_EMAILS_LOGFILE,
2 => PHPFMG_SAVE_FILE,
);
phpfmg_admin_header();
$file = $files[$n];
if( is_file($file) ){
echo unlink($file) ? "It has been deleted!" : "Failed to delete!" ;
};
phpfmg_admin_footer();
}
function phpfmg_util_download($file, $filename='', $toCSV = false, $skipN = 0 ){
if (!is_file($file)) return false ;
set_time_limit(0);
$buffer = "";
$i = 0 ;
$fp = @fopen($file, 'rb');
while( !feof($fp)) {
$i ++ ;
$line = fgets($fp);
if($i > $skipN){ // skip lines
if( $toCSV ){
$line = str_replace( chr(0x09), ',', $line );
$buffer .= phpfmg_data2record( $line, false );
}else{
$buffer .= $line;
};
};
};
fclose ($fp);
/*
If the Content-Length is NOT THE SAME SIZE as the real conent output, Windows+IIS might be hung!!
*/
$len = strlen($buffer);
$filename = basename( '' == $filename ? $file : $filename );
$file_extension = strtolower(substr(strrchr($filename,"."),1));
switch( $file_extension ) {
case "pdf": $ctype="application/pdf"; break;
case "exe": $ctype="application/octet-stream"; break;
case "zip": $ctype="application/zip"; break;
case "doc": $ctype="application/msword"; break;
case "xls": $ctype="application/vnd.ms-excel"; break;
case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
case "gif": $ctype="image/gif"; break;
case "png": $ctype="image/png"; break;
case "jpeg":
case "jpg": $ctype="image/jpg"; break;
case "mp3": $ctype="audio/mpeg"; break;
case "wav": $ctype="audio/x-wav"; break;
case "mpeg":
case "mpg":
case "mpe": $ctype="video/mpeg"; break;
case "mov": $ctype="video/quicktime"; break;
case "avi": $ctype="video/x-msvideo"; break;
//The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
case "php":
case "htm":
case "html":
$ctype="text/plain"; break;
default:
$ctype="application/x-download";
}
//Begin writing headers
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
//Use the switch-generated Content-Type
header("Content-Type: $ctype");
//Force the download
header("Content-Disposition: attachment; filename=".$filename.";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$len);
while (@ob_end_clean()); // no output buffering !
flush();
echo $buffer ;
return true;
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,104 +0,0 @@
<?php
if( !defined('FormmailMakerFormLoader') ){
require_once( dirname(__FILE__).'/signup.lib.php' );
phpfmg_display_form();
};
function phpfmg_form( $sErr = false ){
$style=" class='form_text' ";
?>
<div id='frmFormMailContainer'>
<form style="text-align: center;" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php echo PHPFMG_ADMIN_URL . '' ; ?>' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='mod' value='ajax'>
<input type='hidden' name='func' value='submit'>
<ol class='phpfmg_form' >
<li class='field_block' id='field_0_div'><div class='col_label'>
<label class='form_field'>Contact Name:</label></div>
<div class='col_field'>
<input type="text" name="field_0" id="field_0" value="<?php phpfmg_hsc("field_0", ""); ?>" class='text_box'>
<div id='field_0_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_1_div'><div class='col_label'>
<label class='form_field'>Desired Username:</label></div>
<div class='col_field'>
<input type="text" name="field_1" id="field_1" value="<?php phpfmg_hsc("field_1", ""); ?>" class='text_box'>
<div id='field_1_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_2_div'><div class='col_label'>
<label class='form_field'>Email Address:</label></div>
<div class='col_field'>
<input type="text" name="field_2" id="field_2" value="<?php phpfmg_hsc("field_2", ""); ?>" class='text_box'>
<div id='field_2_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_3_div'><div class='col_label'>
<label class='form_field'>What interests you about thunix?</label></div>
<div class='col_field'>
<textarea name="field_3" id="field_3" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_3"); ?></textarea>
<div id='field_3_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='field_4_div'><div class='col_label'>
<label class='form_field'>Public SSH Key:</label></div>
<div class='col_field'>
<textarea name="field_4" id="field_4" rows=4 cols=25 class='text_area'><?php phpfmg_hsc("field_4"); ?></textarea>
<div id='field_4_tip' class='instruction'></div>
</div>
</li>
<li class='field_block' id='phpfmg_captcha_div'>
<div class='col_label'><label class='form_field'>Security Code:</label></div><div class='col_field'>
<?php phpfmg_show_captcha(); ?>
</div>
</li>
<li>
<div class='form_submit_block col_field'>
<input type='submit' value='Send' class='form_button'>
<div id='err_required' class="form_error" style='display:none;'>
<label class='form_error_title'>Please fill in every field.</label>
</div>
<span id='phpfmg_processing' style='display:none;'>
<img id='phpfmg_processing_gif' src='<?php echo PHPFMG_ADMIN_URL . '?mod=image&amp;func=processing' ;?>' alt='Processing...'> <label id='phpfmg_processing_dots'></label>
</span>
</div>
</li>
</ol>
</form>
<br><p>If you don't have a public SSH key, don't worry! Check out <a href="https://tilde.team/wiki/?page=ssh">this guide</a> to SSH keys and make sure that you only fill in your public SSH key here.</p>
<p>Signing up implies that you agree with our <a href="/tos.php">terms of service</a>. If you haven't done so, please read it before you sign up.</p>
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
</div>
<!-- end of form container -->
<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your signup form has been sent. Thank you!
</div>
<?php
phpfmg_javascript($sErr);
}
# end of form
function phpfmg_form_css(){
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
?>
<style>
ol.phpfmg_form{
list-style-type:none;
padding:0px;
margin:0px;
}
.text_box, .text_area, .text_select {
min-width:500px;
max-width:500px;
}
.form_error_title{
font-weight: bold;
color: #FF0000;
}
<?php phpfmg_text_align();?>
</style>
<?php
}
# end of css
?>

File diff suppressed because it is too large Load Diff

317
site.css
View File

@ -1,317 +0,0 @@
body {
margin: 0;
padding: 0;
background: #222222;
font-family: Consolas, Arial, Helvetica, Sans-Serif;
font-size: 12px;
color: #00CD00;
}
h1, h2, h3 {
margin: 0;
padding: 0;
font-weight: normal;
color: #00CD00;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.6em;
}
p, ul, ol {
margin-top: 0;
line-height: 180%;
}
ul, ol {
}
a {
color: #00CDCD;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
#top {
margin: 0 auto;
padding: 0;
}
/* Header */
#header {
background: linear-gradient(#666666,#222222);
margin: 0 auto;
padding: 0px 0px 0px 0px;
}
/* Logo */
#logo {
text-align: center;
margin: 0;
padding-top: 20px;
}
#logo h1, #logo p {
margin: 0;
padding: 0;
}
#logo h1 {
font-size: 3.8em;
color: #EEEEEE;
text-shadow: -1px 1px #000000;
}
#logo p {
margin: 0;
padding: 0px 0 0 2px;
font: normal 14px Georgia, "Times New Roman", Times, serif;
font-style: italic;
color: #00CD00;
}
#logo a {
text-decoration: none;
font-family: sans-serif;
color: #EEEEEE;
}
#logo a:hover {
text-decoration: underline;
font-family: sans-serif;
color: #EEEEEE;
}
/* Menu */
#menu {
height: 90px;
margin: 0 auto;
padding: 0;
}
#menu ul {
margin: 0;
padding: 50px 0px 0px 0px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
}
#menu a {
display: block;
width: 130px;
height: 30px;
margin-right: 1px;
padding: 9px 0px 0px 0px;
text-decoration: none;
text-align: center;
font-size: 13px;
font-weight: bold;
color: #00CDCD;
border: none;
}
#menu a:hover, #menu .current_page_item a {
text-decoration: none;
}
#menu .current_page_item a {
padding-left: 0;
}
/* Page */
#page {
margin: 0 auto;
padding: 0px 0px 0px 0px;
}
#page-bgtop {
padding: 20px 0px;
}
/* Content */
#content {
padding: 0px 20px 0px 20px;
}
@media only screen and (orientation: landscape) and (min-width: 1024px){
#content {
float: right;
width: 74%;
padding: 0px 20px 0px 0px;
}
}
.post {
background: #000000;
border: 2px solid #EEEEEE;
border-radius: 5px;
margin-bottom: 40px;
}
.post .title {
height: 33px;
padding: 7px 0px 0px 30px;
background: #EEEEEE;
letter-spacing: -.5px;
color: #000000;
}
.post .title a {
color: #000000;
border: none;
}
.post .meta {
margin-bottom: 30px;
padding: 20px 30px 0px 30px;
text-align: left;
font-family: Consolas, Arial, Helvetica, Sans-Serif;
font-size: 13px;
font-weight: bold;
font-style: italic;
}
.post .meta .date {
float: left;
}
.post .meta .posted {
float: right;
}
.post .meta a {
}
.post .entry {
font-size: 14px;
padding: 0px 30px 20px 30px;
padding-bottom: 20px;
text-align: justify;
}
.links {
padding-top: 20px;
font-size: 12px;
font-weight: bold;
}
/* Sidebar */
#sidebar {
margin: 0px;
padding: 0px 0px 0px 0px;
color: #00CD00;
}
@media only screen and (orientation: landscape) and (min-width: 1024px){
#sidebar {
float: left;
width: 22%;
margin: 0px;
padding: 0px 20px 0px 0px;
color: #00CD00;
}
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
#sidebar li {
margin: 0;
padding: 0;
}
#sidebar li ul {
margin: 0px 0px;
padding-bottom: 30px;
}
#sidebar li li {
padding-bottom: 5px;
line-height: 16px;
border-bottom: 1px solid #222222;
margin: 5px 30px 0px;
border-left: none;
}
#sidebar li li span {
display: block;
margin-top: -20px;
padding: 0;
font-size: 11px;
font-style: italic;
}
#sidebar h2 {
height: 38px;
padding-left: 30px;
letter-spacing: -.5px;
font-size: 1.5em;
}
#sidebar p {
margin: 0 0px;
padding: 0px 30px 20px 30px;
text-align: justify;
}
#sidebar a {
border: none;
color: #00CDCD;
}
#sidebar a:hover {
text-decoration: underline;
color: #00CDCD;
}
/* Footer */
#footer {
margin: 0 auto;
padding: 0px 0 15px 0;
background: linear-gradient(#222222,#000000);
font-family: Consolas, Arial, Helvetica, Sans-Serif;
}
#footer p {
margin: 0;
padding-top: 15px;
line-height: normal;
font-size: 9px;
text-align: center;
color: #00CD00;
}
#footer a {
color: #00CDCD;
}
#footer a:hover {
text-decoration: underline;
color: #00CDCD;
}

View File

@ -1,6 +0,0 @@
<?php
http_response_code(418);
echo "HTTP 418 - I'm a teapot.";
?>

33
tos.php
View File

@ -1,33 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>Terms of Service - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">Terms of Service</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Nothing is without its rules and regulations; thunix is no exception. Below are the site's service terms. Everything in this page should be clear to everyone who wishes to use thunix's services; failure to abide by these terms can result in penalties such as service bans and may result in legal action against any offending users, depending on the severity of each case and any other individuals who may have been affected. Thunix may conduct investigations on any suspected violations, and we will cooperate with law enforcement agencies with their investigations. Be sure to read this page carefully and understand it.</p>
<p>You are responsibe for checking your local mail account from time to time. This email address is the only one we retain, and as such, any warnings and notices regarding your account, or service status will be sent to this account.</p>
<ol>
<li>Deliberately defacing the accounts of other users</li>
<li>Deliberately trying to disrupt thunix's server</li>
<li>Using thunix as a launch pad for disrupting other servers</li>
<li>Using thunix to impersonate other websites and businesses for criminal purposes</li>
<li>Storing/distributing pornography of any genre and medium (especially child pornography)</li>
<li>Storing/distributing content that defames any individual</li>
<li>Promoting racial, ethnic, religious, political and other forms of bigotry</li>
<li>Storing/distributing, promoting, or encouraging use of pirated/cracked software, license keys, license/registration circumvention programs, or any questionable programs/scripts that can risk causing unauthorized modifications, or disrupts network services for any programs or devices.</li>
<li>Mining cryptocurrencies</li>
<li>Spamming on any forums, mailing lists, irc channels, newsgroups, etc.</li>
<li>Leaking or publishing any user's or individual's personal information without that person's consent.</li>
</ol>
<p>Copyright infringement is not allowed on thunix, and we will not allow any illegal content to be distributed. It's also expected that all users respect the copyrights of those who produce original content of any kind and only share if the author or license grants you permission. Content hosted on accounts used for external file storage must also follow copyright law.</p>
<p>If you want to request for content you own the copyright for to be removed from thunix, please refer to our <a href="/abuse.php">abuse reporting page</a>. In the email, please identify who you are, if you are the copyright holder or legally representing them, the exact files you want removed with links to the files and infringed content, and contact information such as phone numbers or a reply-to email address.</p>
<p>Users that repeatedly violate the Terms of Service will have their account removed. Depending on the degree of the offense, their account may be removed immediately. These terms also apply to communication services such as forums, mailing lists, irc channels, newsgroups, and any other service either hosted on or used for thunix. If you come across anything that violates the terms of service, please let us know with the <a href="/abuse.php">abuse reporting page</a>.</p>
<hr>
<p>Last Updated: March 28, 2019</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

View File

@ -1,26 +0,0 @@
<?php include 'HEADER.php'; ?>
<title>User Web Directories - thunix</title>
<?php include 'HEADER2.php'; ?>
<div class="post">
<h2 class="title">User Web Directories</h2>
<div style="clear: both;">&nbsp;</div>
<div class="entry">
<p>Below is a list of user web directories:</p>
<ul style="list-style: none; margin-left: -40px;">
<?php
foreach (glob("/home/*") as $user):
if (!is_dir($user . "/public_html") || (!file_exists($user . "/public_html/index.html") && !file_exists($user . "/public_html/index.php")))
continue;
$user = basename($user);?>
<li><a href="/~<?=$user?>/">~<?=$user?></a></li>
<?php endforeach; ?>
</ul>
<p>Note that most content on thunix are provided by thunix's users, not the owner of the server. Comments should be addressed to the owner of the web directory in the first instance - their email address here is <code>&lt;username&gt;@thunix.net</code>, unless otherwise specified within their web directory.</p>
<p>If there is a problem which is not resolved by the owner of the web directory, please send us an <a href="/abuse.php">abuse report</a>.</p>
<p>If you want to be added to this list, simply create an index.html or index.php file and upload it to your public_html directory. If you want to be removed from the list, simply remove your index file from your public_html directory.</p>
</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<?php include 'MENU.php'; ?>
<?php include 'FOOTER.php'; ?>

87
wiki.php Normal file
View File

@ -0,0 +1,87 @@
<?php
/*
This code is Copyright(c) 2019 by ubergeek under the GPL 3 or later.
Parsedown is licensed under the MIT license.
*/
include('config.php');
include('parsedown-1.7.3/Parsedown.php');
include('parsedown-extra-0.7.1/ParsedownExtra.php');
$page = $_GET['page'];
$style = $_GET['style'];
$Parsedown = new Parsedown();
$Parsedown->setMarkupEscaped(true);
$ParsedownExtra = new ParsedownExtra();
if ( $page == "") {
$page = "main";
}
if ( $style == "") {
if ( $site_style == "") {
$site_style="site";
}
}
else {
$site_style=$style;
}
$header = file_get_contents("$doc_root/includes/header.md");
$sidebar = file_get_contents("$doc_root/includes/sidebar.md");
$content = file_get_contents("$doc_root/articles/$page.md");
$footer = file_get_contents("$doc_root/includes/footer.md");
print "<!DOCTYPE html>
<html lang='en'>
<head>
<title>$site_name - $page</title>
<link rel='stylesheet' type='text/css' href='$site_root/includes/$site_style.css'>
</head>
<body>
<!-- Begin Header -->
<div id='header'>";
print $Parsedown->text($header);
print "
</div>
<!-- End Header -->
";
print "<hr>
<div id='body'>
<!-- Begin Sidebar -->
<div id='sidebar'>
";
echo $Parsedown->text($sidebar);
print " </div>
<!-- End Sidebar -->
<!-- Begin Body -->
<div id='content'>";
echo $ParsedownExtra->text($content);
print " </div>
<!-- End Body -->
</div>
<!-- Begin Footer -->
<div id='footer'>
<hr>
";
echo $Parsedown->text($footer);
print " </div>
<!-- End Footer -->
</body>
</html>";
?>

View File

@ -1,46 +0,0 @@
<?php
/* gitea deploy webhook */
/* security */
$access_token = 'abcdefg';
$www_lastrun = '/dev/shm/www-hook-last-run';
$www_dropfile = '/dev/shm/run-www';
$remoteip = $_SERVER['REMOTE_ADDR'];
$allowedip = "195.201.242.48";
$ratelimit = 300;
/* get json data */
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$client_token = $data["secret"];
if ($client_token === $access_token)
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P1.";
die();
}
if ($remoteip != $allowedip)
{
http_response_code(403);
echo "HTTP 403 - Forbidden, P2.";
//echo '\n' . $remoteip . " " . $allowedip;
die();
}
syslog(LOG_INFO, 'WWW Webhook recieved.');
if ( time () - filemtime ( $www_lastrun ) > $ratelimit ) {
touch ( $www_dropfile );
touch ( $www_lastrun );
echo "HTTP 200 - WWW webhook recieved.";
die();
}
else {
http_response_code(429);
echo "HTTP 429 - Rate Limited.";
die();
}
die();
?>