Skip to content

Commit

Permalink
twitter app 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Oct 10, 2008
1 parent 751a994 commit cd6df11
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 102 deletions.
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Author
Version 0.1, 1-Sep-2008
initial release

Version 0.2, 10-Oct-2008
sms, app store



Expand Down
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ env:
debug_enabled: true

apps:
- omb
- twitter

plugins:
- sessions
Expand Down
14 changes: 9 additions & 5 deletions app/controllers/identities.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ function _remove( &$vars ) {

function app_installer_json( &$vars ) {
extract($vars);
lib_include( 'json' );
if (!(class_exists('Services_JSON')))
lib_include( 'json' );
$json = new Services_JSON();
$apps_list = array();

Expand Down Expand Up @@ -375,14 +376,17 @@ function app_installer_json( &$vars ) {

function installed_apps_json( &$vars ) {
extract($vars);
lib_include( 'json' );
if (!(class_exists('Services_JSON')))
lib_include( 'json' );
$json = new Services_JSON();
$apps_list = array();
$i = $Identity->find(get_profile_id());
while ($s = $i->NextChild('settings')){
$s = $Setting->find($s->id);
$e = $s->FirstChild('entries');
$apps_list[$e->etag] = $s->value;
if ($s->name == 'app') {
$s = $Setting->find($s->id);
$e = $s->FirstChild('entries');
$apps_list[$e->etag] = $s->value;
}
}

header( "Content-Type: application/javascript" );
Expand Down
4 changes: 3 additions & 1 deletion app/models/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function Setting() {

$this->has_one( 'entry' );

$this->let_access( 'all:everyone' );
$this->let_create( 'all:members' );
$this->let_modify( 'all:members' );
$this->let_delete( 'all:members' );

$this->set_hidden();

Expand Down
1 change: 0 additions & 1 deletion app/plugins/ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ function send_ping( &$model, &$rec ) {

}

?>
2 changes: 1 addition & 1 deletion app/plugins/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* dbscript -- restful openid framework
* @version 0.6.0 -- 2-October-2008
* @version 0.6.0 -- 10-October-2008
* @author Brian Hendrickson <brian@dbscript.net>
* @link http://dbscript.net/
* @copyright Copyright 2008 Brian Hendrickson
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* dbscript -- restful openid framework
* @version 0.6.0 -- 2-October-2008
* @version 0.6.0 -- 10-October-2008
* @author Brian Hendrickson <brian@dbscript.net>
* @link http://dbscript.net/
* @copyright Copyright 2008 Brian Hendrickson
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* dbscript -- restful openid framework
* @version 0.6.0 -- 2-October-2008
* @version 0.6.0 -- 10-October-2008
* @author Brian Hendrickson <brian@dbscript.net>
* @link http://dbscript.net/
* @copyright Copyright 2008 Brian Hendrickson
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* dbscript -- restful openid framework
* @version 0.6.0 -- 2-October-2008
* @version 0.6.0 -- 10-October-2008
* @author Brian Hendrickson <brian@dbscript.net>
* @link http://dbscript.net/
* @copyright Copyright 2008 Brian Hendrickson
Expand Down
3 changes: 1 addition & 2 deletions app/plugins/wp-plugins/plugins/enabled/wp-oauth/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ function oauth_accept() {
$services = get_option('oauth_services');
$services['Post Comments'] = array('wp-comments-post.php');
$services['Edit and Create Entries and Categories'] = array('wp-app.php');
update_option('oauth_services', $services);


$store = new OAuthWordpressStore();

global $request,$omb_routes;
Expand Down
1 change: 1 addition & 0 deletions app/plugins/wp-plugins/wp-config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php
define('ABSPATH', dirname(__FILE__).'/');
define('WPINC', 'wp-includes');
?>

0 comments on commit cd6df11

Please sign in to comment.