Browse Source

Beginning of site ver 3.0

3.0
Ubergeek 2 years ago
parent
commit
a777ea330a
  1. 5
      .htaccess
  2. 13
      FOOTER.php
  3. 10
      HEADER.php
  4. 12
      HEADER2.php
  5. 163
      LICENSE.md
  6. 49
      MENU.php
  7. 53
      README.md
  8. 860
      abuse.admin.php
  9. 3377
      abuse.lib.php
  10. 94
      abuse.php
  11. 5258
      abuse.phpmailer.php
  12. 46
      ansible-hook.php
  13. BIN
      articles/.signup.md.swp
  14. 173
      articles/copyright.md
  15. 17
      articles/donate.md
  16. 66
      articles/faq.md
  17. 43
      articles/gdpr.md
  18. 1
      articles/index.html
  19. 50
      articles/main.md
  20. 40
      articles/news.md
  21. 57
      articles/server.md
  22. 73
      articles/signup.md
  23. 59
      articles/tos.md
  24. 14
      config.php
  25. 860
      contact.admin.php
  26. 3377
      contact.lib.php
  27. 94
      contact.php
  28. 5258
      contact.phpmailer.php
  29. 15
      copyright.php
  30. 30
      donate.php
  31. 23
      faq.php
  32. 51
      gdpr.php
  33. 149
      githook.php
  34. 9
      includes/footer.md
  35. 1
      includes/header.md
  36. 31
      includes/sidebar.md
  37. 40
      includes/site.css
  38. 80
      includes/thunix.css
  39. 55
      index.php
  40. 181
      license.txt.php
  41. 24
      news.php
  42. 20
      parsedown-1.7.3/LICENSE.txt
  43. 1693
      parsedown-1.7.3/Parsedown.php
  44. 86
      parsedown-1.7.3/README.md
  45. 33
      parsedown-1.7.3/composer.json
  46. 11
      parsedown-extra-0.7.1/.travis.yml
  47. 20
      parsedown-extra-0.7.1/LICENSE.txt
  48. 526
      parsedown-extra-0.7.1/ParsedownExtra.php
  49. 31
      parsedown-extra-0.7.1/README.md
  50. 21
      parsedown-extra-0.7.1/composer.json
  51. 8
      parsedown-extra-0.7.1/phpunit.xml.dist
  52. 20
      parsedown-extra-0.7.1/test/ParsedownExtraTest.php
  53. 10
      parsedown-extra-0.7.1/test/bootstrap.php
  54. 3
      parsedown-extra-0.7.1/test/data/abbreviation.html
  55. 7
      parsedown-extra-0.7.1/test/data/abbreviation.md
  56. 18
      parsedown-extra-0.7.1/test/data/compound_footnote.html
  57. 14
      parsedown-extra-0.7.1/test/data/compound_footnote.md
  58. 17
      parsedown-extra-0.7.1/test/data/definition_list.html
  59. 20
      parsedown-extra-0.7.1/test/data/definition_list.md
  60. 20
      parsedown-extra-0.7.1/test/data/footnote.html
  61. 11
      parsedown-extra-0.7.1/test/data/footnote.md
  62. 25
      parsedown-extra-0.7.1/test/data/markdown_inside_markup.html
  63. 32
      parsedown-extra-0.7.1/test/data/markdown_inside_markup.md
  64. 6
      parsedown-extra-0.7.1/test/data/special_attributes.html
  65. 12
      parsedown-extra-0.7.1/test/data/special_attributes.md
  66. 101
      server.php
  67. 92
      server.php.old
  68. 860
      signup.admin.php
  69. 3378
      signup.lib.php
  70. 104
      signup.php
  71. 5258
      signup.phpmailer.php
  72. 317
      site.css
  73. 6
      teapot.php
  74. 33
      tos.php
  75. 26
      users.php
  76. 87
      wiki.php
  77. 46
      www-hook.php

5
.htaccess

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

13
FOOTER.php

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

10
HEADER.php

@ -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" />

12
HEADER2.php

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

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

49
MENU.php

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

53
README.md

@ -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).

860
abuse.admin.php

@ -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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RyzAmLqHvAAAAAElFTkSuQmCC',
'19B0' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZUlEQVR4nGNYhQEaGAYTpIn7GB0YQ1hDGVqRxVgdWFtZGx2mOiCJiTqINLo2BAQEoOgFijU6OogguW9l1tKlqaErs6YhuQ9oRyCSOqgYA9C8QDQxFix2YHFLCKabByr8qAixuA8AyM3KUvjtMMoAAAAASUVORK5CYII=',
'2105' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nM2QsRHAIAwDReENGAiK9ErhIkxDwwYkG6RhykDnHCmTu1idTrL/jDZNxp/0CZ8QRHVK4/nqCHXB5liELsabhwJKXpdg+Y6WzralZPk4cszedPv2yZOeHDes50dbQcunKoqKPfzgfy/qge8CQVvIaymcbJsAAAAASUVORK5CYII=',
'0F97' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpIn7GB1EQx1CGUNDkMRYA0QaGB0dGkSQxESmiDSwNgSgiAW0QsQCkNwXtXRq2MrMqJVZSO4DqWMICWhlQNMLJKcwoNnB2BAQwIDhFkcHVDcD9YYyoogNVPhREWJxHwAt+8sjvlP2ygAAAABJRU5ErkJggg==',
'77F7' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYklEQVR4nGNYhQEaGAYTpIn7QkNFQ11DA0NDkEVbGRpdgbQIIbEpDK2sQDoA2X1Rq6YtDV21MgvJfYwODAGsIBOQ9LICRVlBJiCJiQBFgWIByGIBYFGgCQTEBir8qAixuA8A5/nK1kyB4VAAAAAASUVORK5CYII=',
'2160' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBM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H5UhFjcBwCmSsirRUkFjQAAAABJRU5ErkJggg==',
'691C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7WAMYQximMEwNQBITmcLayhDCECCCJBbQItLoGMLowIIs1iDS6DCF0QHZfZFRS5dmTVuZhey+kCmMgUjqIHpbGRoxxVjAYsh2gN0yBdUtIDczhjqguHmgwo+KEIv7APkGy0sLSVsmAAAAAElFTkSuQmCC',
'B561' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7QgNEQxlCGVqRxQKmiDQwOjpMRRFrFWlgbXAIRVMXwtoA1wt2UmjU1KVLp65aiuy+gCkMja6ODqh2tALFQCSqHZhiU1hbGdH0hgYwhgDdHBowCMKPihCL+wAEBs3FJNZm/wAAAABJRU5ErkJggg==',
'EFEB' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAATUlEQVR4nGNYhQEaGAYTpIn7QkNEQ11DHUMdkMQCGkQaWBsYHQKwiIngVgd2UmjU1LCloStDs5DcR6p5eOyAuhkohubmgQo/KkIs7gMAzNXL2UVo758AAAAASUVORK5CYII=',
'2BC3' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaElEQVR4nGNYhQEaGAYTpIn7WANEQxhCHUIdkMREpoi0MjoEOgQgiQW0ijS6Ngg0iCDrbhVpZQXJIbtv2tSwpatWLc1Cdl8AijowZHQAmceAYh5rA6YdIg2YbgkNxXTzQIUfFSEW9wEAnUDMi4E+pBwAAAAASUVORK5CYII=',
'3209' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmA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AASUVORK5CYII=',
'3536' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpIn7RANEQxlDGaY6IIkFTBFpYG10CAhAVtkqAiQDHQSQxaaIhDA0Ojogu29l1NSlq6auTM1Cdt8UhkaHRkc084BiQPNEUO3AEAuYwtqK7hbRAMYQdDcPVPhREWJxHwCuwMypBIcJeAAAAABJRU5ErkJggg==',
'1864' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7GB0YQxhCGRoCkMRYHVhbGR0dGpHFRB1EGl0bHFoDUPSytrI2MEwJQHLfyqyVYUunroqKQnIfWJ2jowOqXpB5gaEhGGIBDeh2AN2CIiYagunmgQo/KkIs7gMAhrfK/CzBCWwAAAAASUVORK5CYII=',
'989B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WAMYQxhCGUMdkMREprC2Mjo6OgQgiQW0ijS6NgQ6iKCIsbayAsUCkNw3berKsJWZkaFZSO5jdWVtZQgJRDGPAWieA5p5AkAxRzQxbG7B5uaBCj8qQizuAwDITssEUwJrEwAAAABJRU5ErkJggg==',
'B6B6' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYklEQVR4nGNYhQEaGAYTpIn7QgMYQ1hDGaY6IIkFTGFtZW10CAhAFmsVaWRtCHQQQFEn0sDa6OiA7L7QqGlhS0NXpmYhuS9giijQPEcM81yB5okQEsPiFmxuHqjwoyLE4j4AOlTN7ga1Fu8AAAAASUVORK5CYII=',
'72EE' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AA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gMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXElEQVR4nGNYhQEaGAYTpIn7WANYQxhDGUIdkMREpoi0sjY6OgQgiQW0MjQ6NAQ0iKCKQUUR7ps2dVXYqqmrlmYhuY/VFUUdBGIxTwCLGDa3YHPzQIUfFSEW9wEA1/HNeY5OYhUAAAAASUVORK5CYII=',
'88B8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAUUlEQVR4nGNYhQEaGAYTpIn7WAMYQ1hDGaY6IImJTGFtZW10CAhAEgtoFWl0bQh0EMGtDuykpVErw5aGrpqaheQ+Ys0jwg6cbh6o8KMixOI+ALskzXrMxfy/AAAAAElFTkSuQmCC',
'5F59' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7QkNEQ11DHaY6IIkFNIg0sDYwBARgiDE6iCCJBQYAxabCxcBOCps2NWxpZlZUGLL7WkEqAqYi64WKNSCLBbSC7AhAsUNkikgDo6MDiltYgfYyhDKguHmgwo+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///wAAAAAAAAAAAAAAAAAA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
$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;
}
?>

3377
abuse.lib.php
File diff suppressed because it is too large
View File

94
abuse.php

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

5258
abuse.phpmailer.php
File diff suppressed because it is too large
View File

46
ansible-hook.php

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

173
articles/copyright.md

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