This file contains hidden or 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
AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY |
This file contains hidden or 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
:root #element-id { | |
margin: 40px\9; | |
} |
This file contains hidden or 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
<?php | |
// Settings | |
$post_url = "https://test.authorize.net/gateway/transact.dll"; | |
$db_host = "localhost"; | |
$db_user = "root"; | |
$db_pass = ""; | |
$db_name = "payments"; | |
$db_table = "transaction_log"; |
This file contains hidden or 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
<?php | |
$required_fields = array( | |
'page_id' => 'page_id', | |
'Amount' => 'cc_amount', | |
'Credit Card Number' => 'cc_card_num', | |
'Credit Card Expiration Date' => 'cc_exp_date', | |
'Description' => 'cc_description' | |
); |
This file contains hidden or 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
<?php | |
if(isset($_POST['run'])) { | |
include('payment_validation.php'); | |
} | |
?> | |
<form action="" method="post" name="payment" onsubmit="document.getElementById('submit_button').disabled = 1;"> | |
<p><input name="page_id" type="hidden" value="4" /></p> | |
<p><label>First Name</label><input name="first_name" type="text" /></p> | |
<p><label>Last Name</label><input name="last_name" type="text" /></p> | |
<p><label>Comments</label><textarea name="comments"></textarea></p> |
This file contains hidden or 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
CREATE TABLE IF NOT EXISTS `transaction_log` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`pid` int(11) NOT NULL, | |
`response_code` int(11) NOT NULL, | |
`payment_data` text NOT NULL, | |
`response_data` text NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; |
This file contains hidden or 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
<form action="" enctype="multipart/form-data" method="post"> | |
<input id="file" name="file" type="file" /> | |
<input id="Submit" name="submit" type="submit" value="Submit" /> | |
</form> |
This file contains hidden or 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
categorySelection = TEXT | |
categorySelection.data = GPvar : cat |
This file contains hidden or 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
<?php | |
/* | |
Plugin Name: Exclude Posts if in Single Category | |
Description: Exclude posts if they are only tagged in a single category, as defined by the category number. This will show posts in the loop if they are tagged in more than one category. | |
Version: 1.0 | |
Author: Zac Vineyard | |
Author URI: http://www.zacvineyard.com | |
*/ |