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
var client = { | |
endpoint : 'http://localhost/schlumberjer/xpris/service/api.php', | |
container : $('#tests table'), | |
request_payload : {}, | |
auth_token : '', |
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: BP Restrict | |
Plugin URI: | |
Description: Restrict wordpress pages to logged in users | |
Version: 1.2.0 | |
Author: Ali Roshan | |
Author Email: [email protected] | |
License: |
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 | |
/** | |
* PHP Micro Templating | |
*/ | |
namespace imvision; | |
class Template { | |
public static function Render($tmpl, $data = array()) { | |
extract($data); |
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 | |
function wpcw_gg_RunTests() { | |
global $wpdb; | |
echo "<h3>Running Tests...</h3>"; | |
$course_id = wpcw_gg_getFirstCourseId(); | |
gg_OK($course_id, "First Course Id: {$course_id}"); | |
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 | |
/** | |
* Plugins | |
* / | |
### Create a hidden plugin page | |
# Add a sub menu page | |
function jobman_admin_setup() { | |
add_submenu_page( 'jobman-conf', __( 'Project Manager', 'jobman' ), __( 'Tickets', 'jobman' ), 'publish_posts', 'pm_project_tickets', 'pm_project_tickets' ); |
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
using System; | |
using System.Windows.Forms; | |
using Market = CSharpAPI6.betfair.api.exchange.Market; | |
using Runner = CSharpAPI6.betfair.api.exchange.Runner; | |
namespace CSharpAPI6 | |
{ | |
/// <summary> | |
/// Summary description for MarketViewRow. | |
/// </summary> |
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
sudo chown -R apache:apache /var/www/html/site_name/ | |
That was it!!! I've spent many hours on this problem. Thank you!! | |
For those of you where changing the directories to 777 does not work, then this may be your problem. I just replaced the path with my own and then: service httpd restart. |
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 | |
// Add custom post types on Tag, Category, Author archive pages | |
add_filter('pre_get_posts', 'query_post_type'); | |
function query_post_type($query) { | |
if(is_category() || is_tag() || $query->is_author) { | |
$post_type = get_query_var('post_type'); | |
if($post_type) | |
$post_type = $post_type; | |
else |
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
[ | |
{"group":"US (Common)", | |
"zones":[ | |
{"value":"America/Puerto_Rico","name":"Puerto Rico (Atlantic)"}, | |
{"value":"America/New_York","name":"New York (Eastern)"}, | |
{"value":"America/Chicago","name":"Chicago (Central)"}, | |
{"value":"America/Denver","name":"Denver (Mountain)"}, | |
{"value":"America/Phoenix","name":"Phoenix (MST)"}, | |
{"value":"America/Los_Angeles","name":"Los Angeles (Pacific)"}, | |
{"value":"America/Anchorage","name":"Anchorage (Alaska)"}, |