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 | |
/* | |
Plugin Name: Registered users only | |
Plugin URI: http://www.osclass.org/ | |
Description: This plugin block non-registered users | |
Version: 0.9.3 | |
Author: OSClass | |
Author URI: http://www.osclass.org/ | |
Short Name: registered_users_only | |
Plugin update URI: registered-users-only |
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
source ~/.git-completion.bash | |
function parse_git_branch | |
{ | |
git_status="$(git status 2> /dev/null)"; | |
if [ ! -n "$git_status" ]; then | |
return 1; | |
fi | |
git_branches="$(git branch 2> /dev/null)" |
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
#!bash | |
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript" src="js/jquery.min.js"></script> | |
<script type="text/javascript">/*! jQuery v1.7.2 jquery.com | jquery.org/license */ | |
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){tr |
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 Getting_Started extends GP_Plugin { | |
function __construct() { | |
parent::__construct(); | |
$this->add_action( 'init' ); | |
$this->add_action( 'after_notices' ); | |
GP::$router->add( '/getting-started', 'getting_started_page' ); |
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
/* FYI: for now, only available on english */ | |
/* MAIN CATEGORIES */ | |
INSERT INTO /*TABLE_PREFIX*/t_category (pk_i_id, i_position, b_enabled) VALUES (1, 1, 1); | |
INSERT INTO /*TABLE_PREFIX*/t_category_description (fk_i_category_id, fk_c_locale_code, s_name, s_slug) VALUES (1, 'en_US', 'For sale', 'for-sale'); | |
INSERT INTO /*TABLE_PREFIX*/t_category (pk_i_id, i_position, b_enabled) VALUES (2, 2, 1); | |
INSERT INTO /*TABLE_PREFIX*/t_category_description (fk_i_category_id, fk_c_locale_code, s_name, s_slug) VALUES (2, 'en_US', 'Vehicles', 'vehicles'); | |
INSERT INTO /*TABLE_PREFIX*/t_category (pk_i_id, i_position, b_enabled) VALUES (3, 3, 1); | |
INSERT INTO /*TABLE_PREFIX*/t_category_description (fk_i_category_id, fk_c_locale_code, s_name, s_slug) VALUES (3, 'en_US', 'Classes', 'classes'); | |
INSERT INTO /*TABLE_PREFIX*/t_category (pk_i_id, i_position, b_enabled) VALUES (4, 4, 1); | |
INSERT INTO /*TABLE_PREFIX*/t_category_description (fk_i_category_id, fk_c_locale_code, s_name, s_slug) VALUES (4, 'en_US', 'Real estate', 'real-estate |
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 | |
/* | |
* OSCLass – software for creating and publishing online classified | |
* advertising platforms | |
* | |
* Copyright (C) 2010 OSCLASS | |
* | |
* This program is free software: you can redistribute it and/or | |
* modify it under the terms of the GNU Affero General Public License | |
* as published by the Free Software Foundation, either version 3 of |
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 | |
/** | |
* OSClass – software for creating and publishing online classified advertising platforms | |
* | |
* Copyright (C) 2010 OSCLASS | |
* | |
* This program is free software: you can redistribute it and/or modify it under the terms | |
* of the GNU Affero General Public License as published by the Free Software Foundation, | |
* either version 3 of the License, or (at your option) any later version. | |
* |
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 | |
/** | |
* Multisite upload handler. | |
* | |
* @since 3.0.0 | |
* | |
* @package WordPress | |
* @subpackage Multisite | |
*/ |
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 | |
/** | |
* OSClass – software for creating and publishing online classified advertising platforms | |
* | |
* Copyright (C) 2010 OSCLASS | |
* | |
* This program is free software: you can redistribute it and/or modify it under the terms | |
* of the GNU Affero General Public License as published by the Free Software Foundation, | |
* either version 3 of the License, or (at your option) any later version. | |
* |