Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $paste->UserID = $CurrentAccount->UserID;
- $paste->ExpiryFlag = isset($_POST['Expiry']) ? sql_injection($_POST['Expiry']) : "Day";
- $paste->Format = isset($_POST['Format']) ? sql_injection($_POST['Format']) : "None";
- if (!array_key_exists($paste->Format, $CONF['all_syntax']))
- $paste->Format = '';
- $paste = paste::create($paste);
- if ($paste->ID > 0) {
- $status_code = 1;
- $error_msg = "DONE";
- $id = $paste->ID;
- }
- else
- $error_msg = "Could not complete the process";
- }
- }
- echo "<?xml version=\"1.0\"?>\n";
- echo "<response>\n";
- echo "\t<status>$status_code</status>\n";
- echo "\t<message>$error_msg</message>\n";
- if ($id > 0) {
- echo "\t<id>$id</id>\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement