Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Junker committed Oct 3, 2020
1 parent 1d23888 commit 1fee9de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Changed some misplaced session_start() #51
* No traslated back on admin/pages/about.php
* Fixed bugs in admin/login.php and admin/2fa.php
* Some include_once "konfiguration.php" existed
# Pb2.0Bfx1
## Fixed bugs
* Version named Pb2.0Bfx0 instead of Pb2.0Bfx0RCA
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Old pre-alpha and pre-beta versions aren't supported with bugfixes.
### Pre-Beta
| Version | Supported|Newest Version|
| ------- | ---------|--------------|
| Pb2.1 | :x: | Pb2.1Bfx0 |
| Pb2.0 | :x: | Pb2.0Bfx1 |
| Pb1.8 | :x: | Pb1.8Bfx0 |
| Pb1.7 | :x: | Pb1.7Bfx1 |
Expand Down
11 changes: 5 additions & 6 deletions site/admin/pages/settingseditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
$text = str_replace('%b',$U->getLang("admin.settings.edit.p"),$text);
echo $text;
}else{
require_once ('konfiguration.php');
$db_link = mysqli_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASSWORD,MYSQL_DATABASE);
$sql = "SELECT * FROM Settings;";
$db_erg = mysqli_query( $db_link, $sql );
Expand All @@ -45,11 +44,11 @@
if($type == "Bool"){
$text = <<<'CODE'
<form action="%a">
<input type="hidden" name="URL" value="settingseditorsend" />
<input type="hidden" name="N" value="%b" />
<br />1:<input type="radio" name="V" value="1" />
<br />0:<input type="radio" name="V" value="0" /><br />
<button type="submit">%c</button>
<input type="hidden" name="URL" value="settingseditorsend" />
<input type="hidden" name="N" value="%b" />
<br />1:<input type="radio" name="V" value="1" />
<br />0:<input type="radio" name="V" value="0" /><br />
<button type="submit">%c</button>
</form>
CODE;
$text = str_replace('%b',$_GET["N"],$text);
Expand Down
2 changes: 1 addition & 1 deletion site/install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h2>Experimantal feature. Sometimes doesn't work</h2>
<p> We reccomend to install manually. See the <a href="../install.md">install.md</a> file.</p>
<ul>
<li>Version: Pb2.0Bfx1</li>
<li>Version: Pb2.1Bfx0</li>
<li>You need PHP 7: <?php if (PHP_VERSION_ID > 69999){echo "Yes!";}else{echo "You must update!";} ?></li>
<li>You need Mysql: Can't check</li>
<form action="step2.php" method="post">
Expand Down
2 changes: 1 addition & 1 deletion site/login/googletoken.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$token_data = $client->verifyIdToken($_POST["token"])->getAttributes();
$user_id = $token_data['payload']['sub'];
if(isset($_SESSION["User_ID"])){
require_once ('konfiguration.php');
require_once ('configuration.php');
$db_link = mysqli_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASSWORD,MYSQL_DATABASE);
$sql = "SELECT * FROM User WHERE Username='".mysqli_real_escape_string ($db_link,$_SESSION["User_Name"])."'";
$db_erg = mysqli_query( $db_link, $sql );
Expand Down

0 comments on commit 1fee9de

Please sign in to comment.