First commit

This commit is contained in:
2025-02-28 08:45:43 +01:00
commit 1f4e772600
1122 changed files with 74621 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Identifier</title>
<meta name="robots" content="noindex, nofollow">
</head>
<!-- utf-8 marker: äöü -->
<body>
<p>This file is just an identifier for a language folder of CMSimple.</p>
</body>
</html>

72
cms/2lang/config.php Normal file
View File

@ -0,0 +1,72 @@
<?php
/* utf8-marker = äöüß */
$cf['security']['password']="\$P\$BxAqSVtvibGUSTyiCouFJZ5RKzmZn81";
$cf['site']['title']="Welcome to CMSimple";
$cf['site']['allow_config']="true";
$cf['site']['allow_config_plugins']="true";
$cf['site']['allow_embed_in_frames']="sameorigin";
$cf['site']['allow_linkcheck']="true";
$cf['site']['allow_versionsinfo']="true";
$cf['site']['content_visible']="true";
$cf['site']['create_content_textfiles']="";
$cf['site']['printview_with_backlink']="";
$cf['site']['template']="__cmsimple_default__";
$cf['use']['csrf_protection']="";
$cf['use']['backend_template']="true";
$cf['use']['backend_template_always']="";
$cf['use']['h1only_pagesplitting']="true";
$cf['show']['locator_above_editor']="true";
$cf['show']['page_headings']="";
$cf['language']['default']="en";
$cf['language']['short']="da,de,en,fr,pt-BR";
$cf['language']['long']="Danish,German,English,French,Portuguese Brazilian";
$cf['meta']['robots']="index, follow";
$cf['meta']['keywords']="CMSimple,Subsites,CoAuthors,CMS,Content Management System,keine Datenbank,ohne Datenbank,Blog,Weblog,Realblog";
$cf['meta']['description']="CMS ohne Datenbank - CMSimple ist ein Content Management System, das keine Datenbank braucht.";
$cf['meta']['author']="";
$cf['mailform']['email']="";
$cf['mailform']['captcha']="true";
$cf['locator']['show_homepage']="true";
$cf['folders']['userfiles']="userfiles/";
$cf['folders']['downloads']="userfiles/downloads/";
$cf['folders']['images']="userfiles/images/";
$cf['folders']['media']="userfiles/media/";
$cf['backup']['numberoffiles']="10";
$cf['hidden']['pages_toc']="";
$cf['hidden']['pages_search']="";
$cf['hidden']['pages_sitemap']="";
$cf['hidden']['path_locator']="true";
$cf['hidden']['pages_submenu']="";
$cf['images']['maxsize']="5000000";
$cf['downloads']['maxsize']="5000000";
$cf['editor']['external']="tinymce";
$cf['editor']['height']="600";
$cf['editor']['tinymce_toolbar']="full";
$cf['filebrowser']['external']="";
$cf['filebrowser']['extensions_userfiles']="zip, txt, csv, swf, pdf, doc, odt, mp3, flv, jpg, jpeg, gif, png, webp, tif, tiff, mp4, ogg, oga, ogv, webm, css";
$cf['filebrowser']['maxheight_of_thumbs']="86";
$cf['filebrowser']['width_px_plus']="40";
$cf['jquery']['autoload']="";
$cf['jquery']['file_css']="smoothness/jqueryui.css";
$cf['jquery']['file_core']="jquery_3-0-0_min.js";
$cf['jquery']['file_ui']="jquery-ui_1-12-1.min.js";
$cf['pagemanager']['external']="";
$cf['pagemanager']['pagedata_attribute']="linked_to_menu";
$cf['menu']['color']="000000";
$cf['menu']['highlightcolor']="808080";
$cf['menu']['levels']="3";
$cf['menu']['levelcatch']="10";
$cf['menu']['sdoc']="parent";
$cf['menu']['legal']="CMSimple Legal Notices";
$cf['uri']['seperator']="___";
$cf['uri']['length']="256";
$cf['adminmenu']['scroll']="";
$cf['adminmenu']['narrow_max']="36";
$cf['xhtml']['endtags']="";
$cf['xhtml']['amp']="true";
$cf['server']['script_name_slice']="";
$cf['server']['timezone']="";
$cf['plugins']['folder']="plugins";
$cf['functions']['file']="functions.php";
$cf['scripting']['regexp']="\\#CMSimple (.*?)\\#";
?>

View File

@ -0,0 +1,7 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
order deny,allow
deny from all
</IfModule>

View File

@ -0,0 +1,60 @@
<html><head><title>Content</title></head><body>
<h1>Welcome to CMSimple</h1>
<p>Congratulations on your new language installation of <strong>CMSimple</strong>. You can login now with the default password, which you will find in the readme.php of the download. Delete the readme.php on your webserver, if you have uploaded it.</p>
<p>The login link you will find at bottom of the page in the footer.</p>
<div style="text-align: center; font-weight: 900; background: none repeat scroll 0% 0% #990000; color: #ffffff; padding: 4px 6px; border: 1px solid #333333;">
<p>!!! Remember to change the login password  immediately !!!</p>
<p>Please read the readme.php in the root folder of the download.</p>
</div>
<p>CMSimple is published under GPL3 License.</p>
<hr>
<p><img src="../userfiles/images/flags/en.gif" alt="" width="18" height="12"> <strong>!!! IMPORTANT HINT !!!</strong></p>
<p>Please <strong>DO NOT</strong> change the password directly in config.php by using a text editor. Change the default password right away after login <strong>ONLINE !!!</strong> (login with default password)</p>
<p>This is the easiest and best working way.</p>
<p>For editing CMSimple files it is essential to <strong>USE ONLY</strong> editors, capable of detecting, opening and saving files as "utf-8 without BOM" (Byte Order Mark), like <a href="http://notepad-plus-plus.org/">notepad++</a>.</p>
<p>If this condition is not fulfilled, you will damage your CMSimple installation.</p>
<hr>
<p><img src="../userfiles/images/flags/de.gif" alt="" width="18" height="12"> <strong>!!! WICHTIGER HINWEIS !!!</strong></p>
<p>Bitte ändern Sie das Standard Passwort <strong>NICHT</strong> direkt in der config.php mit einem Text Editor. Ändern Sie das Standard Passwort nach dem Login <strong>ONLINE !!!</strong>  (Login mit dem Standard Passwort)</p>
<p>Zur Bearbeitung der CMSimple Systemdateien sollten Sie ausschliesslich einen <strong>Code Editor</strong> wie z. B. <a href="http://notepad-plus-plus.org/">notepad++</a> benutzen, der die Codierung "utf-8 ohne BOM" (Byte Order Mark) erkennt, die Dateien so öffnet und auch wieder abspeichert.</p>
<p>Wenn Sie die Systemdateien in einer anderen Codierung als "utf-8 ohne BOM" abspeichern, kann es zu Problemen mit verschiedenen Funktionen von CMSimple kommen.</p>
<hr>
<p>A documentation for CMSimple is in progress:</p>
<ul>
<li><a href="http://www.cmsimple.org/doku/">www.cmsimple.org</a></li>
</ul>
<hr>
<h4>The CMSimple links</h4>
<p>If you use an original or modified CMSimple template, please leave the template-link at the bottom of the template. You may extend that link this way:</p>
<ul>
<li>Template by <a href="http://www.cmsimple.org">CMSimple</a> modified by <a href="http://www.cmsimple.org">your link</a></li>
</ul>
<p>If you use another template inside a CMSimple installation, I kindly ask that you link back to <a href="http://www.cmsimple.org">www.cmsimple.org</a> in your template, since this is a nice way to popularize the CMSimple Project and of giving something back.</p>
<h1>News01</h1>
<h4>Newsbox News01</h4>
<p>This box shows the content of the hidden page "News01".</p>
<p>More information about newsboxes can be found here:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.com/wiki/doku.php/manuals:users_manual:cmsimple:newsboxes">CMSimple_XH Wiki &raquo;</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News01".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es hier:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.de/dokuwiki/doku.php/anwenderdokumentation:cmsimple:newsboxen">CMSimple_XH Wiki &raquo;</a></p>
<h1>News02</h1>
<h4>Newsbox News02</h4>
<p>This box shows the content of the hidden page "News02".</p>
<p>More information about newsboxes can be found here:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.com/wiki/doku.php/manuals:users_manual:cmsimple:newsboxes">CMSimple_XH Wiki &raquo;</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News02".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es hier:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.de/dokuwiki/doku.php/anwenderdokumentation:cmsimple:newsboxen">CMSimple_XH Wiki &raquo;</a></p>
<h1>News03</h1>
<h4>Newsbox News03</h4>
<p>This box shows the content of the hidden page "News03".</p>
<p>More information about newsboxes can be found here:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.com/wiki/doku.php/manuals:users_manual:cmsimple:newsboxes">CMSimple_XH Wiki &raquo;</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News03".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es hier:</p>
<p style="text-align: right;"><a href="http://www.cmsimple-xh.de/dokuwiki/doku.php/anwenderdokumentation:cmsimple:newsboxen">CMSimple_XH Wiki &raquo;</a></p>
</body></html>

View File

@ -0,0 +1,40 @@
<?php // utf8-marker = äöü
if(!defined('CMSIMPLE_VERSION') || preg_match('/content.php/i', $_SERVER['SCRIPT_NAME']))
{
die('No direct access');
}
?>
<h1 class="_level1_page_">CMSimple Second Language</h1>
<h1>CMSimple Second Language</h1>
<p>Congratulations on your new second language.</p>
<p>You have to set the password now. How to do that, you will find in the <strong><span style="background: #900; color: #fff; padding: 3px 6px;">README.txt</span></strong> in the root folder of the download.</p>
<p>Sie müssen nun das Passwort setzen. Wie das geht, erfahren Sie in der <strong><span style="background: #900; color: #fff; padding: 3px 6px;">LIESMICH.txt</span></strong> im Root Ordner des Downloads.</p>
<p>More information about CMSimple and the documentation you will find on the CMSimple Homepage:</p>
<p><strong><a href="https://www.cmsimple.org/">cmsimple.org »</a></strong></p>
<h1 class="_level1_page_">News01</h1>
<h4>Newsbox News01</h4>
<p>This box shows the content of the hidden page "News01".</p>
<p>More information about newsboxes can be found in the documentation on</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/en/?Working_with_CMSimple___Newsboxes">cmsimple.org »</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News01".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/?Arbeiten_mit_CMSimple___Newsboxen">cmsimple.org »</a></p>
<h1 class="_level1_page_">News02</h1>
<h4>Newsbox News02</h4>
<p>This box shows the content of the hidden page "News02".</p>
<p>More information about newsboxes can be found in the documentation on</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/en/?Working_with_CMSimple___Newsboxes">cmsimple.org »</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News02".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/?Arbeiten_mit_CMSimple___Newsboxen">cmsimple.org »</a></p>
<h1 class="_level1_page_">News03</h1>
<h4>Newsbox News03</h4>
<p>This box shows the content of the hidden page "News03".</p>
<p>More information about newsboxes can be found in the documentation on</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/en/?Working_with_CMSimple___Newsboxes">cmsimple.org »</a></p>
<hr>
<p>Diese Box zeigt den Inhalt der versteckten Seite "News03".</p>
<p>Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf</p>
<p style="text-align: right;"><a href="https://www.cmsimple.org/doku/?Arbeiten_mit_CMSimple___Newsboxen">cmsimple.org »</a></p>

View File

@ -0,0 +1,108 @@
<?php
/* utf8-marker = äöüß */
################## Data fields ############
$page_data_fields[] = 'url';
$page_data_fields[] = 'last_edit';
$page_data_fields[] = 'description';
$page_data_fields[] = 'keywords';
$page_data_fields[] = 'title';
$page_data_fields[] = 'robots';
$page_data_fields[] = 'heading';
$page_data_fields[] = 'show_heading';
$page_data_fields[] = 'template';
$page_data_fields[] = 'published';
$page_data_fields[] = 'show_last_edit';
$page_data_fields[] = 'linked_to_menu';
$page_data_fields[] = 'header_location';
$page_data_fields[] = 'use_header_location';
$page_data_fields[] = 'sitetitle';
$page_data_fields[] = 'show_sitetitle';
################## Recently deleted ############
$temp_data['url'] = 'Startseite';
$temp_data['last_edit'] = '1251465256';
$temp_data['description'] = '';
$temp_data['keywords'] = '';
$temp_data['title'] = '';
$temp_data['robots'] = '';
$temp_data['heading'] = '';
$temp_data['show_heading'] = '';
$temp_data['template'] = '';
$temp_data['published'] = '';
$temp_data['show_last_edit'] = '';
$temp_data['linked_to_menu'] = '';
################## Page Data ############
$page_data[0]['url'] = 'Welcome_to_CMSimple';
$page_data[0]['last_edit'] = '1353012768';
$page_data[0]['description'] = '';
$page_data[0]['keywords'] = '';
$page_data[0]['title'] = '';
$page_data[0]['robots'] = '';
$page_data[0]['heading'] = '';
$page_data[0]['show_heading'] = '';
$page_data[0]['template'] = '';
$page_data[0]['published'] = '';
$page_data[0]['show_last_edit'] = '';
$page_data[0]['linked_to_menu'] = '1';
$page_data[0]['header_location'] = '';
$page_data[0]['use_header_location'] = '';
$page_data[0]['sitetitle'] = '';
$page_data[0]['show_sitetitle'] = '';
//----------
$page_data[1]['url'] = 'News01';
$page_data[1]['last_edit'] = '1316870463';
$page_data[1]['description'] = '';
$page_data[1]['keywords'] = '';
$page_data[1]['title'] = '';
$page_data[1]['robots'] = '';
$page_data[1]['heading'] = '';
$page_data[1]['show_heading'] = '0';
$page_data[1]['template'] = '0';
$page_data[1]['published'] = '1';
$page_data[1]['show_last_edit'] = '0';
$page_data[1]['linked_to_menu'] = '0';
$page_data[1]['header_location'] = '';
$page_data[1]['use_header_location'] = '0';
$page_data[1]['sitetitle'] = '';
$page_data[1]['show_sitetitle'] = '';
//----------
$page_data[2]['url'] = 'News02';
$page_data[2]['last_edit'] = '1316870483';
$page_data[2]['description'] = '';
$page_data[2]['keywords'] = '';
$page_data[2]['title'] = '';
$page_data[2]['robots'] = '';
$page_data[2]['heading'] = '';
$page_data[2]['show_heading'] = '0';
$page_data[2]['template'] = '0';
$page_data[2]['published'] = '1';
$page_data[2]['show_last_edit'] = '0';
$page_data[2]['linked_to_menu'] = '0';
$page_data[2]['header_location'] = '';
$page_data[2]['use_header_location'] = '0';
$page_data[2]['sitetitle'] = '';
$page_data[2]['show_sitetitle'] = '';
//----------
$page_data[3]['url'] = 'News03';
$page_data[3]['last_edit'] = '1316870492';
$page_data[3]['description'] = '';
$page_data[3]['keywords'] = '';
$page_data[3]['title'] = '';
$page_data[3]['robots'] = '';
$page_data[3]['heading'] = '';
$page_data[3]['show_heading'] = '0';
$page_data[3]['template'] = '0';
$page_data[3]['published'] = '1';
$page_data[3]['show_last_edit'] = '0';
$page_data[3]['linked_to_menu'] = '0';
$page_data[3]['header_location'] = '';
$page_data[3]['use_header_location'] = '0';
$page_data[3]['sitetitle'] = '';
$page_data[3]['show_sitetitle'] = '';
//----------
?>

View File

@ -0,0 +1,7 @@
<IfModule authz_core_module>
Require all granted
</IfModule>
<IfModule !authz_core_module>
order deny,allow
allow from all
</IfModule>

View File

@ -0,0 +1 @@

5
cms/2lang/index.php Normal file
View File

@ -0,0 +1,5 @@
<?php /* utf8-marker = äöü */
$pth['folder']['base'] = '../';
include($pth['folder']['base'] . 'cmsimple/cms.php');
?>

152
cms/2lang/setup.php Normal file
View File

@ -0,0 +1,152 @@
<?php /* utf8-marker = äöü */
// timeout in seconds
$setup_timeOut = 600;
if(file_exists('setupControl.php'))
{
if(function_exists('fileatime'))
{
$setup_fileCreated = fileatime('setupControl.php');
}
else
{
$setup_fileCreated = filectime('setupControl.php');
}
}
if(file_exists('setupControl.php') && $setup_timeOut - (time() - $setup_fileCreated) > 0)
{
$remainingSeconds = $setup_timeOut - (time() - $setup_fileCreated);
}
else
{
$remainingSeconds = 1;
}
if(file_exists('setupControl.php') && (time() - $setup_fileCreated > $setup_timeOut))
{
chmod('setupControl.php', 0777);
unlink('setupControl.php');
}
if(!class_exists('PasswordHash') && file_exists('cmsimple/PasswordHash.php'))
{
$pwHashPath = 'cmsimple/PasswordHash.php';
$flagsFolder = 'userfiles/images/flags/';
$configFolder = './cmsimple/';
}
if(!class_exists('PasswordHash') && file_exists('../cmsimple/PasswordHash.php') && (file_exists('cmsimplesubsite.htm') || file_exists('cmsimplelanguage.htm')) && !file_exists('../cmsimplesubsite.htm'))
{
$pwHashPath = '../cmsimple/PasswordHash.php';
$flagsFolder = '../userfiles/images/flags/';
$configFolder = './';
}
if(!class_exists('PasswordHash') && file_exists('../../cmsimple/PasswordHash.php') && file_exists('cmsimplelanguage.htm') && file_exists('../cmsimplesubsite.htm'))
{
$pwHashPath = '../../cmsimple/PasswordHash.php';
$flagsFolder = '../../userfiles/images/flags/';
$configFolder = './';
}
if (is_writable('setupControl.php') && file_exists('index.php'))
{
require $pwHashPath;
$cmsimple_pwHasher = new PasswordHash(8, true);
if (file_exists('cmsimplesubsite.htm') || file_exists('cmsimplelanguage.htm'))
{
$fileConfigSetup = './config.php';
}
else
{
$fileConfigSetup = $configFolder . 'config.php';
}
$passwordhint = '';
if (isset($_POST['submit_password']))
{
if (strlen($_POST['password']) > 4)
{
$hash = $cmsimple_pwHasher->HashPassword($_POST['password']);
$hash = str_replace('$P$','\$P\$',$hash);
$content = explode("\n", htmlspecialchars(file_get_contents($fileConfigSetup),ENT_QUOTES,'UTF-8'));
$content[2] = '$cf[\'security\'][\'password\']="' . $hash . '";';
$myfile = fopen($fileConfigSetup, "w") or die("Unable to open file!");
fwrite($myfile, htmlspecialchars_decode(implode("\n", $content),ENT_QUOTES));
fclose($myfile);
chmod('setupControl.php', 0777);
unlink('setupControl.php');
header("Location: ./?login");
}
else
{
if(strlen($_POST['password']) < 5) $passwordhint.= '
<p style="font-size: 15px; color: #900;"><img src="' . $flagsFolder . 'en.gif" alt="flag english"><br><b>Your password must have<br>5 or more characters!</b></p>
<p style="font-size: 15px; color: #900;"><img src="' . $flagsFolder . 'de.gif" alt="flag deutsch"><br><b>Das Passwort muss aus<br>5 oder mehr Zeichen bestehen!</b></p>
';
}
}
echo '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome</title>
<meta name="robots" content="noindex, nofollow">
</head>
<body style="background: #333;" onload="countDown(true)">
<script type="text/javascript">
function countDown(init)
{
if (init || --document.getElementById( "counter" ).firstChild.nodeValue > 0 )
window.setTimeout( "countDown()" , 1000 );
};
</script>
<div style="background: #ddd; color: #000; width: 294px; text-align: center; font-family: arial, sans-serif; font-size: 15px; line-height: 1.3em; border: 5px solid #fff; border-radius: 6px; padding: 6px 24px; margin: 24px auto;">
<br><span id="counter" style="font-family: times new roman, serif; font-size: 24px; font-weight: 900; color: #900;">' . $remainingSeconds . '</span>&nbsp; seconds remaining
<p><img src="' . $flagsFolder . 'en.gif" alt="flag english">&nbsp; <b>Enter your new password!</b></p>
<p><img src="' . $flagsFolder . 'de.gif" alt="flag english">&nbsp; <b>Geben Sie Ihr neues Passwort ein!</b></p>
<p>Minimum: 5 characters</p>
<form method="POST">
<input type="password" name="password" style="border: 2px solid #999; border-radius: 3px; padding: 2px 6px 3px 6px;" value="test">
<input type="submit" name="submit_password" value="Submit" style="background: #080; color: #fff; border: 2px solid #080; border-radius: 3px; padding: 1px 6px 2px 6px;">
</form>
<p style="color: #900;">' . $passwordhint . '</p>
</div>
</body>
</html>';
}
else
{
echo '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome</title>
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<div style="width: 260px; text-align: center; font-family: arial, sans-serif; font-size: 16px; line-height: 1.4em; padding: 36px 12px; margin: 0 auto;">
<p><b>Setup is not active.</b></p>
<p><img src="' . $flagsFolder . 'en.gif" alt="flag english"><br>How you can activate setup, you will find in the readme.php in the Root folder of the CMSimple download.</p>
<p><img src="' . $flagsFolder . 'de.gif" alt="flag english"><br>Wie Sie Setup aktivieren können, finden Sie in der readme.php des CMSimple Downloads.</p>
<p><a href="./">Home &raquo;</a></p>
</div>
</body>
</html>';
}
?>

View File