code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.SharedPreferences;
import and... | zxfxingkong-fanfoudroid | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 9,412 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxfxingkong-fanfoudroid | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 22,940 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.ListActivity;
/**
* TODO: 准备重构现有的几个ListActivity
*
* 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法,
* 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity"
* 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可,
* 而... | zxfxingkong-fanfoudroid | src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java | Java | asf20 | 1,225 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxfxingkong-fanfoudroid | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,447 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.ContextMenu;
import andro... | zxfxingkong-fanfoudroid | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 14,085 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | zxfxingkong-fanfoudroid | src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java | Java | asf20 | 4,702 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | zxfxingkong-fanfoudroid | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,691 |
package com.hlidskialf.android.hardware;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class ShakeListener implements SensorEventListener {
private static final int FORCE... | zxfxingkong-fanfoudroid | src/com/hlidskialf/android/hardware/ShakeListener.java | Java | asf20 | 2,826 |
/* Javadoc 样式表 */
/* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */
/* 页面背景颜色 */
body { background-color: #FFFFFF; color:#000000 }
/* 标题 */
h1 { font-size: 145% }
/* 表格颜色 */
.TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */
.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */
.TableRowColor ... | zxfxingkong-fanfoudroid | doc/stylesheet.css | CSS | asf20 | 1,370 |
<?php
/**
* @abstract Database table definitions
*
* @author Justin Johnson <justin@booleangate.org>
*
* @package gobe.config.database
*/
| zwf | trunk/config/database.php | PHP | gpl2 | 144 |
<?php
$r = Gobe_Router::getInstance();
$r->addRoute(array(
new Gobe_Route("`^/contact/1-800-ZEBRAKICK/(.*)$`i", '/contact/$1', 200)
));
| zwf | trunk/config/routes.php | PHP | gpl2 | 140 |
<?php
| zwf | trunk/config/application.php | PHP | gpl2 | 6 |
<?php
/**
* @abstract Error codes.
*
* @author Justin Johnson <justin@booleangate.org>
*
* @package gobe.config.error
*/
/* General */
define('ERR_SUCCESS' , 0);
define('ERR_WARN' , 10);
define('ERR_FATAL' , 11);
define('ERR_USER' , 20);
define('ERR_UNKNO... | zwf | trunk/config/error.php | PHP | gpl2 | 1,062 |
<?php
// Legacy module defines
define("HANDLE_ADD", 1);
define("HANDLE_MOD", 2);
define("HANDLE_DEL", 3);
define("HANDLE_GET", 4);
define("HANDLE_SET", 5);
define("HANDLE_RESET", 6); | zwf | trunk/config/legacy.php | PHP | gpl2 | 184 |
<?php
/**
* @abstract Main configuration bootstrap.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 3.0.0 20100208 <johnsonj>
*
* @package gobe.config.boot
*/
function Gobe_safeDefine($constant, $value) {
if ( !defined($constant) ) {
define($constant, $value);
}
}
/* Install specific confi... | zwf | trunk/config/boot.php | PHP | gpl2 | 1,897 |
<?php
/**
* Configurable options that are dependant upon the local environment and site needs. Should
* include all credentials.
*
* @author Justin Johnson <justin@booleangate.org>
*
* @package gobe.config.local
*/
/* Install location */
define('DEFAULT_SITE_TITLE', 'Gobe 3!');
define('DOMAIN_WEB' , '... | zwf | trunk/config/local-install.php | PHP | gpl2 | 1,540 |
<?php
/**
* @abstract Overrides for GOBE paths and any other arbitrary path definitions.
*
* @author Justin Johnson <justin@booleangate.org>
*
* @package gobe.config.paths
*/
// All path's should end in '/'
// RPC services
define('PATH_SERVICES' , GOBE_WEB_ROOT . 'rpc/services/');
define('PATH_SERVICES_AD... | zwf | trunk/config/paths.php | PHP | gpl2 | 769 |
<?php
/**
* Module configuration
*
* @author Justin Johnson <justin@booleangate.org>
*
* @package gobe.config.local
*/
Gobe_safeDefine("DEFAULT_SITE_TITLE", ""); | zwf | trunk/config/modules.php | PHP | gpl2 | 168 |
<?php
/* Rewrite variables */
Gobe_safeDefine("GOBE_QUERY_PATH", "--gobe-path");
Gobe_safeDefine("GOBE_QUERY_STATUS", "--gobe-status");
/* Default paths */
Gobe_safeDefine("GOBE_WEB_ROOT", "/");
Gobe_safeDefine("GOBE_DOC_ROOT", realpath($_SERVER['DOCUMENT_ROOT'] . GOBE_WEB_ROOT) . "/");
// General (accesse... | zwf | trunk/config/gobe.php | PHP | gpl2 | 1,998 |
[page set-title('Gobe test site')];
[include css('pages/page.css')];
[include css('pages/home.css')];
This is the gobe test site | zwf | trunk/html/index.html | HTML | gpl2 | 129 |
<?php
/**
* @abstract File system utilities
*
* @author Justin Johnson <justin@boolenagate.org>
* @version 0.2.1 20080430 JJ
* @version 0.2.0 20080416 JJ
* @version 0.1.0 20070311 JJ
*
* @package zk.modules.filesyst
*/
class Filesys {
/**
* @abstract Function to remove directories, even if they contain... | zwf | trunk/html/modules/filesys.php | PHP | gpl2 | 1,501 |
<?php
/**
* @abstract Breadcrumb storage and output.
*
* @author Justin Johnson <johnsonj>
* @version 2.0.2 20080428 JJ
* @version 2.0.0 20080421 JJ
* @version 1.0.0 20070305 JJ
*
* @package zk.modules.web.breadcrumbs
*/
/**
* @abstract For building breadcrumb paths.
*/
class Breadcrumbs {
// implements... | zwf | trunk/html/modules/web/breadcrumbs.php | PHP | gpl2 | 2,293 |
<?php
include_gobe_module("goat");
/**
* @abstract Generic web anayltics insertion
*
* @author Justin Johnson <johnsonj>
* @version 20090726 <johnsonj>
*
* @package zk.modules.web.analytics
*/
class Analytics {
const TEMPLATE_EXTENSION = ".html";
const TEMPLATE_PATH = "web/analytics/";
const DEFAULT_... | zwf | trunk/html/modules/web/analytics.php | PHP | gpl2 | 1,622 |
<?php
include_gobe_module("goat");
/**
* @abstract XML feed aggregator
*
* @author Justin Johnson <justin@zebrakick.com>
* @version 20091113 johnsonj (added twitter and atom support)
* @version 20090919 johnsonj
* @version 20090724 johnsonj
*
* @package zk.modules.web.aggregate
*/
class Aggregate {
const ... | zwf | trunk/html/modules/web/aggregate.php | PHP | gpl2 | 4,348 |
<?php
/**
* @abstract HTML Page functionality
*
* @author Justin Johnson <johnsonj>
* @author Andrew Muprhy <andrew@booleangate.com>
* @version 20080430 JJ
* @version 20080428 JJ
* @version 20080427 JJ
* @version 20080421 JJ
* @version 20070701 AM
*
* @package zk.modules.web.html
*/
include_gobe_module('... | zwf | trunk/html/modules/web/page.php | PHP | gpl2 | 11,131 |
<?php
/**
* @abstract HTML Page functionality
*
* @author Justin Johnson <johnsonj>
* @version 2.1.0 20080428 JJ
*
* @package zk.modules.web.html
*/
class ContentStub {
private $content;
private $delayedContent;
public function __construct() {
$this->content = array();
$this->delayedConte... | zwf | trunk/html/modules/web/content.php | PHP | gpl2 | 1,458 |
<?php
/**
* @abstract Web page navigation tools.
*
* @author Justin Johnson <johnsonj>
* @version 0.3.2 20080430 JJ
* @version 0.3.0 20080428 JJ
*
* @package zk.modules.web.navigation
*/
class NavigationSelector {
private $classResponse;
private $selections;
public function __construct($classRespons... | zwf | trunk/html/modules/web/navigation.php | PHP | gpl2 | 1,363 |
<?php
include_once('aes.php');
/* Iv test */
$text = '1111111111111111';
$iv = '2a3s4d5f6g7h8j9l';
echo Aes128::encrypt($text, Aes128::DEFAULT_SALT, $iv), "<br/>",
Aes128::decrypt(
Aes128::encrypt($text, Aes128::DEFAULT_SALT, $iv),
Aes128::DEFAULT_SALT, $iv
);
die();
//*/
/* Performance test */
$iterations... | zwf | trunk/html/modules/crypt/aes-test.php | PHP | gpl2 | 1,279 |
<?php
/**
* @abstract Cryptography interface definition
*
* @author Justin Johnson <johnsonj>
* @version 1.0.0 20080418 JJ
*
* @package zk.modules.crypt.interface
*/
interface cryptTemplate {
public function encrypt($text);
public function decrypt($text);
}
interface cryptTemplate_static {
public static ... | zwf | trunk/html/modules/crypt/interface.php | PHP | gpl2 | 388 |
<?php
/**
* @abstract Cryptography library
*
* @author Justin Johnson <johnsonj>
* @version 0.3.0 20080418 JJ
* @version 0.2.0 20080411 JJ
* @version 0.1.0 20080319 JJ
*
* @package zk.modules.crypt.aes
*/
include_gobe_module('crypt.interface');
/* Adapted from code by "mre (at) reinhardt (dot) info" found ... | zwf | trunk/html/modules/crypt/aes.php | PHP | gpl2 | 3,164 |
<?php
/**
* @abstract SSL utilities.
*
* @author Justin Johnson <johnsonj>
* @version 1.0.0 20080416 JJ
*
* @package zk.modules.ssl
*/
include_gobe_module('utils');
class SSL {
/**
* @abstract Detects whether or not an SSL connection is being used.
* @return bool Whether or not an SSL connection is bei... | zwf | trunk/html/modules/ssl.php | PHP | gpl2 | 1,007 |
<?php
/**
* @abstract Common validation routines
*
* @author Justin Johnson <johnsonj>
* @version 1.0.1 20080619 JJ
* @version 1.0.0 20080416 JJ
*
* @package zk.modules.validate
*/
class Validate {
/**
* @abstract Validates an email address.
*
* @param string $addr An email address to validate.
* @... | zwf | trunk/html/modules/validate.php | PHP | gpl2 | 3,502 |
<?php
/**
* @abstract Address representation and validation.
*
* @author Justin Johnson <johnsonj>
* @version 0.1.2 20080430 JJ
* @version 0.1.0 20080416 JJ
*
* @package zk.address
*/
class Address {
public static function validate(&$params, $key_prefix='') {
/* Name
* -Required, not empty
*/
$pa... | zwf | trunk/html/modules/address.php | PHP | gpl2 | 6,708 |
<?php
/**
* GOAT (GHA Output And Template) for PHP4
*
* System for creating rich template output by defining a series of callbacks
* to functions that may be accessed from within a template string.
* Please consult the documentation for the php5 version of GOaT for all
* documentation.
*
* @version 2.1.0d 20060... | zwf | trunk/html/modules/goat/php4/goat.php4.php | PHP | gpl2 | 29,276 |
<?php
/**
* GOAT (GHA Output And Template)
*
* System for creating rich template output by defining a series of callbacks
* to functions that may be accessed from within a template string.
*
* @version 2.2.1 20080428 JJ (Segundo)
* @version 2.1.1 20080409 JJ (Segundo)
* @version 2.1.0 20060501 AM (Segundo)
* @... | zwf | trunk/html/modules/goat/php5/goat.php5.php | PHP | gpl2 | 29,659 |
<?php
/**
* GOAT (GHA Output And Template)
*
* System for creating rich template output by defining a series of callbacks
* to functions that may be accessed from within a template string.
*
* @version 2.1.0d 20060501 (Segundo)
* @author Andrew Murphy <andrew@booleangate.org>
* @license http://bool-goat.source... | zwf | trunk/html/modules/goat/goat.php | PHP | gpl2 | 10,070 |
<?php
/**
* @abstract Debug functionality.
*
* @author Justin Johnson <johnsonj>
* @version 2.0.0 20080415 JJ
*
* @package zk.modules.debug
*/
class Debug {
/**
* @abstract The standard var_dump() wrapped in <pre>.
* @params mixed An number of variables can be passed.
*/
public static function var_du... | zwf | trunk/html/modules/debug.php | PHP | gpl2 | 854 |
<?php
/**
* @abstract Database library wrapper class (PHP 5 implementation)
* @author Justin Johnson <johnsonj>
* @version 0.0.8 20080218 JJ
* @version 0.0.6 20071127 JJ
*
* @package zk.modules.database.dblib
*/
/* Globals for tracking efficiency */
$__SQLWrap_total_objects = 0;
$__SQLWrap_current_objects = ... | zwf | trunk/html/modules/database/sqlwrap.php | PHP | gpl2 | 6,572 |
<?php
/**
* @author Andrew Murphy <andrew.ap.murphy@gmail.com>
* @author Justin Johnson <justin@booleangate.org>
* @version 1.0.0a 20071115 AM
*/
//require_once '../../config/database-config.php';
define('VALIDATE_ERR_NO_COLUMN' , 1);
define('VALIDATE_ERR_LENGTH' , 2);
define('VALIDATE_ERR_MISMATCH' , 4);
def... | zwf | trunk/html/modules/database/pdo.php | PHP | gpl2 | 6,459 |
<?php
/*
$Id: nusoap.php,v 1.114 2007/11/06 15:17:46 snichol Exp $
NuSOAP - Web Services Toolkit for PHP
Copyright (c) 2002 NuSphere Corporation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundati... | zwf | trunk/html/modules/nusoap/nusoap.php | PHP | gpl2 | 281,387 |
<?php
/**
*
* nusoap_parser class parses SOAP XML messages into native PHP values
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @author Scott Nichol <snichol@users.sourceforge.net>
* @version $Id: class.soap_parser.php,v 1.40 2007/04/17 16:34:03 snichol Exp $
* @access public
*/
class nusoap_parser exten... | zwf | trunk/html/modules/nusoap/class.soap_parser.php | PHP | gpl2 | 24,766 |
<?php
/*
$Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $
NuSOAP - Web Services Toolkit for PHP
Copyright (c) 2002 NuSphere Corporation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Founda... | zwf | trunk/html/modules/nusoap/nusoapmime.php | PHP | gpl2 | 15,052 |
<?php
/*
The NuSOAP project home is:
http://sourceforge.net/projects/nusoap/
The primary support for NuSOAP is the mailing list:
nusoap-general@lists.sourceforge.net
*/
/**
* caches instances of the wsdl class
*
* @author Scott Nichol <snichol@users.sourceforge.net>
* @author Ingo Fischer <ingo@apollon.de>
* @vers... | zwf | trunk/html/modules/nusoap/class.wsdlcache.php | PHP | gpl2 | 5,381 |
<?php
/**
*
* [nu]soapclient higher level class for easy usage.
*
* usage:
*
* // instantiate client with server info
* $soapclient = new nusoap_client( string path [ ,mixed wsdl] );
*
* // call method, get results
* echo $soapclient->call( string methodname [ ,array parameters] );
*
* // bye bye client
* unset($so... | zwf | trunk/html/modules/nusoap/class.soapclient.php | PHP | gpl2 | 31,865 |
<?php
/**
* Contains information for a SOAP fault.
* Mainly used for returning faults from deployed functions
* in a server instance.
* @author Dietrich Ayala <dietrich@ganx4.com>
* @version $Id: class.soap_fault.php,v 1.14 2007/04/11 15:49:47 snichol Exp $
* @access public
*/
class nusoap_fault extends nusoap_b... | zwf | trunk/html/modules/nusoap/class.soap_fault.php | PHP | gpl2 | 2,220 |
<?php
/**
* transport class for sending/receiving data via HTTP and HTTPS
* NOTE: PHP must be compiled with the CURL extension for HTTPS support
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @author Scott Nichol <snichol@users.sourceforge.net>
* @version $Id: class.soap_transport_http.php,v 1.66 2007/11/06... | zwf | trunk/html/modules/nusoap/class.soap_transport_http.php | PHP | gpl2 | 44,334 |
<?php
/**
* parses a WSDL file, allows access to it's data, other utility methods.
* also builds WSDL structures programmatically.
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @author Scott Nichol <snichol@users.sourceforge.net>
* @version $Id: class.wsdl.php,v 1.69 2007/11/06 15:17:46 snichol Exp $
* @a... | zwf | trunk/html/modules/nusoap/class.wsdl.php | PHP | gpl2 | 76,537 |
<?php
/**
*
* nusoap_server allows the user to create a SOAP server
* that is capable of receiving messages and returning responses
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @author Scott Nichol <snichol@users.sourceforge.net>
* @version $Id: class.soap_server.php,v 1.58 2007/10/30 18:50:30 snichol Exp... | zwf | trunk/html/modules/nusoap/class.soap_server.php | PHP | gpl2 | 37,435 |
<?php
/**
* For creating serializable abstractions of native PHP types. This class
* allows element name/namespace, XSD type, and XML attributes to be
* associated with a value. This is extremely useful when WSDL is not
* used, but is also useful when WSDL is used with polymorphic types, including
* xsd:anyType a... | zwf | trunk/html/modules/nusoap/class.soap_val.php | PHP | gpl2 | 2,300 |
<?php
/*
$Id: class.nusoap_base.php,v 1.51 2007/11/06 15:17:46 snichol Exp $
NuSOAP - Web Services Toolkit for PHP
Copyright (c) 2002 NuSphere Corporation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwar... | zwf | trunk/html/modules/nusoap/class.nusoap_base.php | PHP | gpl2 | 28,860 |
<?php
/**
* parses an XML Schema, allows access to it's data, other utility methods.
* imperfect, no validation... yet, but quite functional.
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @author Scott Nichol <snichol@users.sourceforge.net>
* @version $Id: class.xmlschema.php,v 1.49 2007/11/06 14:17:53 sni... | zwf | trunk/html/modules/nusoap/class.xmlschema.php | PHP | gpl2 | 33,557 |
<?php
/**
* @abstract Email containers and functionality.
*
* @author Justin Johnson <johnsonj>
* @version 1.2.0 20090304 JJ (integrated PHP mailer)
* @version 1.2.0 20080421 JJ
* @version 1.0.0 20080416 JJ
*
* @package zk.modules.email
*/
include_gobe_module('validate');
include_gobe_module('stdlib');
inc... | zwf | trunk/html/modules/email.php | PHP | gpl2 | 4,353 |
<?php
/**
* @abstract Session initialization and maintainance.
*
* @author Justin Johnson <johnsonj>
* @version 0.1.0 20080430 JJ
*
* @package zk.modules.session
*/
session_start();
define("SN_ROOT", "gobe-module-session");
// Make sure that there is at least a default user auth level
if ( !isset($_SESSION[... | zwf | trunk/html/modules/session.php | PHP | gpl2 | 564 |
<?php
/**
* GOBE Module (paths)
*
* Path handling and insertion
*
* @author Andrew Murphy <andrew@booleangate.com>
* @version 1.0.1b 20061208
*/
function handle_paths($action, $value = -1){
static $paths = null;
if(!is_array($paths)){
$paths = array();
}
switch($action){
case HANDLE_SET:
if(is_a... | zwf | trunk/html/modules/paths.php | PHP | gpl2 | 2,108 |
<?php
/**
* @abstract Ternary operators for us only in templates. Do not use these in server-side scripting.
*
* @author Justin Johnson <johnsonj>
* @version 0.1.1 20080430 JJ
* @version 0.1.0 20080428 JJ
*
* @package zk.modules.ternary
*/
/**
* @abstract Ternary operators
*/
class Ternary {
public sta... | zwf | trunk/html/modules/ternary.php | PHP | gpl2 | 1,551 |
<?php
/**
* @abstract Ajax helpers.
*
* @author Justin Johnson <johnsonj>
* @version 1.0.0 20080415 JJ
* @version 0.0.1 20070306 JJ
*
* @package zk.modules.ajax
*/
include_gobe_module('utils');
/**
* @abstract An Ajax service helper. Ajax::response should be used to handle all Ajax responses.
* @uses U... | zwf | trunk/html/modules/ajax.php | PHP | gpl2 | 2,003 |
<?php
/**
* Thumbnail list generator
* Adapted from Westcoe Property listing library
*
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @author Andrew Murphy
* @version 2.5.6 20080317 JJ
* @version 2.5.4 20080316 JJ
* @version 1.1.0 20080125 JJ
* @version 1.0.0 20071116 AM
*/
function build_thum... | zwf | trunk/html/modules/gallery/thumb.php | PHP | gpl2 | 1,079 |
<?php
/**
* Gallery results library
*
* @author Andrew Murphy
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @version 2.0.0 20080430 JJ
* @version 1.0.5 20080204 AM
* @version 1.0.4 20080201 AM
* @version 1.0.4 20080125 JJ
* @version 1.0.3 20071227 AM
* @version 1.0.2 20071203 JJ
* @version 1.0... | zwf | trunk/html/modules/gallery/results.php | PHP | gpl2 | 635 |
<?php
/**
* Gallery config
*
* @author Andrew Murphy
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @version 1.1.0 20080430 JJ
* @version 1.0.0 20071120 AM
*
* @package zk.modules.gallery.main
*/
define('DB_TABLE_LISTING' , '`listing`');
define('DB_TABLE_PHOTO' , '`photo`');
define('DB_DEFAUL... | zwf | trunk/html/modules/gallery/main.php | PHP | gpl2 | 384 |
<?php
/**
* Examples listing adapted from HLocator
*
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @version 1.4.0 20080430 JJ
* @version 1.2.0 20080317 JJ
* @version 1.1.0 20080315 JJ
* @version 1.0.0 20080314 JJ
*
*/
include_gobe_module('output.multiform');
include_gobe_module('gallery.main');... | zwf | trunk/html/modules/gallery/sidebar.php | PHP | gpl2 | 1,484 |
<?php
/**
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @version 0.0.8a 20071108 JJ
*/
global $VALID_FIELDS_TABLE_PHOTO;
$VALID_FIELDS_TABLE_PHOTO = array(
'*' => array( ),
'photo_id' => array(PDO::PARAM_INT ),
'type' ... | zwf | trunk/html/modules/gallery/photos/validate.php | PHP | gpl2 | 3,257 |
<?php
/**
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @author Andrew Murphy andrew.ap.murphy@gmail.com
* @version 0.1.3a 20071108 JJ
*/
function photos_get_user_photos($user_id, $columns=null, $where=null) {
//TODO: does not check for injections in fields
static $queries = array();
if ( !is_a... | zwf | trunk/html/modules/gallery/photos/getter.php | PHP | gpl2 | 6,710 |
<?php
/**
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
* @version 0.1.8a 20071107 JJ
*/
/**
* Resizes and adds a photo and its title to the database associated to a user.
*
* @param int $listing_id The listing ID of the photo's owner.
* @param string $filename The path to the image to be resized... | zwf | trunk/html/modules/gallery/photos/setter.php | PHP | gpl2 | 6,519 |
<?php
/**
* Main photos API include
* @author Justin Johnson <johnsonj>, justin@zebrakick.com
*
* @version 0.1.1 20080317 JJ
*/
define('PATH_UPLOAD_PHOTO', $_SERVER['DOCUMENT_ROOT'] .'/admin/var/upload/');
// Used for jpeg and png compression when saving resized files
// imagejpeg compression paramter is 0-1... | zwf | trunk/html/modules/gallery/photos/main.php | PHP | gpl2 | 967 |
<?php
/**
* @abstract Defines the common functionality for all builder objects.
*
* @author Justin Johnson <johnsonj>
* @version 0.2.0 20080421 JJ
* @version 0.1.0 20080410 JJ
*
* @package raygun.modules.builder.interface
*/
interface Builder {
public function build();
}
interface Builder_static {
public... | zwf | trunk/html/modules/builder/interface.php | PHP | gpl2 | 349 |
<?php
/**
* @abstract Centralized list handling.
*
* @author Justin Johnson <johnsonj>
* @version 0.5.1 20080428 JJ
* @version 0.4.0 20080427 JJ
* @version 0.1.0 20080421 JJ
*
* @package zk.modules.builder.list
*/
include_gobe_module('builder.interface');
class ListBuilder
implements Builder_static {
... | zwf | trunk/html/modules/builder/list.php | PHP | gpl2 | 4,344 |
<?php
/**
* @abstract For building HTML elments.
*
* @author Justin Johnson <johnsonj>
* @version 1.3.1 20080421 JJ
* @version 1.3.0 20080412 JJ
* @version 1.2.1 20080411 JJ
* @version 1.2.0 20080410 JJ
*
* @package raygun.modules.builder.html
*/
//include_gobe_module('builder.interface');
/**
* @abstrac... | zwf | trunk/html/modules/builder/html.php | PHP | gpl2 | 6,920 |
<?php
/**
* Multiform, a template snippet origanizing tool.
*
* @author Justin Johnson <justin@booleangate.com>
* @version 2.5.0 20080225 JJ
* @version 2.3.2 20071217 JJ
* @version 2.0.0 20070219 JJ
*
* @license This product is licensed under the gLabs license
* @copyright Copyright 2005-2007, Booleangate.org
... | zwf | trunk/html/modules/output/multiform.php | PHP | gpl2 | 10,509 |
<?php
/**
* @abstract Error handling procedures
*
* @author Justin Johnson <johnsonj>
*
* @version 1.0.1 20080312 JJ
*
* @package zk.modules.output.error
*/
//TODO: OO
include_gobe_module('output.multiform');
/**
* Formats error strings into an error group container as deteremined by mode
* @param array/s... | zwf | trunk/html/modules/output/error.php | PHP | gpl2 | 5,373 |
<?php
/**
* @abstract General formatting functions
*
* @author Justin Johnson <johnsonj>
* @version 1.2.2 20091113 JJ
* @version 1.2.1 20080506 JJ
* @version 1.2.0 20080416 JJ
* @version 1.0.0 20080410 JJ
*
* @package zk.modules.output.format
*/
class Format {
const TMPL_HTML_OPTION = "<option value=\"%s\"... | zwf | trunk/html/modules/output/format.php | PHP | gpl2 | 3,978 |
<?php
/**
* @abstract Utilities and other fun.
*
* @author Justin Johnson <johnsonj>
* @version 1.2.0 20080428 JJ
* @version 1.0.0 20080416 JJ
*
* @package zk.modules.utils
*/
/**
* @abstract General utilities.
*/
class Utils {
/**
* @abstract Converts an array to XML notation where all indexes are tag... | zwf | trunk/html/modules/utils.php | PHP | gpl2 | 3,454 |
<?php
class Grammar {
static public $vowels = array("A","E","I","O","U");
static public function indefiniteArticle($noun) {
return self::isVowel($noun[0]) ? "an" : "a";
}
static public function isVowel($letter) {
return in_array($letter, self::$vowels);
}
static public function isConsonant($letter) {
... | zwf | trunk/html/modules/Grammar.php | PHP | gpl2 | 744 |
<?php
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.code... | zwf | trunk/html/modules/phpmailer/smtp.php | PHP | gpl2 | 33,019 |
<?php
/*~ class.pop3.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.code... | zwf | trunk/html/modules/phpmailer/pop3.php | PHP | gpl2 | 9,904 |
<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www... | zwf | trunk/html/modules/phpmailer/phpmailer.php | PHP | gpl2 | 57,732 |
<?php
/**
* @abstract XSL fun.
*
* @author Andrew Murphy <andrew@booleangate.org>
* @author Justin Johnson <johnsonj>
* @version 1.2.0 20080318 AM
* @version 1.0.0 20080211 AM
*
* @package zk.modules.xsl
*/
register_gobe_debug_load_module('Loading gomo.xsl');
function xsl_transform_feed($feedUrl, $xslPath) ... | zwf | trunk/html/modules/xsl.php | PHP | gpl2 | 886 |
<?php
/**
* @abstract Common functions and classes used site wide.
*
* @author Justin Johnson <johnsonj>
* @version 2.3.1 20080430 JJ
* @version 2.1.0 20080421 JJ
* @version 2.0.0 20080416 JJ
* @version 1.7.0 20080407 JJ
* @version 1.6.7 20080310 JJ
* @version 1.6.6 20080219 JJ
* @version 1.6.5 20080217 JJ
*... | zwf | trunk/html/modules/stdlib.php | PHP | gpl2 | 6,731 |
<?php
require_once(GOBE_PATH_MODULES . 'goat/goat.php'); | zwf | trunk/html/modules/goat.php | PHP | gpl2 | 61 |
<?php
/**
* Manager for a collection of custom URL routes.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 20100202 <johnsonj>
* @package gobe.router
*/
class Gobe_Router {
private $routes;
public function addRoute($route) {
if ( is_array($route) ) {
foreach ( $route as $r ) {
$this-... | zwf | trunk/html/gobe/Router.php | PHP | gpl2 | 917 |
<?php
/**
* Defines legacy module and templating methods for backward compatibility
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100205 (johnsonj)
* @package gobe.legacy
*/
if ( !function_exists("include_gobe_module") ) {
function include_gobe_module($module) {
Gobe::getInstance()-... | zwf | trunk/html/gobe/legacy.php | PHP | gpl2 | 1,187 |
<?php
/**
* Handles all Gobe script inclusion and execution (preload, cascade, local and context)
*
* @author Justin Johnson <justin@booleangate.org>
* @version 20100209 <johnsonj>
* @package gobe.scritps
*/
class Gobe_Scripts {
const TYPE_INITIALIZE = 0x01;
const TYPE_CASCADE = 0x02;
const TYPE_LOCAL ... | zwf | trunk/html/gobe/Scripts.php | PHP | gpl2 | 3,359 |
<?php
/*
* Defines requests and interprets custom routes.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100222 (johnsonj)
* @package gobe.request
*/
class Gobe_Request {
const DEFAULT_PATH = "/";
const DEFAULT_STATUS = 200;
const ERROR_PATH = GOBE_PATH_TEMPLATES_ERRORS;
priv... | zwf | trunk/html/gobe/Request.php | PHP | gpl2 | 4,654 |
<?php
/**
* Gobe 2: A complete rewrite of GOBE originally by Andrew Murphy <andrew.ap.murphy@gmail.com>.
*
* All Gobe requests are routed through this page.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100209 (johnsonj)
*/
define('GOBE_PATH_CONFIG', $_SERVER['DOCUMENT_ROOT'] . '/../... | zwf | trunk/html/gobe/boot.php | PHP | gpl2 | 1,371 |
<?php
require_once("boot.php");
require_once(GOBE_PATH_ENGINE . "Router.php");
require_once(GOBE_PATH_ENGINE . "Route.php");
require_once(GOBE_PATH_ENGINE . "Request.php");
echo "<pre>";
$router = Gobe_Router::getInstance();
$router->addRoute(array(
new Gobe_Route('`^/drinks/(\d+).*`i', '/drinks/?id=$1'),
... | zwf | trunk/html/gobe/tests/Request.php | PHP | gpl2 | 1,823 |
<?php
require_once("Parser/Abstract.php");
/**
* Mechanism for getting a Gobe page parser
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100205 (johnsonj)
* @package gobe.parser
*/
class Gobe_Parser {
static public function factory($type) {
require_once("Parser/$type.php");
$type =... | zwf | trunk/html/gobe/Parser.php | PHP | gpl2 | 371 |
<?php
/**
* Gobe 2: A complete rewrite of GOBE originally by Andrew Murphy <andrew.ap.murphy@gmail.com>.
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100303 (johnsonj)
*/
class Gobe {
private $request;
private $original_request;
private $modules;
private $scripts;
private $parser;
pri... | zwf | trunk/html/gobe/Gobe.php | PHP | gpl2 | 4,618 |
<?php
/**
* Mechanism for including and managing modules
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100209 (johnsonj)
* @package gobe.modules
*/
class Gobe_Modules {
private $modules;
private $include_helper;
public function __construct($directory=GOBE_PATH_MODULES) {
$this->m... | zwf | trunk/html/gobe/Modules.php | PHP | gpl2 | 2,148 |
<?php
/**
* Defines an generic abstraction for a pageparser. All page parsers used with GOBE should
* extend this abstraction.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100205 (johnsonj)
* @package gobe.parser.abstract
*/
abstract class Gobe_Parser_Abstract {
protected $engine;
... | zwf | trunk/html/gobe/Parser/Abstract.php | PHP | gpl2 | 1,210 |
<?php
require_once(GOBE_PATH_MODULES . "goat/goat.php");
/**
* Defines a facade to the GOAT parser that conforms to Gobe's parser requirements.
*
* @author Justin Johnson <justin@booleangate.org>
* @version 2.0.0 20100205 (johnsonj)
* @package gobe.parser.goat
*/
class Gobe_Parser_Goat extends Gobe_Parser_Abst... | zwf | trunk/html/gobe/Parser/Goat.php | PHP | gpl2 | 1,571 |
<?php
/**
* DTO to define a rewritable URL route
*
* @author Justin Johnson <justin@booleangate.org>
* @version 20100202 <johnsonj>
* @package gobe.route
*/
class Gobe_Route {
public $pattern;
public $rewrite;
public $status;
public $is_last;
public function __construct($pattern, $rewrite, $status=false,... | zwf | trunk/html/gobe/Route.php | PHP | gpl2 | 458 |
<?php
/**
* @author Justin Johnson <justin@booleangate.org>
* @version 20100209 johnsonj
* @package gobe.controller
*/
class Gobe_Controller {
public $gobe;
public $modules;
public $request;
public $scripts;
public $parser;
public $path;
public function __construct($path) {
$this->gobe = Gobe::getIns... | zwf | trunk/html/gobe/Controller.php | PHP | gpl2 | 1,155 |
<?php
include_gobe_module("web.aggregate"); | zwf | trunk/html/index.php | PHP | gpl2 | 44 |
<?php
include_gobe_module("web.analytics");
set_path('home' , SITE_BASEURL);
set_path('images' , PATH_IMAGES);
set_path('css' , PATH_CSS);
set_path('javascript', PATH_JAVASCRIPT);
/* Globally available variables */
add_gobe_variable('site-protocol', SITE_PROTOCOL);
Analytics::blockServer("... | zwf | trunk/html/cascade.php | PHP | gpl2 | 414 |
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _... | zwf | trunk/html/resources/templates/stubs/web/analytics/google.html | HTML | gpl2 | 392 |
<div class="entry">
<p>
[var body];
</p>
<p>Posted at <a href="[var url];">[var date];</a></p>
</div> | zwf | trunk/html/resources/templates/stubs/web/aggregate/twitter.html | HTML | gpl2 | 111 |
<div class="entry">
<h2><a href="[var url];">[var title];</a></h2>
<p>
[var body];
<a href="[var url];" class="nowrap">Read More »</a>
</p>
</div> | zwf | trunk/html/resources/templates/stubs/web/aggregate/default.html | HTML | gpl2 | 166 |
<multiform id="error-group-html">
<ul class="error-group">
%s
</ul>
</multiform>
<multiform id="error-item-html">
<li>%s
</multiform>
<multiform id="error-group-text">
%s
</multiform>
<multiform id="error-item-text">
%s
</multiform>
<multiform id="error-message">
%s
</multiform>
<multiform id="error-m... | zwf | trunk/html/resources/templates/stubs/errors.gform.html | HTML | gpl2 | 510 |
404! | zwf | trunk/html/resources/templates/errors/404.html | HTML | gpl2 | 4 |
500! | zwf | trunk/html/resources/templates/errors/500.html | HTML | gpl2 | 4 |
403! | zwf | trunk/html/resources/templates/errors/403.html | HTML | gpl2 | 4 |