This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bits n pieces from the private fork.
- Loading branch information
Tyler Hall
committed
May 3, 2011
1 parent
6034060
commit 3496a68
Showing
7 changed files
with
50 additions
and
10 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,22 @@ | ||
<?PHP | ||
// Given a text file with one FastSpring order number per line, | ||
// this script finds any orders that were not successfully stored | ||
// in Shine. | ||
|
||
require 'includes/master.inc.php'; | ||
|
||
$orders = file('orders.txt'); | ||
|
||
$db = Database::getDatabase(); | ||
|
||
foreach($orders as $o) | ||
{ | ||
$o = trim($o); | ||
$count = $db->getValue("SELECT COUNT(*) FROM shine_orders WHERE `txn_id` = '$o'"); | ||
if($count == 0) | ||
{ | ||
echo "$o<br>\n"; | ||
} | ||
} | ||
|
||
echo "Done"; |
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 |
---|---|---|
|
@@ -38,11 +38,10 @@ | |
$message .= "Criticality: {$_POST['critical']}\n\n"; | ||
$message .= "Message: " . str_replace("\\n", "\n", $_POST['message']) . "\n\n"; | ||
|
||
// Send mail via http://postmarkapp.com | ||
// Mail_Postmark::compose() | ||
// ->addTo('[email protected]') | ||
// ->subject($_POST['appname'] . ' ' . ucwords($_POST['type'])) | ||
// ->messagePlain($message) | ||
// ->send(); | ||
Mail_Postmark::compose() | ||
->addTo('[email protected]') | ||
->subject($_POST['appname'] . ' ' . ucwords($_POST['type'])) | ||
->messagePlain($message) | ||
->send(); | ||
|
||
echo "ok"; |
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