Skip to content

Commit

Permalink
Added PHP secrets to hide some information
Browse files Browse the repository at this point in the history
  • Loading branch information
bialger committed Aug 7, 2024
1 parent a6983d5 commit a8cca9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
include "./scripts/php/secrets.php";
include "./scripts/php/checkAuth.php";
checkAuth(3);
?>
Expand Down Expand Up @@ -56,7 +57,7 @@
Если вы хотите сообщить о баге или предложить какую-то идею по сайту &mdash; создавайте <a target="_blank" href="https://github.com/bialger/bialger-website/issues">issue</a>
в GitHub-репозитории.
<?php
$myemail = "Мой email: <a href='mailto:bigulov.sasha@gmail.com'>bigulov.sasha@gmail.com</a>. Если будут вопросы &mdash; пишите. <br>\n";
$myemail = "Мой email: <a href='mailto:".secrets["owner-email"]."'>".secrets["owner-email"]."</a>. Если будут вопросы &mdash; пишите. <br>\n";
showSmth($myemail, 2);
?>
<br>
Expand All @@ -81,7 +82,7 @@
<a name="other" class="subtitle">Прочее</a>
<br>
А еще я писательствую потихоньку. <?php
showSmth('<a target="_blank" href="https://author.today/u/a_bigulov">Вот тут</a>', 2);
showSmth('<a target="_blank" href="'.secrets["literature-link"].'">Вот тут</a>', 2);
if (!checkUser(2)) {
echo 'Вот тут';
}
Expand Down
6 changes: 6 additions & 0 deletions scripts/php/secrets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
$secrets = array(
"owner-email" => "",
"literature-link" => ""
);
?>

0 comments on commit a8cca9e

Please sign in to comment.