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
<?php | |
//from: http://coreymaynard.com/blog/creating-a-restful-api-with-php/#toc_5 | |
abstract class API{ | |
/** | |
* Property: method | |
* The HTTP method this request was made in, either GET, POST, PUT or DELETE | |
*/ | |
protected $method = ''; | |
/** | |
* Property: endpoint |
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 is a test harness for your module | |
// You should do something interesting in this harness | |
// to test out the module and to provide instructions | |
// to users on how to use it by example. | |
// open a single window | |
var win = Ti.UI.createWindow({ | |
backgroundColor:'white' | |
}); |
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
<?php | |
$sites = "http://www.broadcastsolutions.com.au/ | |
http://www.kvm.com.au/ | |
http://www.ambertech.com.au/"; | |
$sites = preg_split('/\r\n|\r|\n/', $sites); | |
echo " |
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
input[type="date"]:before { | |
content: attr(placeholder) !important; | |
color: #aaa; | |
margin-right: 0.5em; | |
} | |
input[type="date"]:focus:before, | |
input[type="date"]:valid:before { | |
content: ""; | |
} |
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
if ( ! function_exists( 'weslink_wordpress_admin_account' ) ) { | |
function weslink_wordpress_admin_account() { | |
// Hier setzen Sie ihre neuen Daten fest | |
$username = 'Benutzername'; | |
$password = 'Passwort'; | |
$email = 'email@ihre-domain.de'; | |
// Ab hier müssen Sie nichts mehr machen | |
if ( ! username_exists( $username ) && ( ! email_exists( $email ) ) ) { | |
$user_id = wp_create_user( $username, $password, $email ); |
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
if ( ! function_exists( 'weslink_change_wordpress_errors' ) ) { | |
function weslink_change_wordpress_errors(){ | |
return 'Irgendetwas ist hier falsch!'; // Hier kann man eine beliebige Fehlermeldung ausgeben | |
} | |
} | |
add_filter( 'login_errors', 'weslink_change_wordpress_errors' ); |
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
if ( function_exists('wl_stop_update_emails')) { | |
add_filter( 'auto_core_update_send_email', 'wl_stop_auto_update_emails', 10, 4 ); | |
function wl_stop_update_emails( $send, $type, $core_update, $result ) { | |
if ( ! empty( $type ) && $type == 'success' ) { | |
return false; | |
} |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
OlderNewer