commit 1f4e772600d258fffe5677c4a1da6a9702d33c43 Author: Markus Date: Fri Feb 28 08:45:43 2025 +0100 First commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9baa671 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Basis-Image mit PHP und Apache +FROM php:apache + +# Standarddateien entfernen (optional) +RUN rm -rf /var/www/html/* + +# PHP-Anwendung aus lokalem Ordner kopieren +COPY ./cms/ /var/www/html/ + +# Port freigeben +EXPOSE 80 diff --git a/cms/.htaccess b/cms/.htaccess new file mode 100644 index 0000000..28ca6f8 --- /dev/null +++ b/cms/.htaccess @@ -0,0 +1 @@ +AddDefaultCharset UTF-8 diff --git a/cms/2author/cmsimplesubsite.htm b/cms/2author/cmsimplesubsite.htm new file mode 100644 index 0000000..d8b40c9 --- /dev/null +++ b/cms/2author/cmsimplesubsite.htm @@ -0,0 +1,12 @@ + + + + +Identifier + + + + +

This file is just an identifier for a subsite folder of CMSimple.

+ + \ No newline at end of file diff --git a/cms/2author/config.php b/cms/2author/config.php new file mode 100644 index 0000000..2cf7e5b --- /dev/null +++ b/cms/2author/config.php @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/cms/2author/content/.htaccess b/cms/2author/content/.htaccess new file mode 100644 index 0000000..469f632 --- /dev/null +++ b/cms/2author/content/.htaccess @@ -0,0 +1,7 @@ + +Require all denied + + +order deny,allow +deny from all + \ No newline at end of file diff --git a/cms/2author/content/content.htm b/cms/2author/content/content.htm new file mode 100644 index 0000000..dee3ea8 --- /dev/null +++ b/cms/2author/content/content.htm @@ -0,0 +1,34 @@ +Content +

Welcome to CMSimple

+

Congratulations on your new CoAuthors Website of CMSimple. 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.

+

The login link you will find at bottom of the page in the footer.

+
+

!!! Remember to change the login password  immediately !!!

+

Please read the readme.php in the root folder of the download.

+
+

CMSimple is published under GPL3 License.

+
+

!!! IMPORTANT HINT !!!

+

Please DO NOT change the password directly in config.php by using a text editor. Change the default password right away after login ONLINE !!! (login with default password)

+

This is the easiest and best working way.

+

For editing CMSimple files it is essential to USE ONLY editors, capable of detecting, opening and saving files as "utf-8 without BOM" (Byte Order Mark), like notepad++.

+

If this condition is not fulfilled, you will damage your CMSimple installation.

+
+

!!! WICHTIGER HINWEIS !!!

+

Bitte ändern Sie das Standard Passwort NICHT direkt in der config.php mit einem Text Editor. Ändern Sie das Standard Passwort nach dem Login ONLINE !!!  (Login mit dem Standard Passwort)

+

Zur Bearbeitung der CMSimple Systemdateien sollten Sie ausschliesslich einen Code Editor wie z. B. notepad++ benutzen, der die Codierung "utf-8 ohne BOM" (Byte Order Mark) erkennt, die Dateien so öffnet und auch wieder abspeichert.

+

Wenn Sie die Systemdateien in einer anderen Codierung als "utf-8 ohne BOM" abspeichern, kann es zu Problemen mit verschiedenen Funktionen von CMSimple kommen.

+
+

A documentation for CMSimple is in progress:

+ +
+

The CMSimple links

+

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:

+ +

If you use another template inside a CMSimple installation, I kindly ask that you link back to www.cmsimple.org in your template, since this is a nice way to popularize the CMSimple Project and of giving something back.

+ + \ No newline at end of file diff --git a/cms/2author/content/content.php b/cms/2author/content/content.php new file mode 100644 index 0000000..3c7bbcf --- /dev/null +++ b/cms/2author/content/content.php @@ -0,0 +1,40 @@ + +

CMSimpleCoAuthors Subsite

+

CMSimpleCoAuthors Subsite

+

Congratulations on your new CMSimpleCoAuthors website.

+

You have to set the password now. How to do that, you will find in the README.txt in the root folder of the download.

+

Sie müssen nun das Passwort setzen. Wie das geht, erfahren Sie in der LIESMICH.txt im Root Ordner des Downloads.

+

More information about CMSimple and the documentation you will find on the CMSimple Homepage:

+

cmsimple.org »

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

diff --git a/cms/2author/content/pagedata.php b/cms/2author/content/pagedata.php new file mode 100644 index 0000000..108432e --- /dev/null +++ b/cms/2author/content/pagedata.php @@ -0,0 +1,99 @@ + \ No newline at end of file diff --git a/cms/2author/content/plugins/.htaccess b/cms/2author/content/plugins/.htaccess new file mode 100644 index 0000000..ab2f743 --- /dev/null +++ b/cms/2author/content/plugins/.htaccess @@ -0,0 +1,7 @@ + +Require all granted + + +order deny,allow +allow from all + \ No newline at end of file diff --git a/cms/2author/disabled_plugins.txt b/cms/2author/disabled_plugins.txt new file mode 100644 index 0000000..38351fc --- /dev/null +++ b/cms/2author/disabled_plugins.txt @@ -0,0 +1 @@ + §filebrowser§ §jquery§ §meta_tags§ §pagemanager§ §page_params§ §tinymce§ \ No newline at end of file diff --git a/cms/2author/index.php b/cms/2author/index.php new file mode 100644 index 0000000..09e64f6 --- /dev/null +++ b/cms/2author/index.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/cms/2author/setup.php b/cms/2author/setup.php new file mode 100644 index 0000000..4e3ed41 --- /dev/null +++ b/cms/2author/setup.php @@ -0,0 +1,152 @@ + 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.= ' +

flag english
Your password must have
5 or more characters!

+

flag deutsch
Das Passwort muss aus
5 oder mehr Zeichen bestehen!

+'; + } + } + + echo ' + + + + + +Welcome + + + + + + + +
+
' . $remainingSeconds . '  seconds remaining +

flag english  Enter your new password!

+

flag english  Geben Sie Ihr neues Passwort ein!

+

Minimum: 5 characters

+
+ + +
+

' . $passwordhint . '

+
+ + +'; +} +else +{ + echo ' + + + + + +Welcome + + + + +
+

Setup is not active.

+

flag english
How you can activate setup, you will find in the readme.php in the Root folder of the CMSimple download.

+

flag english
Wie Sie Setup aktivieren können, finden Sie in der readme.php des CMSimple Downloads.

+

Home »

+
+ + +'; +} + +?> \ No newline at end of file diff --git a/cms/2author/setupControl.php b/cms/2author/setupControl.php new file mode 100644 index 0000000..e69de29 diff --git a/cms/2author/userfiles/_core/CMSimpleDebug.txt b/cms/2author/userfiles/_core/CMSimpleDebug.txt new file mode 100644 index 0000000..62f9457 --- /dev/null +++ b/cms/2author/userfiles/_core/CMSimpleDebug.txt @@ -0,0 +1 @@ +6 \ No newline at end of file diff --git a/cms/2author/userfiles/_core/_editor.css b/cms/2author/userfiles/_core/_editor.css new file mode 100644 index 0000000..e69de29 diff --git a/cms/2author/userfiles/_core/_split_h1only.css b/cms/2author/userfiles/_core/_split_h1only.css new file mode 100644 index 0000000..bc01709 --- /dev/null +++ b/cms/2author/userfiles/_core/_split_h1only.css @@ -0,0 +1,11 @@ +/* +Please do not change or add anything! + +Bitte nichts ändern oder hinzufügen! +*/ +h1._level1_page_ {} +h1._level2_page_ {} +h1._level3_page_ {} +h1._level4_page_ {} +h1._level5_page_ {} +h1._level6_page_ {} \ No newline at end of file diff --git a/cms/2author/userfiles/co_author/News01.txt b/cms/2author/userfiles/co_author/News01.txt new file mode 100644 index 0000000..37d0d96 --- /dev/null +++ b/cms/2author/userfiles/co_author/News01.txt @@ -0,0 +1,9 @@ +

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

\ No newline at end of file diff --git a/cms/2author/userfiles/co_author/Welcome_to_CMSimple_5.txt b/cms/2author/userfiles/co_author/Welcome_to_CMSimple_5.txt new file mode 100644 index 0000000..fe8b09d --- /dev/null +++ b/cms/2author/userfiles/co_author/Welcome_to_CMSimple_5.txt @@ -0,0 +1,8 @@ +

Welcome to CMSimple 5

+

Welcome to CMSimple 5

+

Congratulations on your new external author subsite. You can login now with the default password, which you will find in the readme.php of the download.

+
+

!!! Remember to change the login password  immediately !!!

+
+

CMSimple is published under GPL3 License. More information about CMSimple, a very simple and easy to use CMS (Content Management System) without database, the documentation and the current Downloads you will find on the CMSimple Homepage:

+

cmsimple.org »

\ No newline at end of file diff --git a/cms/2author/userfiles/downloads/XHdebug.txt b/cms/2author/userfiles/downloads/XHdebug.txt new file mode 100644 index 0000000..62f9457 --- /dev/null +++ b/cms/2author/userfiles/downloads/XHdebug.txt @@ -0,0 +1 @@ +6 \ No newline at end of file diff --git a/cms/2author/userfiles/images/flags/cs.gif b/cms/2author/userfiles/images/flags/cs.gif new file mode 100644 index 0000000..54acbc4 Binary files /dev/null and b/cms/2author/userfiles/images/flags/cs.gif differ diff --git a/cms/2author/userfiles/images/flags/da.gif b/cms/2author/userfiles/images/flags/da.gif new file mode 100644 index 0000000..6ac0dfc Binary files /dev/null and b/cms/2author/userfiles/images/flags/da.gif differ diff --git a/cms/2author/userfiles/images/flags/de.gif b/cms/2author/userfiles/images/flags/de.gif new file mode 100644 index 0000000..bb264eb Binary files /dev/null and b/cms/2author/userfiles/images/flags/de.gif differ diff --git a/cms/2author/userfiles/images/flags/en.gif b/cms/2author/userfiles/images/flags/en.gif new file mode 100644 index 0000000..f91e683 Binary files /dev/null and b/cms/2author/userfiles/images/flags/en.gif differ diff --git a/cms/2author/userfiles/images/flags/es.gif b/cms/2author/userfiles/images/flags/es.gif new file mode 100644 index 0000000..546f989 Binary files /dev/null and b/cms/2author/userfiles/images/flags/es.gif differ diff --git a/cms/2author/userfiles/images/flags/fi.gif b/cms/2author/userfiles/images/flags/fi.gif new file mode 100644 index 0000000..5d9a203 Binary files /dev/null and b/cms/2author/userfiles/images/flags/fi.gif differ diff --git a/cms/2author/userfiles/images/flags/fr.gif b/cms/2author/userfiles/images/flags/fr.gif new file mode 100644 index 0000000..8417567 Binary files /dev/null and b/cms/2author/userfiles/images/flags/fr.gif differ diff --git a/cms/2author/userfiles/images/flags/gr.gif b/cms/2author/userfiles/images/flags/gr.gif new file mode 100644 index 0000000..65a2a47 Binary files /dev/null and b/cms/2author/userfiles/images/flags/gr.gif differ diff --git a/cms/2author/userfiles/images/flags/hu.gif b/cms/2author/userfiles/images/flags/hu.gif new file mode 100644 index 0000000..3511542 Binary files /dev/null and b/cms/2author/userfiles/images/flags/hu.gif differ diff --git a/cms/2author/userfiles/images/flags/it.gif b/cms/2author/userfiles/images/flags/it.gif new file mode 100644 index 0000000..4175953 Binary files /dev/null and b/cms/2author/userfiles/images/flags/it.gif differ diff --git a/cms/2author/userfiles/images/flags/nl.gif b/cms/2author/userfiles/images/flags/nl.gif new file mode 100644 index 0000000..01394e7 Binary files /dev/null and b/cms/2author/userfiles/images/flags/nl.gif differ diff --git a/cms/2author/userfiles/images/flags/no.gif b/cms/2author/userfiles/images/flags/no.gif new file mode 100644 index 0000000..0355844 Binary files /dev/null and b/cms/2author/userfiles/images/flags/no.gif differ diff --git a/cms/2author/userfiles/images/flags/pl.gif b/cms/2author/userfiles/images/flags/pl.gif new file mode 100644 index 0000000..1ced47e Binary files /dev/null and b/cms/2author/userfiles/images/flags/pl.gif differ diff --git a/cms/2author/userfiles/images/flags/ru.gif b/cms/2author/userfiles/images/flags/ru.gif new file mode 100644 index 0000000..6dcf3a6 Binary files /dev/null and b/cms/2author/userfiles/images/flags/ru.gif differ diff --git a/cms/2author/userfiles/images/flags/se.gif b/cms/2author/userfiles/images/flags/se.gif new file mode 100644 index 0000000..800b18c Binary files /dev/null and b/cms/2author/userfiles/images/flags/se.gif differ diff --git a/cms/2author/userfiles/images/flags/sk.gif b/cms/2author/userfiles/images/flags/sk.gif new file mode 100644 index 0000000..90dbe07 Binary files /dev/null and b/cms/2author/userfiles/images/flags/sk.gif differ diff --git a/cms/2lang/cmsimplelanguage.htm b/cms/2lang/cmsimplelanguage.htm new file mode 100644 index 0000000..f8a0a22 --- /dev/null +++ b/cms/2lang/cmsimplelanguage.htm @@ -0,0 +1,12 @@ + + + + +Identifier + + + + +

This file is just an identifier for a language folder of CMSimple.

+ + \ No newline at end of file diff --git a/cms/2lang/config.php b/cms/2lang/config.php new file mode 100644 index 0000000..f539a86 --- /dev/null +++ b/cms/2lang/config.php @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/cms/2lang/content/.htaccess b/cms/2lang/content/.htaccess new file mode 100644 index 0000000..469f632 --- /dev/null +++ b/cms/2lang/content/.htaccess @@ -0,0 +1,7 @@ + +Require all denied + + +order deny,allow +deny from all + \ No newline at end of file diff --git a/cms/2lang/content/content.htm b/cms/2lang/content/content.htm new file mode 100644 index 0000000..3e06d01 --- /dev/null +++ b/cms/2lang/content/content.htm @@ -0,0 +1,60 @@ +Content +

Welcome to CMSimple

+

Congratulations on your new language installation of CMSimple. 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.

+

The login link you will find at bottom of the page in the footer.

+
+

!!! Remember to change the login password  immediately !!!

+

Please read the readme.php in the root folder of the download.

+
+

CMSimple is published under GPL3 License.

+
+

!!! IMPORTANT HINT !!!

+

Please DO NOT change the password directly in config.php by using a text editor. Change the default password right away after login ONLINE !!! (login with default password)

+

This is the easiest and best working way.

+

For editing CMSimple files it is essential to USE ONLY editors, capable of detecting, opening and saving files as "utf-8 without BOM" (Byte Order Mark), like notepad++.

+

If this condition is not fulfilled, you will damage your CMSimple installation.

+
+

!!! WICHTIGER HINWEIS !!!

+

Bitte ändern Sie das Standard Passwort NICHT direkt in der config.php mit einem Text Editor. Ändern Sie das Standard Passwort nach dem Login ONLINE !!!  (Login mit dem Standard Passwort)

+

Zur Bearbeitung der CMSimple Systemdateien sollten Sie ausschliesslich einen Code Editor wie z. B. notepad++ benutzen, der die Codierung "utf-8 ohne BOM" (Byte Order Mark) erkennt, die Dateien so öffnet und auch wieder abspeichert.

+

Wenn Sie die Systemdateien in einer anderen Codierung als "utf-8 ohne BOM" abspeichern, kann es zu Problemen mit verschiedenen Funktionen von CMSimple kommen.

+
+

A documentation for CMSimple is in progress:

+ +
+

The CMSimple links

+

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:

+ +

If you use another template inside a CMSimple installation, I kindly ask that you link back to www.cmsimple.org in your template, since this is a nice way to popularize the CMSimple Project and of giving something back.

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+ \ No newline at end of file diff --git a/cms/2lang/content/content.php b/cms/2lang/content/content.php new file mode 100644 index 0000000..aaa92c9 --- /dev/null +++ b/cms/2lang/content/content.php @@ -0,0 +1,40 @@ + +

CMSimple Second Language

+

CMSimple Second Language

+

Congratulations on your new second language.

+

You have to set the password now. How to do that, you will find in the README.txt in the root folder of the download.

+

Sie müssen nun das Passwort setzen. Wie das geht, erfahren Sie in der LIESMICH.txt im Root Ordner des Downloads.

+

More information about CMSimple and the documentation you will find on the CMSimple Homepage:

+

cmsimple.org »

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

\ No newline at end of file diff --git a/cms/2lang/content/pagedata.php b/cms/2lang/content/pagedata.php new file mode 100644 index 0000000..f437436 --- /dev/null +++ b/cms/2lang/content/pagedata.php @@ -0,0 +1,108 @@ + \ No newline at end of file diff --git a/cms/2lang/content/plugins/.htaccess b/cms/2lang/content/plugins/.htaccess new file mode 100644 index 0000000..ab2f743 --- /dev/null +++ b/cms/2lang/content/plugins/.htaccess @@ -0,0 +1,7 @@ + +Require all granted + + +order deny,allow +allow from all + \ No newline at end of file diff --git a/cms/2lang/disabled_plugins.txt b/cms/2lang/disabled_plugins.txt new file mode 100644 index 0000000..991aa1a --- /dev/null +++ b/cms/2lang/disabled_plugins.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/cms/2lang/index.php b/cms/2lang/index.php new file mode 100644 index 0000000..09e64f6 --- /dev/null +++ b/cms/2lang/index.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/cms/2lang/setup.php b/cms/2lang/setup.php new file mode 100644 index 0000000..4e3ed41 --- /dev/null +++ b/cms/2lang/setup.php @@ -0,0 +1,152 @@ + 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.= ' +

flag english
Your password must have
5 or more characters!

+

flag deutsch
Das Passwort muss aus
5 oder mehr Zeichen bestehen!

+'; + } + } + + echo ' + + + + + +Welcome + + + + + + + +
+
' . $remainingSeconds . '  seconds remaining +

flag english  Enter your new password!

+

flag english  Geben Sie Ihr neues Passwort ein!

+

Minimum: 5 characters

+
+ + +
+

' . $passwordhint . '

+
+ + +'; +} +else +{ + echo ' + + + + + +Welcome + + + + +
+

Setup is not active.

+

flag english
How you can activate setup, you will find in the readme.php in the Root folder of the CMSimple download.

+

flag english
Wie Sie Setup aktivieren können, finden Sie in der readme.php des CMSimple Downloads.

+

Home »

+
+ + +'; +} + +?> \ No newline at end of file diff --git a/cms/2lang/setupControl.php b/cms/2lang/setupControl.php new file mode 100644 index 0000000..e69de29 diff --git a/cms/2site/cmsimplesubsite.htm b/cms/2site/cmsimplesubsite.htm new file mode 100644 index 0000000..d8b40c9 --- /dev/null +++ b/cms/2site/cmsimplesubsite.htm @@ -0,0 +1,12 @@ + + + + +Identifier + + + + +

This file is just an identifier for a subsite folder of CMSimple.

+ + \ No newline at end of file diff --git a/cms/2site/config.php b/cms/2site/config.php new file mode 100644 index 0000000..f539a86 --- /dev/null +++ b/cms/2site/config.php @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/cms/2site/content/.htaccess b/cms/2site/content/.htaccess new file mode 100644 index 0000000..469f632 --- /dev/null +++ b/cms/2site/content/.htaccess @@ -0,0 +1,7 @@ + +Require all denied + + +order deny,allow +deny from all + \ No newline at end of file diff --git a/cms/2site/content/content.htm b/cms/2site/content/content.htm new file mode 100644 index 0000000..118d38a --- /dev/null +++ b/cms/2site/content/content.htm @@ -0,0 +1,60 @@ +Content +

Welcome to CMSimple

+

Congratulations on your new Subsite installation of CMSimple. 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.

+

The login link you will find at bottom of the page in the footer.

+
+

!!! Remember to change the login password  immediately !!!

+

Please read the readme.php in the root folder of the download.

+
+

CMSimple is published under GPL3 License.

+
+

!!! IMPORTANT HINT !!!

+

Please DO NOT change the password directly in config.php by using a text editor. Change the default password right away after login ONLINE !!! (login with default password)

+

This is the easiest and best working way.

+

For editing CMSimple files it is essential to USE ONLY editors, capable of detecting, opening and saving files as "utf-8 without BOM" (Byte Order Mark), like notepad++.

+

If this condition is not fulfilled, you will damage your CMSimple installation.

+
+

!!! WICHTIGER HINWEIS !!!

+

Bitte ändern Sie das Standard Passwort NICHT direkt in der config.php mit einem Text Editor. Ändern Sie das Standard Passwort nach dem Login ONLINE !!!  (Login mit dem Standard Passwort)

+

Zur Bearbeitung der CMSimple Systemdateien sollten Sie ausschliesslich einen Code Editor wie z. B. notepad++ benutzen, der die Codierung "utf-8 ohne BOM" (Byte Order Mark) erkennt, die Dateien so öffnet und auch wieder abspeichert.

+

Wenn Sie die Systemdateien in einer anderen Codierung als "utf-8 ohne BOM" abspeichern, kann es zu Problemen mit verschiedenen Funktionen von CMSimple kommen.

+
+

A documentation for CMSimple is in progress:

+ +
+

The CMSimple links

+

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:

+ +

If you use another template inside a CMSimple installation, I kindly ask that you link back to www.cmsimple.org in your template, since this is a nice way to popularize the CMSimple Project and of giving something back.

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+ \ No newline at end of file diff --git a/cms/2site/content/content.php b/cms/2site/content/content.php new file mode 100644 index 0000000..ad0d246 --- /dev/null +++ b/cms/2site/content/content.php @@ -0,0 +1,40 @@ + +

CMSimple Subsite

+

CMSimple Subsite

+

Congratulations on your new CMSimple subsite.

+

You have to set the password now. How to do that, you will find in the README.txt in the root folder of the download.

+

Sie müssen nun das Passwort setzen. Wie das geht, erfahren Sie in der LIESMICH.txt im Root Ordner des Downloads.

+

More information about CMSimple and the documentation you will find on the CMSimple Homepage:

+

cmsimple.org »

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

diff --git a/cms/2site/content/pagedata.php b/cms/2site/content/pagedata.php new file mode 100644 index 0000000..d4b3cf9 --- /dev/null +++ b/cms/2site/content/pagedata.php @@ -0,0 +1,108 @@ + \ No newline at end of file diff --git a/cms/2site/content/plugins/.htaccess b/cms/2site/content/plugins/.htaccess new file mode 100644 index 0000000..ab2f743 --- /dev/null +++ b/cms/2site/content/plugins/.htaccess @@ -0,0 +1,7 @@ + +Require all granted + + +order deny,allow +allow from all + \ No newline at end of file diff --git a/cms/2site/disabled_plugins.txt b/cms/2site/disabled_plugins.txt new file mode 100644 index 0000000..991aa1a --- /dev/null +++ b/cms/2site/disabled_plugins.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/cms/2site/index.php b/cms/2site/index.php new file mode 100644 index 0000000..09e64f6 --- /dev/null +++ b/cms/2site/index.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/cms/2site/setup.php b/cms/2site/setup.php new file mode 100644 index 0000000..4e3ed41 --- /dev/null +++ b/cms/2site/setup.php @@ -0,0 +1,152 @@ + 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.= ' +

flag english
Your password must have
5 or more characters!

+

flag deutsch
Das Passwort muss aus
5 oder mehr Zeichen bestehen!

+'; + } + } + + echo ' + + + + + +Welcome + + + + + + + +
+
' . $remainingSeconds . '  seconds remaining +

flag english  Enter your new password!

+

flag english  Geben Sie Ihr neues Passwort ein!

+

Minimum: 5 characters

+
+ + +
+

' . $passwordhint . '

+
+ + +'; +} +else +{ + echo ' + + + + + +Welcome + + + + +
+

Setup is not active.

+

flag english
How you can activate setup, you will find in the readme.php in the Root folder of the CMSimple download.

+

flag english
Wie Sie Setup aktivieren können, finden Sie in der readme.php des CMSimple Downloads.

+

Home »

+
+ + +'; +} + +?> \ No newline at end of file diff --git a/cms/2site/setupControl.php b/cms/2site/setupControl.php new file mode 100644 index 0000000..e69de29 diff --git a/cms/2site2lang/cmsimplelanguage.htm b/cms/2site2lang/cmsimplelanguage.htm new file mode 100644 index 0000000..f8a0a22 --- /dev/null +++ b/cms/2site2lang/cmsimplelanguage.htm @@ -0,0 +1,12 @@ + + + + +Identifier + + + + +

This file is just an identifier for a language folder of CMSimple.

+ + \ No newline at end of file diff --git a/cms/2site2lang/config.php b/cms/2site2lang/config.php new file mode 100644 index 0000000..f539a86 --- /dev/null +++ b/cms/2site2lang/config.php @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/cms/2site2lang/content/.htaccess b/cms/2site2lang/content/.htaccess new file mode 100644 index 0000000..469f632 --- /dev/null +++ b/cms/2site2lang/content/.htaccess @@ -0,0 +1,7 @@ + +Require all denied + + +order deny,allow +deny from all + \ No newline at end of file diff --git a/cms/2site2lang/content/content.htm b/cms/2site2lang/content/content.htm new file mode 100644 index 0000000..b457ac1 --- /dev/null +++ b/cms/2site2lang/content/content.htm @@ -0,0 +1,60 @@ +Content +

Welcome to CMSimple

+

Congratulations on your new language installation of CMSimple. 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.

+

The login link you will find at bottom of the page in the footer.

+
+

!!! Remember to change the login password  immediately !!!

+

Please read the readme.php in the root folder of the download.

+
+

CMSimple is published under GPL3 License.

+
+

!!! IMPORTANT HINT !!!

+

Please DO NOT change the password directly in config.php by using a text editor. Change the default password right away after login ONLINE !!! (login with default password)

+

This is the easiest and best working way.

+

For editing CMSimple files it is essential to USE ONLY editors, capable of detecting, opening and saving files as "utf-8 without BOM" (Byte Order Mark), like notepad++.

+

If this condition is not fulfilled, you will damage your CMSimple installation.

+
+

!!! WICHTIGER HINWEIS !!!

+

Bitte ändern Sie das Standard Passwort NICHT direkt in der config.php mit einem Text Editor. Ändern Sie das Standard Passwort nach dem Login ONLINE !!!  (Login mit dem Standard Passwort)

+

Zur Bearbeitung der CMSimple Systemdateien sollten Sie ausschliesslich einen Code Editor wie z. B. notepad++ benutzen, der die Codierung "utf-8 ohne BOM" (Byte Order Mark) erkennt, die Dateien so öffnet und auch wieder abspeichert.

+

Wenn Sie die Systemdateien in einer anderen Codierung als "utf-8 ohne BOM" abspeichern, kann es zu Problemen mit verschiedenen Funktionen von CMSimple kommen.

+
+

A documentation for CMSimple is in progress:

+ +
+

The CMSimple links

+

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:

+ +

If you use another template inside a CMSimple installation, I kindly ask that you link back to www.cmsimple.org in your template, since this is a nice way to popularize the CMSimple Project and of giving something back.

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found here:

+

CMSimple_XH Wiki »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es hier:

+

CMSimple_XH Wiki »

+ \ No newline at end of file diff --git a/cms/2site2lang/content/content.php b/cms/2site2lang/content/content.php new file mode 100644 index 0000000..aaa92c9 --- /dev/null +++ b/cms/2site2lang/content/content.php @@ -0,0 +1,40 @@ + +

CMSimple Second Language

+

CMSimple Second Language

+

Congratulations on your new second language.

+

You have to set the password now. How to do that, you will find in the README.txt in the root folder of the download.

+

Sie müssen nun das Passwort setzen. Wie das geht, erfahren Sie in der LIESMICH.txt im Root Ordner des Downloads.

+

More information about CMSimple and the documentation you will find on the CMSimple Homepage:

+

cmsimple.org »

+

News01

+

Newsbox News01

+

This box shows the content of the hidden page "News01".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News01".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News02

+

Newsbox News02

+

This box shows the content of the hidden page "News02".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News02".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

+

News03

+

Newsbox News03

+

This box shows the content of the hidden page "News03".

+

More information about newsboxes can be found in the documentation on

+

cmsimple.org »

+
+

Diese Box zeigt den Inhalt der versteckten Seite "News03".

+

Mehr Informationen zum Thema Newsboxen gibt es in der Dokumentation auf

+

cmsimple.org »

\ No newline at end of file diff --git a/cms/2site2lang/content/pagedata.php b/cms/2site2lang/content/pagedata.php new file mode 100644 index 0000000..f437436 --- /dev/null +++ b/cms/2site2lang/content/pagedata.php @@ -0,0 +1,108 @@ + \ No newline at end of file diff --git a/cms/2site2lang/content/plugins/.htaccess b/cms/2site2lang/content/plugins/.htaccess new file mode 100644 index 0000000..ab2f743 --- /dev/null +++ b/cms/2site2lang/content/plugins/.htaccess @@ -0,0 +1,7 @@ + +Require all granted + + +order deny,allow +allow from all + \ No newline at end of file diff --git a/cms/2site2lang/disabled_plugins.txt b/cms/2site2lang/disabled_plugins.txt new file mode 100644 index 0000000..991aa1a --- /dev/null +++ b/cms/2site2lang/disabled_plugins.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/cms/2site2lang/index.php b/cms/2site2lang/index.php new file mode 100644 index 0000000..561160d --- /dev/null +++ b/cms/2site2lang/index.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/cms/2site2lang/setup.php b/cms/2site2lang/setup.php new file mode 100644 index 0000000..4e3ed41 --- /dev/null +++ b/cms/2site2lang/setup.php @@ -0,0 +1,152 @@ + 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.= ' +

flag english
Your password must have
5 or more characters!

+

flag deutsch
Das Passwort muss aus
5 oder mehr Zeichen bestehen!

+'; + } + } + + echo ' + + + + + +Welcome + + + + + + + +
+
' . $remainingSeconds . '  seconds remaining +

flag english  Enter your new password!

+

flag english  Geben Sie Ihr neues Passwort ein!

+

Minimum: 5 characters

+
+ + +
+

' . $passwordhint . '

+
+ + +'; +} +else +{ + echo ' + + + + + +Welcome + + + + +
+

Setup is not active.

+

flag english
How you can activate setup, you will find in the readme.php in the Root folder of the CMSimple download.

+

flag english
Wie Sie Setup aktivieren können, finden Sie in der readme.php des CMSimple Downloads.

+

Home »

+
+ + +'; +} + +?> \ No newline at end of file diff --git a/cms/2site2lang/setupControl.php b/cms/2site2lang/setupControl.php new file mode 100644 index 0000000..e69de29 diff --git a/cms/LIESMICH.txt b/cms/LIESMICH.txt new file mode 100644 index 0000000..cb3d01e --- /dev/null +++ b/cms/LIESMICH.txt @@ -0,0 +1,92 @@ + +===================================================== + Hilfe zur Installation von CMSimple 5.14 oder höher +===================================================== + +I N S T A L L A T I O N +----------------------- +1. Entpacken Sie die zip Datei in einen Ordner Ihres PC. +2. Laden Sie alle Dateien und Ordner des Verzeichnisses, in dem auch diese LIESMICH.txt liegt, auf Ihren Webserver hoch, in das Verzeichnis, in dem Ihre CMSimple Website laufen soll. + +Sie können Ihre neue Website nun in einem Browser aufrufen. Sie können sich 10 min lang mit dem Passwort "test" einloggen und das Passwort ändern. + +Nach Ablauf von 10 min nach dem Upload können Sie sich nicht mehr einloggen, Sie müssen Setup ausführen, um ein Passwort zu vergeben. + +S E T U P +--------- +Nach Ablauf der 10 min, oder wenn Sie das Passwort vergessen haben, können Sie das Passwort auch per Setup ändern: + +1. Laden Sie die Datei ./setup/setupControl.php in das Rootverzeichnis Ihrer CMSimple Website (CMSimpleRoot, Zweitsprache, Subsite), damit wird das Setup aktiviert. +2. Auf einigen älteren Servern müssen Sie möglicherweise die Datei setupControl.php beschreibbar machen (666), um Setup zu aktivieren. +3. Rufen Sie die Datei setup.php (CMSimpleRoot, Zweitsprache, Subsite) mit einem Browser auf und setzen Sie Ihr Passwort. + +Sie haben für das Setup 10 min Zeit, danach müssen Sie die Datei setupControl.php erneut hochladen. Eventuell muss die Datei setupControl.php auf dem PC geöffnet, bearbeitet und abgespeichert werden, um der Datei ein neues Bearbeitungsdatum zu geben. Ab da laufen dann wieder die 10 min. + +Das Setup muss auch in Zweitsprachen und Subsites ausgeführt werden. + +Nach dem Setup wird die Datei ./setupControl.php automatisch gelöscht, und Setup ist deaktiviert. + +U P D A T E S +------------- +Die Sprachdateien werden bei Updates nicht aktualisiert. + +Es wird lediglich die Datei ./cmsimple/languages/default.php aktualisiert, neu eingeführte Sprachvariablen erscheinen in allen Sprachen in Englisch und können im Backend übersetzt werden. Sie können jedoch die Sprachdateien en.php und de.php auch per Hand aktualisieren. + +Sie finden die Dateien en.php und de.php im Ordner ./setup/defaults/ des Downloads, laden Sie die beiden Dateien in den Ordner ./cmsimple/languages/ hoch. + +S I C H E R H E I T S H I N W E I S +----------------------------------- +Nach dem Setup sollten Sie sicherheitshalber die Datei ./setup.php noch einmal aufrufen. Sollte Setup noch aktiv sein, löschen Sie die Datei ./setupControl.php bitte per ftp. + +PASSWORT VERGESSEN? KEIN LOGIN MOEGLICH nach einem Update? + +Aktivieren Sie das Setup und rufen Sie die setup.php auf. + +Weitere Informationen erhalten Sie unter: https://cmsimple.org/ + +D A T E I- U N D O R D N E R R E C H T E +------------------------------------------ +Auf modernen Webspaces müssen Sie sich darum nicht mehr kümmern. Es gibt jedoch noch immer Webserver, auf denen Sie für bestimmte Ordner und Dateien Schreibrechte vergeben müssen. + +Das geschieht per ftp. Wenn nach dem Hochladen so etwas wie 'Config file missing' auf dem Bildschirm erscheint, müssen Sie als erstes folgende Ordner beschreibbar machen: + +ORDNER (chmod 0777): + +./backups/ +./backups/cmsimple/ + +./cmsimple/ +./cmsimple/languages/ + +./content/ + +./templates/ +./templates/cmsimple_default/ + +./Userfiles/ +./Userfiles/_core/ +./Userfiles/co_author/ +./Userfiles/downloads/ +./Userfiles/images/ +./Userfiles/media/ +./Userfiles/plugins/ + + +Danach rufen Sie Ihre Website im Browser auf, sie sollte jetzt schon funktionieren. Loggen Sie sich ein und vergeben Sie ein Passwort. + +Es kann sein, dass jetzt noch einige Dateien mit Schreibrechten ausgestattet werden müssen, z. B.: + +DATEIEN: (chmod 0666) + +./cmsimple/config.php +./cmsimple/log.php + +./content/content.php +./content/pagedata.php +./content/_cmsimpleAdmin.php +./content/_disabled_plugins.txt + +./templates/__cmsimple_default__/stylesheet.css +./templates/__cmsimple_default__/template.htm + +usw., CMSimple sollte sich im Backend melden, wenn eine Datei Schreibrechte benötigt. diff --git a/cms/README.txt b/cms/README.txt new file mode 100644 index 0000000..88b00f6 --- /dev/null +++ b/cms/README.txt @@ -0,0 +1,93 @@ + +===================================================== + Help to install CMSimple 5.14 or higher +===================================================== + +I N S T A L L A T I O N +----------------------- +1. Unzip the zip file in a folder of your PC. +2. Upload all files and folders of the folder, where also this README.txt is located, to your webserver, to the folder, where your CMSimple Website shall run. + +Now you can call your new website with a web browser . You can log in for 10 min with the password "test" and change the password. + +10 min after the upload, you can no longer log in. You have to run Setup to assign a password. + +S E T U P +--------- +After the 10 min, or if you have forgotten the password, you also can change the password via setup: + +1. Upload the file ./setup/setupControl.php to the installation folder of your CMSimple website (CMSimpleRoot, second language, subsite), and the setup mode will be activated. +2. On some older servers maybe you have to make the setupControl.php writable (666) to activate Setup. +3. Call the ./setup.php (CMSimpleRoot, second language, subsite) with a web browser and set your password. + +You have 10 min for the setup, after that you have to upload the file setupControl.php again. Maybe the setupControl.php file need to be opened on the PC, edited and saved to give the file a new edit date. Now the 10 min for setup are running again. + +The setup can (must) also be executed in secondary languages and subsites. + +After setup, the ./setupControl.php file is automatically deleted and setup is deactivated. + +U P D A T E S +------------- +The language files will not be updated by updates. + +Only the file ./cmsimple/languages/default.php will be updated, newly introduced language variables appear in English in all languages and can be translated in the backend. However, you can also update the language files en.php and de.php manually. + +You will find the files en.php and de.php in the folder ./setup/defaults/ of the download, upload the two files to the folder ./cmsimple/languages/ to update the language files manually. + +S A F E T Y N O T I C E +------------------------ +For safety, after setup you should call the ./setup.php file again. If setup is still active, please delete the file ./setupControl.php by ftp. + +FORGOTTEN PASSWORD? NO LOGIN POSSIBLE after an update? + +Activate the setup and call the setup.php (see S E T U P) + +Further informations you get under: https://cmsimple.org/ + +F I L E- A N D F O L D E R P E R M I S S I O N S +--------------------------------------------------- +On modern web spaces you should not have to worry about this. However, there are still web servers on which you have to grant write permissions for certain files and folders. + +This you can to via ftp. If something like 'Config file missing' appears on the screen after uploading, at first you have to make the following folders writable: + +FOLDERS (chmod 0777): + +./backups/ +./backups/cmsimple/ + +./cmsimple/ +./cmsimple/languages/ + +./content/ + +./templates/ +./templates/cmsimple_default/ + +./Userfiles/ +./Userfiles/_core/ +./Userfiles/co_author/ +./Userfiles/downloads/ +./Userfiles/images/ +./Userfiles/media/ +./Userfiles/plugins/ + + +Then open your website in the browser, your CMSimple website should already work now. Log in and change the password. + +It may be that some files now need write permissions, for example: + +FILES (chmod 0666): + +./cmsimple/config.php +./cmsimple/log.php + +./content/_cmsimpleAdmin.php +./content/_disabled_plugins.txt +./content/content.php +./content/pagedata.php + + +./templates/__cmsimple_default__/stylesheet.css +./templates/__cmsimple_default__/template.htm + +CMSimple should report in the backend when a file needs write permissions. \ No newline at end of file diff --git a/cms/cmsimple/.htaccess b/cms/cmsimple/.htaccess new file mode 100644 index 0000000..469f632 --- /dev/null +++ b/cms/cmsimple/.htaccess @@ -0,0 +1,7 @@ + +Require all denied + + +order deny,allow +deny from all + \ No newline at end of file diff --git a/cms/cmsimple/PasswordHash.php b/cms/cmsimple/PasswordHash.php new file mode 100644 index 0000000..ada1804 --- /dev/null +++ b/cms/cmsimple/PasswordHash.php @@ -0,0 +1,263 @@ + in 2004-2006 and placed in +# the public domain. Revised in subsequent years, still public domain. +# +# There's absolutely no warranty. +# +# The homepage URL for this framework is: +# +# http://www.openwall.com/phpass/ +# +# Please be sure to update the Version line if you edit this file in any way. +# It is suggested that you leave the main version number intact, but indicate +# your project name (after the slash) and add your own revision information. +# +# Please do not change the "private" password hashing method implemented in +# here, thereby making your hashes incompatible. However, if you must, please +# change the hash type identifier (the "$P$") to something different. +# +# Obviously, since this code is in the public domain, the above are not +# requirements (there can be none), but merely suggestions. +# + +if (preg_match('/PasswordHash.php/i', $_SERVER['SCRIPT_NAME'])) + die('Access Denied'); + +class PasswordHash +{ + var $itoa64; + var $iteration_count_log2; + var $portable_hashes; + var $random_state; + + function __construct($iteration_count_log2, $portable_hashes) + { + $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + + if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31) + $iteration_count_log2 = 8; + $this->iteration_count_log2 = $iteration_count_log2; + + $this->portable_hashes = $portable_hashes; + + $this->random_state = microtime(); + if (function_exists('getmypid')) + $this->random_state .= getmypid(); + } + + function get_random_bytes($count) + { + $output = ''; + if (is_readable('/dev/urandom') && + ($fh = fopen('/dev/urandom', 'rb'))) { + $output = fread($fh, $count); + fclose($fh); + } + + if (strlen($output) < $count) { + $output = ''; + for ($i = 0; $i < $count; $i += 16) { + $this->random_state = + md5(microtime() . $this->random_state); + $output .= + pack('H*', md5($this->random_state)); + } + $output = substr($output, 0, $count); + } + + return $output; + } + + function encode64($input, $count) + { + $output = ''; + $i = 0; + do { + $value = ord($input[$i++]); + $output .= $this->itoa64[$value & 0x3f]; + if ($i < $count) + $value |= ord($input[$i]) << 8; + $output .= $this->itoa64[($value >> 6) & 0x3f]; + if ($i++ >= $count) + break; + if ($i < $count) + $value |= ord($input[$i]) << 16; + $output .= $this->itoa64[($value >> 12) & 0x3f]; + if ($i++ >= $count) + break; + $output .= $this->itoa64[($value >> 18) & 0x3f]; + } while ($i < $count); + + return $output; + } + + function gensalt_private($input) + { + $output = '$P$'; + $output .= $this->itoa64[min($this->iteration_count_log2 + + ((PHP_VERSION >= '5') ? 5 : 3), 30)]; + $output .= $this->encode64($input, 6); + + return $output; + } + + function crypt_private($password, $setting) + { + $output = '*0'; + if (substr($setting, 0, 2) == $output) + $output = '*1'; + + $id = substr($setting, 0, 3); + # We use "$P$", phpBB3 uses "$H$" for the same thing + if ($id != '$P$' && $id != '$H$') + return $output; + + $count_log2 = strpos($this->itoa64, $setting[3]); + if ($count_log2 < 7 || $count_log2 > 30) + return $output; + + $count = 1 << $count_log2; + + $salt = substr($setting, 4, 8); + if (strlen($salt) != 8) + return $output; + + # We're kind of forced to use MD5 here since it's the only + # cryptographic primitive available in all versions of PHP + # currently in use. To implement our own low-level crypto + # in PHP would result in much worse performance and + # consequently in lower iteration counts and hashes that are + # quicker to crack (by non-PHP code). + if (PHP_VERSION >= '5') { + $hash = md5($salt . $password, TRUE); + do { + $hash = md5($hash . $password, TRUE); + } while (--$count); + } else { + $hash = pack('H*', md5($salt . $password)); + do { + $hash = pack('H*', md5($hash . $password)); + } while (--$count); + } + + $output = substr($setting, 0, 12); + $output .= $this->encode64($hash, 16); + + return $output; + } + + function gensalt_extended($input) + { + $count_log2 = min($this->iteration_count_log2 + 8, 24); + # This should be odd to not reveal weak DES keys, and the + # maximum valid value is (2**24 - 1) which is odd anyway. + $count = (1 << $count_log2) - 1; + + $output = '_'; + $output .= $this->itoa64[$count & 0x3f]; + $output .= $this->itoa64[($count >> 6) & 0x3f]; + $output .= $this->itoa64[($count >> 12) & 0x3f]; + $output .= $this->itoa64[($count >> 18) & 0x3f]; + + $output .= $this->encode64($input, 3); + + return $output; + } + + function gensalt_blowfish($input) + { + # This one needs to use a different order of characters and a + # different encoding scheme from the one in encode64() above. + # We care because the last character in our encoded string will + # only represent 2 bits. While two known implementations of + # bcrypt will happily accept and correct a salt string which + # has the 4 unused bits set to non-zero, we do not want to take + # chances and we also do not want to waste an additional byte + # of entropy. + $itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + + $output = '$2a$'; + $output .= chr(ord('0') + $this->iteration_count_log2 / 10); + $output .= chr(ord('0') + $this->iteration_count_log2 % 10); + $output .= '$'; + + $i = 0; + do { + $c1 = ord($input[$i++]); + $output .= $itoa64[$c1 >> 2]; + $c1 = ($c1 & 0x03) << 4; + if ($i >= 16) { + $output .= $itoa64[$c1]; + break; + } + + $c2 = ord($input[$i++]); + $c1 |= $c2 >> 4; + $output .= $itoa64[$c1]; + $c1 = ($c2 & 0x0f) << 2; + + $c2 = ord($input[$i++]); + $c1 |= $c2 >> 6; + $output .= $itoa64[$c1]; + $output .= $itoa64[$c2 & 0x3f]; + } while (1); + + return $output; + } + + function HashPassword($password) + { + $random = ''; + + if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) { + $random = $this->get_random_bytes(16); + $hash = + crypt($password, $this->gensalt_blowfish($random)); + if (strlen($hash) == 60) + return $hash; + } + + if (CRYPT_EXT_DES == 1 && !$this->portable_hashes) { + if (strlen($random) < 3) + $random = $this->get_random_bytes(3); + $hash = + crypt($password, $this->gensalt_extended($random)); + if (strlen($hash) == 20) + return $hash; + } + + if (strlen($random) < 6) + $random = $this->get_random_bytes(6); + $hash = + $this->crypt_private($password, + $this->gensalt_private($random)); + if (strlen($hash) == 34) + return $hash; + + # Returning '*' on error is safe here, but would _not_ be safe + # in a crypt(3)-like function used _both_ for generating new + # hashes and for validating passwords against existing hashes. + return '*'; + } + + function CheckPassword($password, $stored_hash) + { + $hash = $this->crypt_private($password, $stored_hash); + if ($hash[0] == '*') + $hash = crypt($password, $stored_hash); + + return $hash == $stored_hash; + } +} +?> \ No newline at end of file diff --git a/cms/cmsimple/adm.php b/cms/cmsimple/adm.php new file mode 100644 index 0000000..92091a6 --- /dev/null +++ b/cms/cmsimple/adm.php @@ -0,0 +1,1543 @@ +'; + if (is_dir($pth['folder'][$fn]) && $fd = opendir($pth['folder'][$fn])) + { + while (($p = readdir($fd)) == true) + { + if (preg_match($regm, $p)) + { + $v = preg_replace($regr, "\\1", $p); + + if ($k1 . $k2 == 'editortinymce_toolbar') + { + $v = str_replace('init_', '', $v); + } + + $options[$v] = ($v == $v2); + } + } + closedir($fd); + } + + if(is_array($options))ksort($options, SORT_STRING); + + foreach ($options as $option => $selected) + { + if + ( + // template fallback (hide standard templates) and hide default.php in languages + $option != '__fallback__' + && $option != '__maintenance__' + && $option != '__cmsimple_backend__' + && $option != '__cmsimple_filebrowser__' + && $option != 'default' + ) + { + $o .= "\n" . '