config.php 3.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $servername = "yourserver.com;
  3. $username = "user";
  4. $password = "password";
  5. $dbname = "database";
  6. // Create connection
  7. $conn = new mysqli($servername, $username, $password, $dbname);
  8. // Check connection
  9. if ($conn->connect_error) {
  10. die("Connection failed: " . $conn->connect_error);
  11. }
  12. $Logging="true";
  13. $ImagePermissionLevel=0;
  14. $CreateStoryPermissionLevel=0;
  15. $CreatePagePermissionLevel=0;
  16. $ModPermissionLevel=2;
  17. $LinkPermissionLevel=2;
  18. $ImageEditPermissionLevel=2;
  19. $LogPermissionLevel=2;
  20. $UserSettingPermissionLevel=3;
  21. $ImageAutoLevel=1;
  22. $Rules='<br><b>Rules:</b> <br>1. No Hatespeech or bigotry (Sexism, Racism, Homophobia, Ableism, Classicism, and so on!).<br>2. No explicit images, no contents illegal by german law. <br>3. By releasing a text, you agree to release it under a CC BY SA 4.0 License.<br>4. No spam, no linking against commercial ventures. <br> Impressum: <a href="impressum.html">Here</a><br>';
  23. $Help='<br><br>CASSANDRA is a tool for the collaborative creation of <a href="https://en.wikipedia.org/wiki/Hypertext_fiction">Hyperlink Literature.</a> and to perpetuate the <a href="https://en.wikipedia.org/wiki/The_Death_of_the_Author">Death of the Author.</a><br><br><br>Register by setting a username and a password, than click the "Register" Button. <br>After that you can login and create and edit "Pages" and "Stories"; depending of the configuration of the CASSANDRA instance you are working on, you might also be allowed to upload images. <br><br>Every page has an individual ID that can be used to link against.<br>To do so, you can either use the "Add Link" Option or the [hyper=ID]Text[/hyper] tag within your texts (the other available tags are [b][u][i] and [color=xxx]), or use the ID as "Opener" when creating a story.<br><br>You can allow other users to edit your pages and link to pages created by other users.<br><br>You can also create stories; stories are the entry point for a chain of pages and are shown on the index page (in a randomized order). To do so, click on "Create Story", and give in a Title, a short description, and the ID of the first page of the story ("Opener"). <br><br>Trying to contact others is only possible within the texts and there is no reliable way to sign your stuff or to identify yourself.<br>It is not possible for (non-mod users) to identify single authors or find pages other than by following links (meaning that pages normally can only be found by opening your "stories" and following the links; once found, others might include your pages into their stories - the target of this is to create a fictional, abstract maze of prosa that can\'t be full understood even by those who particiapted in building it). <br><br>Note that there is moderation. Since CASSANDRA is relying heavily on the modification and usage of the entered texts you agree - by using it - to release your texts under the <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY SA 4.0 License.</a>.<br><br> If you have questions, complaints, or need help contact me using contact@admin.com. <br><br> Please respect the <a href="index.php?Mod=11">rules</a>. Have fun!';
  24. ?>