Browse Source

Beginning of site ver 3.0

Ubergeek 2 years ago
  1. 5
  2. 13
  3. 10
  4. 12
  5. 163
  6. 49
  7. 53
  8. 860
  9. 3377
  10. 94
  11. 5258
  12. 46
  13. BIN
  14. 173
  15. 17
  16. 66
  17. 43
  18. 1
  19. 50
  20. 40
  21. 57
  22. 73
  23. 59
  24. 14
  25. 860
  26. 3377
  27. 94
  28. 5258
  29. 15
  30. 30
  31. 23
  32. 51
  33. 149
  34. 9
  35. 1
  36. 31
  37. 40
  38. 80
  39. 55
  40. 181
  41. 24
  42. 20
  43. 1693
  44. 86
  45. 33
  46. 11
  47. 20
  48. 526
  49. 31
  50. 21
  51. 8
  52. 20
  53. 10
  54. 3
  55. 7
  56. 18
  57. 14
  58. 17
  59. 20
  60. 20
  61. 11
  62. 25
  63. 32
  64. 6
  65. 12
  66. 101
  67. 92
  68. 860
  69. 3378
  70. 104
  71. 5258
  72. 317
  73. 6
  74. 33
  75. 26
  76. 87
  77. 46


@ -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]


@ -1,13 +0,0 @@
<div id="footer">
<p>Unless otherwise noted, all materials (besides all user-generated content) is licensed as <a rel="license" href="">CC BY-SA 4.0 license</a>. Permissions beyond the scope of this license may be available at <a href="/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="">HTML</a> and <a href="">CSS</a> code.</p>
<!-- EasyBanner code begin -->
<IFRAME SRC="" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling="no"></IFRAME><br />
Ads by <a href="//">Tildeverse Banner Exchange</a>
<!-- EasyBanner code end -->


@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<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" />


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


@ -0,0 +1,163 @@
GNU Lesser General Public License
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. &lt;<>&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
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
* **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
### 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
* **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
* **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


@ -1,49 +0,0 @@
<div id="sidebar">
<div style="clear: both;">&nbsp;</div>
<h2>Main Menu</h2>
<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="">thunix Mirror Services</a></li>
<li><a href="">Web Server Stats</a></li>
<li><a href="donate.php">Donations</a></li>
<h2>Main Resources On This Site</h2>
<li><a href="">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="">User Gopher Directories</a></li>
<li><a href="/webmail/">Web Mail</a></li>
<li><a href="">ZNC Service</a></li>
<h2>Server Staff</h2>
<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>
<!-- <li>
<h2>Other Information</h2>
<li><a href=".">(Coming soon)</a></li>
<div style="clear: both;">&nbsp;</div>


@ -1,14 +1,49 @@
# thunix 2.0 website update
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](
* [Ubergeek's Personal Page](
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*
*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/, includes/, and includes/
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. 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 <-- site header <-- site footer
sidebar.mb <-- site sidebar
./config.php <-- Site configuration file
./parsedown-{version} <-- The parsedown version used in this engine
Open an issue at [ubergeek/wiki.php]( 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).


@ -1,860 +0,0 @@
require_once( dirname(__FILE__).'/abuse.lib.php' );
define( 'PHPFMG_USER', "" ); // must be a email address. for sending password to you.
define( 'PHPFMG_PW', "a31add" );
* GNU Library or Lesser General Public License version 2.0 (LGPLv2)
# main
# ------------------------------------------------------
error_reporting( E_ERROR ) ;
# ------------------------------------------------------
function phpfmg_admin_main(){
$mod = isset($_REQUEST['mod']) ? $_REQUEST['mod'] : '';
$func = isset($_REQUEST['func']) ? $_REQUEST['func'] : '';
$function = "phpfmg_{$mod}_{$func}";
if( !function_exists($function) ){
// 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 ) {
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 ) . ";
parent.fmgHandler.onResponse( response );
echo "\n\n</script></body></html>";
function phpfmg_admin_default(){
if( phpfmg_user_login() ){
function phpfmg_admin_panel()
if( !phpfmg_user_isLogin() ){
<table cellpadding="0" cellspacing="0" border="0">
<td valign=top style="padding-left:280px;">
<style type="text/css">
font-size: 16px;
font-weight: bold;
padding: 10px;
line-height: 150%;
vertical-align: top;
<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 ;
<div class="fmg_title">
1. Email Traffics
<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;
if( file_exists(PHPFMG_EMAILS_LOGFILE) ){
echo '<a href="#" onclick="return deleteAll(1);">delete all</a>';
<div class="fmg_title">
2. Form Data
<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;
if( file_exists(PHPFMG_SAVE_FILE) ){
echo '<a href="#" onclick="return deleteAll(2);">delete all</a>';
<div class="fmg_title">
3. Form Generator
<div class="fmg_text">
<a href="" onclick="document.frmFormMail.submit(); return false;" title="<?php echo htmlspecialchars(PHPFMG_SUBJECT);?>">Edit Form</a> &nbsp;&nbsp;
<a href="" >New Form</a>
<form name="frmFormMail" action='' 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() : ""; ?>">
function phpfmg_admin_header( $title = '' ){
header( "Content-Type: text/html; charset=" . PHPFMG_CHARSET );
<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 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,">
<style type='text/css'>
body, td, label, div, span{
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
<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 style="padding-left:30px;background-color:#86BC1B;width:100%;font-weight:bold;" >
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>' ;
<div style="padding-top:28px;">
function phpfmg_admin_footer(){
<div style="color:#cccccc;text-decoration:none;padding:18px;font-weight:bold;">
:: <a href="" 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> ::
function phpfmg_image_processing(){
$img = new phpfmgImage();
# phpfmg module : captcha
# ------------------------------------------------------
function phpfmg_captcha_get(){
$img = new phpfmgImage();
//$_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();
$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 )
$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 );
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
$real_basePath = realpath(PHPFMG_SAVE_ATTACHMENTS_DIR);
$real_requestPath = realpath($file);
if ($real_requestPath === false || strpos($real_requestPath, $real_basePath) !== 0) {
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:
case $colsLine :
$this->columns = explode($sep,$line);
$this->records[] = explode( $sep, phpfmg_data2record( $line, false ) );
fclose ($fp);
function displayRecords(){
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";
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);
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') ){
if( '' == $filename ) header("Content-type: image/png");
( '' == $filename ) ? imagepng( $this->im ) : imagepng( $this->im, $filename );
imagedestroy( $this->im );
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(
'A527' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdklEQVR4nM2QsQ2AQAhFobgNcB/cAJOjcQSnwIINzhEsdEqv84iWGuUnFK+Alw/7ZQz+lFf8kDsFRc0NS0KGPRs1jApZMglMnHLdNaffuC7rvk3b1PiJw8wO3v5VraxAgXhvZgGJLDkycmSYkw6BfdXfg7nxOwDfRcvyKTTVMwAAAABJRU5ErkJggg==',
'2105' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nM2QsRHAIAwDReENGAiK9ErhIkxDwwYkG6RhykDnHCmTu1idTrL/jDZNxp/0CZ8QRHVK4/nqCHXB5liELsabhwJKXpdg+Y6WzralZPk4cszedPv2yZOeHDes50dbQcunKoqKPfzgfy/qge8CQVvIaymcbJsAAAAASUVORK5CYII=',
'50A5' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdUlEQVR4nM3QMQ6AIAyF4XboDTgQDu6PBEx09x514AbKHeSU6laioya22xcS/pTqbZT+tJ/0pUiglROMQTlSYk+NSeauayzALb2G3pu+oZR9ruM02b58vYM6+/NlqTVkyaLBW3MrR1HA9gkIp23+B/d7cR/6DrSdzBO2IUYPAAAAAElFTkSuQmCC',
$this->text = array_rand( $images );
return $images[ $this->text ] ;
function out_processing_gif(){
$image = dirname(__FILE__) . '/processing.gif';
$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(){
header("Location: admin.php");
function phpfmg_user_login()
if( phpfmg_user_isLogin() ){
return true ;
$sErr = "" ;
if( 'Y' == $_POST['formmail_submit'] ){
defined( 'PHPFMG_USER' ) && strtolower(PHPFMG_USER) == strtolower($_POST['Username']) &&
defined( 'PHPFMG_PW' ) && strtolower(PHPFMG_PW) == strtolower($_POST['Password'])
$_SESSION['authenticated'] = true ;
return true ;
$sErr = 'Login failed. Please try again.';
// show login form
<form name="frmFormMail" action="" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<div style="width:380px;height:260px;">
<fieldset style="padding:18px;" >
<table cellspacing='3' cellpadding='3' border='0' >
<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 class="form_field" valign='top' align='right'>Password :</td>
<td class="form_text">
<input type="password" name="Password" value="" class='text_box'>
<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>
<script type="text/javascript">
function phpfmg_mail_request_password(){
$sErr = '';
if( $_POST['formmail_submit'] == 'Y' ){
if( strtoupper(trim($_POST['Username'])) == strtoupper(trim(PHPFMG_USER)) ){
$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'>
<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"; ?>
<script type="text/javascript">
function phpfmg_mail_password(){
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>";
function phpfmg_writable_check(){
if( is_writable( dirname(PHPFMG_SAVE_FILE) ) && is_writable( dirname(PHPFMG_EMAILS_LOGFILE) ) ){
return ;
<style type="text/css">
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 16px;
color : black;
margin: 10px;
line-height: 180%;
font-weight: bold;
<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.
function phpfmg_log_view(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
$file = $files[$n];
if( is_file($file) ){
if( 1== $n ){
echo "<pre>\n";
echo join("",file($file) );
echo "</pre>\n";
$man = new phpfmgDataManager();
echo "<b>No form data found.</b>";
function phpfmg_log_download(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
$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
echo "<b>No email traffic log found.</b>";
function phpfmg_log_delete(){
$n = isset($_REQUEST['file']) ? $_REQUEST['file'] : '';
$files = array(
$file = $files[$n];
if( is_file($file) ){
echo unlink($file) ? "It has been deleted!" : "Failed to delete!" ;
function phpfmg_util_download($file, $filename='', $toCSV = false, $skipN = 0 ){
if (!is_file($file)) return false ;
$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 );
$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/"; break;
case "ppt": $ctype="application/"; 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;
//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 !
echo $buffer ;
return true;

File diff suppressed because it is too large
View File


@ -1,94 +0,0 @@
if( !defined('FormmailMakerFormLoader') ){
require_once( dirname(__FILE__).'/abuse.lib.php' );
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>
<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>
<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>
<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>
<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 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>
<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>
<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;"></iframe>
<!-- end of form container -->
<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your report has been sent. Thank you!
# end of form
function phpfmg_form_css(){
$formOnly = isset($GLOBALS['formOnly']) && true === $GLOBALS['formOnly'];
.text_box, .text_area, .text_select {
font-weight: bold;
color: #FF0000;
<?php phpfmg_text_align();?>
# end of css

File diff suppressed because it is too large
View File


@ -1,46 +0,0 @@
/* 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 = "";
$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)
echo "HTTP 403 - Forbidden, P1.";
if ($remoteip != $allowedip)
echo "HTTP 403 - Forbidden, P2.";
//echo '\n' . $remoteip . " " . $allowedip;
syslog(LOG_INFO, 'Ansible Webhook recieved.');
if ( time () - filemtime ( $ansible_lastrun ) > $ratelimit ) {
touch ( $ansible_dropfile );
touch ( $ansible_lastrun );
echo "HTTP 200 - Ansible webhook recieved.";
else {
echo "HTTP 429 - Rate Limited.";



@ -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](
* __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’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](
## 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 [](, 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 Adapter’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.
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 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.
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.