forked from AndrewPaglusch/FlashPaper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abcb219
commit 93c7ed6
Showing
7 changed files
with
57 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php defined('_DIRECT_ACCESS_CHECK') or exit(); ?> | ||
<div id="form-div"> | ||
<fieldset> | ||
<div> | ||
<label style="font-family: 'Enriqueta', arial, serif; line-height: 1.25; margin: 0 0 10px; font-size: 30px; font-weight: bold;"><?php echo $settings['messages']['view_secret_header'] ?></label> | ||
<div style="font-style: italic"> | ||
<label style="font-family: 'Enriqueta', arial, serif; line-height: 1.25; margin: 0 0 10px; font-size: 15px; font-weight: bold;"><?php echo $settings['messages']['view_secret_subheader'] ?></label> | ||
</div> | ||
<div style="margin-top:10px"> | ||
<textarea readonly class="form-control" name="secret" rows="8" style="resize: vertical;"><?php echo $message ?></textarea> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
<?php | ||
defined('_DIRECT_ACCESS_CHECK') or exit(); | ||
|
||
defined('_DIRECT_ACCESS_CHECK') or exit(); | ||
$settings = [ | ||
'site_title' => 'FlashPaper :: Self-Destructing Message', | ||
'return_full_url' => true, | ||
'max_secret_length' => 3000, | ||
'messages' => [ | ||
'error_secret_too_long' => 'Input length too long', | ||
|
||
$variables = [ | ||
'SITE_TITLE' => 'FlashPaper :: Self-Destructing Message', | ||
]; | ||
'submit_secret_header' => 'Create A Self-Destructing Message', | ||
'submit_secret_subheader' => '', | ||
'submit_secret_button' => 'Encrypt Message', | ||
|
||
foreach ($variables as $key => $value) { | ||
putenv("$key=$value"); | ||
} | ||
?> | ||
'view_code_header' => 'Self-Destructing URL', | ||
'view_code_subheader' => 'Share this URL via email, chat, or another messaging service. It will self-destruct after being viewed once.', | ||
|
||
'confirm_view_secret_header' => 'View this secret?', | ||
'confirm_view_secret_button' => 'View Secret', | ||
|
||
'view_secret_header' => 'Self-Destructing Message', | ||
'view_secret_subheader' => 'This message has been destroyed', | ||
] | ||
]; | ||
?> |