summaryrefslogtreecommitdiff
path: root/utils/admin_pressrelease.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-27 13:52:39 +0000
committerdeva <deva>2010-02-27 13:52:39 +0000
commit39d6dd59160aa8b836309743950e5c5bf9d2a459 (patch)
tree825484d07e4a86bcf50bc588f0fe22d008804cea /utils/admin_pressrelease.php
parent35562f519abaece77746381b73dea0fa0d13ed3e (diff)
Remove some old unused admin files.
Diffstat (limited to 'utils/admin_pressrelease.php')
-rw-r--r--utils/admin_pressrelease.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/utils/admin_pressrelease.php b/utils/admin_pressrelease.php
deleted file mode 100644
index 65ba35a..0000000
--- a/utils/admin_pressrelease.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<h2>Pressrelease</h2>
-<?php
-include_once($UTIL_DIR . "/pressrelease.php");
-include_once($UTIL_DIR . "/convert.php");
-
-if($task == "confirm") {
- $testmail = new Email("Testname", "http://www.example.com", $testaddr);
- $testmail->send(utf8_decode(stripslashes($subject)), utf8_decode(stripslashes($message)));
- echo "A testmail has been sent to " . $testaddr . ". Check this email to berify the correctness of the contents.";
-
-?>
-Is the press mail correct?<br/>
-<form method="post" action="?page=admin&amp;module=pressrelease&amp;task=send">
- <input name="testaddr" type="hidden" value="<?php echo convert($testaddr) ?>"/>
- <input name="subject" type="hidden" value="<?php echo convert($subject) ?>"/>
- <input name="message" type="hidden" value="<?php echo convert($message) ?>"/>
- <button type="submit">Yes</button>
-</form>
-<form method="post" action="?page=admin&amp;module=pressrelease">
- <input name="testaddr" type="hidden" value="<?php echo convert($testaddr) ?>"/>
- <input name="subject" type="hidden" value="<?php echo convert($subject) ?>"/>
- <input name="message" type="hidden" value="<?php echo convert($message) ?>"/>
- <button type="submit">No</button>
-</form>
-<?php
- $subject = "";
- $message = "";
-}
-?>
-
-<?php
-if($task == "send") {
- $list = new PressRelease($DATA_DIR . "/pressrelease.xml");
- $list->post(utf8_decode(stripslashes($subject)), utf8_decode(stripslashes($message)));
-}
-?>
-
-<div class="small_header">Post pressrelease</div>
-<form method="post" action="?page=admin&amp;module=pressrelease&amp;task=confirm">
- <p>
- Test address:
- <input name="testaddr" value="<?php echo convert($testaddr) ?>"/>
- </p>
- <p>
- Subject:
- <input name="subject" value="<?php echo convert($subject) ?>"/>
- </p>
- <p>
- Message:<br/>
- <textarea name="message"><?php echo convert($message) ?></textarea>
- </p>
- <p>
- <button type="submit">Post news</button>
- </p>
-</form>