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
#!/bin/bash | |
find $1 \( -type f -and \( -name "*.php" -or -name "*.inc" -or -name "*.phtml" \) \) -exec php -l {} \; | grep -v "No syntax 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
// Initializing variables | |
var friend = { name : "WIFE",phoneNumber : "2225551234" } ; | |
var messageText = "I'm on my way home"; | |
var action = "exit" /* leave */; | |
var location = { name : "work",latitude : "XX.123456",longitude : "-YY.123456" } ; | |
var time = "4:45 PM"; | |
// End of variables initializing | |
console.log('Started script: Text ' + friend.name + ' \"' + messageText + '\" when I ' + action + ' ' + location.name + ' after ' + time ); |
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 | |
$wp_constant_mgr = new class WP_Constants_Manager(); | |
function wp_constant( $name, $value ) { | |
global $wp_constant_mgr; | |
if ( UNIT_TEST_MODE ) | |
$wp_constant_mgr->set( $name, $value ); | |
else | |
define( $name, $value ); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- web.config contributed to html5boilerplate by Velir : velir.com --> | |
<configuration> | |
<system.webServer> | |
<httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024"> | |
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> | |
<staticTypes> | |
<add mimeType="text/*" enabled="true" /> | |
<add mimeType="message/*" enabled="true" /> | |
<add mimeType="application/javascript" enabled="true" /> |
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
<IfModule mod_mime.c> | |
# Text | |
AddType text/css .css | |
AddType application/x-javascript .js | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx | |
AddType text/plain .txt | |
AddType text/xml .xml |
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
<IfModule mod_mime.c> | |
# Text | |
AddType text/css .css | |
AddType application/x-javascript .js | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx | |
AddType text/plain .txt | |
AddType text/xml .xml |
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
setDnsName www.example.com 1.2.3.4 | |
overrideHost 1.2.3.4 www.example.com | |
setDnsName example.com 1.2.3.4 | |
overrideHost 1.2.3.4 example.com | |
navigate http://www.example.com/ |
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 | |
class Foo { | |
private $_bar = ''; | |
public function __construct( $bar ) { | |
$this->_bar = $bar; | |
} | |
public function getBaz( $foo ) { | |
return $foo->_bar; | |
} |
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
Index: wp-testcase/test-ajax-actions/test_admin_ajax_dim_comments.php | |
=================================================================== | |
--- wp-testcase/test-ajax-actions/test_admin_ajax_dim_comments.php (revision 676) | |
+++ wp-testcase/test-ajax-actions/test_admin_ajax_dim_comments.php (working copy) | |
@@ -188,9 +188,14 @@ | |
$_POST['_page'] = 1; | |
$_POST['_url'] = admin_url( 'edit-comments.php' ); | |
- // Make the request | |
- $this->setExpectedException( 'WPAjaxDieException', (string) time() ); |
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
%define source0 ZendFramework-1.11.5.tar.gz | |
%define name ZendFramework | |
%define version 1.11.5 | |
Name: ZendFramework | |
Summary: ZendFramework %{version} for PHP | |
Version: %{version} | |
Release: 1 | |
Group: GoDaddy | |
License: BSD |