Skip to content

Commit

Permalink
admin UI for theme swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Feb 17, 2009
1 parent 6feb122 commit a79c3db
Show file tree
Hide file tree
Showing 532 changed files with 230 additions and 22 deletions.
12 changes: 8 additions & 4 deletions README
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Version 0.1, 1-Sep-2008

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


Version 0.3, 15-Feb-2009
admin, themes


REQUIREMENTS
Expand Down Expand Up @@ -123,14 +125,16 @@ Prety URL Requirements:
todo: add a test for this problem

To enable pretty URLs:

1) uncomment lines 65 & 66 in /db/boot.php

2) type your own base URL in /db/boot.php

3) set "RewriteEngine on" in .htaccess
3) copy the file /resource/prettyurls/.htaccess to the top level folder

4) set "RewriteEngine on" in .htaccess

4) type your own base URL in .htaccess
5) type your own base URL in .htaccess



Expand Down
Empty file modified app/auction/controllers/auction_bullets.php
100644 → 100755
Empty file.
Empty file modified app/auction/controllers/auction_photos.php
100644 → 100755
Empty file.
Empty file modified app/auction/controllers/auctions.php
100644 → 100755
Empty file.
Empty file modified app/auction/models/Auction.php
100644 → 100755
Empty file.
Empty file modified app/auction/models/AuctionBullet.php
100644 → 100755
Empty file.
Empty file modified app/auction/models/AuctionPhoto.php
100644 → 100755
Empty file.
Empty file modified app/auction/views/auction_bullets/_entry.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auction_bullets/_new.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auction_photos/_entry.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auction_photos/_new.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_edit.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_entry.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_index.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_list.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_nav.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_new.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/auctions/_show.html
100644 → 100755
Empty file.
Empty file modified app/auction/views/index.html
100644 → 100755
Empty file.
Empty file modified app/config/config.yml
100644 → 100755
Empty file.
Empty file modified app/identica/controllers/dents.php
100644 → 100755
Empty file.
Empty file modified app/identica/identica.php
100644 → 100755
Empty file.
Empty file modified app/identica/models/Dent.php
100644 → 100755
Empty file.
Empty file modified app/identica/plugins/identica.php
100644 → 100755
Empty file.
Empty file modified app/identica/views/dents/_edit.html
100644 → 100755
Empty file.
Empty file modified app/notifixious/models/notifix.php
100644 → 100755
Empty file.
55 changes: 55 additions & 0 deletions app/omb/controllers/admin.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
<?php

function _theme( &$vars ) {

extract( $vars );

$paths = array( $GLOBALS['PATH']['app'], 'wp-content/' );

$previews = array();
$themepaths = array();

$installedtheme = '';

foreach($paths as $loadpath) {

if (!empty($loadpath) && $handle = opendir($loadpath)) {

while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {
$subload = $loadpath.$file;
if (is_dir($subload) && ($file != '.svn') && !empty($subload) && $subhandle = opendir($subload)) {
while (false !== ($subfile = readdir($subhandle))) {
if ($subfile != '.' && $subfile != '..' && $subfile != ".svn") {
$subsub = $subload."/".$subfile;
if (is_dir($subsub) && ($subfile != '.svn') && !empty($subsub) && $subsubhandle = opendir($subsub)) {
while (false !== ( $subsubf = readdir($subsubhandle))) {
if ($subsubf == 'screenshot.png') {
$previews[$subfile] = $subsub.'/screenshot.png';
$Setting =& $db->model('Setting');
$tp = $Setting->find_by('name','config.env.themepath'.$subfile);
if ($tp)
$db->delete_record($tp);
$tp = $Setting->base();
$tp->set_value('name','config.env.themepath'.$subfile);
$tp->set_value('value',$subload);
$tp->save_changes();
}
}}
}}
closedir($subhandle);
}
}}
closedir($handle);
}

}



return vars(
array(
&$previews,
&$installedtheme
),
get_defined_vars()
);

}

function index( &$vars ) {
extract( $vars );
Expand Down
Empty file modified app/omb/controllers/categories.php
100644 → 100755
Empty file.
Empty file modified app/omb/controllers/groups.php
100644 → 100755
Empty file.
Empty file modified app/omb/controllers/identities.php
100644 → 100755
Empty file.
Empty file modified app/omb/controllers/index.php
100644 → 100755
Empty file.
17 changes: 15 additions & 2 deletions app/omb/controllers/settings.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,29 @@ function put( &$vars ) {

function post( &$vars ) {
extract( $vars );

if (!(get_profile_id()))
trigger_error( 'Sorry, the setting could not be saved', E_USER_ERROR );

$request->set_param( array( 'setting', 'profile_id' ), get_profile_id() );

$settingname = $request->params['setting']['name'];

$set = split('\.',$settingname);

if (is_array($set) && $set[0] == 'config') {
if (!member_of('administrators'))
trigger_error( 'Sorry, you must be an administrator to do that', E_USER_ERROR );
$s = $Setting->find_by( 'name', $settingname );
if ($s)
$db->delete_record($s);
}

if ($request->params['setting']['name'] == 'app') {
if ($settingname == 'app') {

$do_install = false;

$app = trim($request->params['setting']['value']);
$app = $settingname;

$sources = environment('remote_sources');
$remote_list = array();
Expand Down
Empty file modified app/omb/controllers/subscriptions.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Aggregate.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Category.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Entry.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Event.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Group.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Identity.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Link.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Membership.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Page.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Person.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Post.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Review.php
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions app/omb/models/Setting.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ function Setting() {
$this->let_modify( 'all:members' );
$this->let_delete( 'all:members' );

$this->let_access( 'all:administrators' );

$this->set_hidden();

}
Expand Down
Empty file modified app/omb/models/Subscription.php
100644 → 100755
Empty file.
Empty file modified app/omb/models/Upload.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/email_group.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/email_notice.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/omb.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/omb_notice.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/ping.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/renderer.php
100644 → 100755
Empty file.
56 changes: 55 additions & 1 deletion app/omb/plugins/security.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,63 @@ function normalize_url() {
//
}

function password_register( &$vars ) {

extract( $vars );

$Identity =& $db->get_table( 'identities' );
$Person =& $db->get_table( 'people' );

if (!($request->password == $request->password2))
trigger_error( "sorry the passwords do not match", E_USER_ERROR );

$i = $Identity->find_by(array(
'nickname'=>$request->nickname
),1);

$p = $Person->find( $i->person_id );

if ( isset( $p->id ) && $p->id != 0) {

trigger_error( "sorry that username is already taken", E_USER_ERROR );

} else {

// create new user and log them in
$p = $Person->base();
$p->save();
$i = $Identity->base();

$i->set_value( 'person_id', $p->id );
$i->set_value( 'label', 'profile 1' );
$i->set_value( 'nickname', $request->nickname );
$i->set_value( 'url', $request->base."".$request->nickname );
$i->set_value( 'password', md5($request->password) );
$i->save_changes();
$i->set_etag( $p->id );

$_SESSION['openid_complete'] = true;
set_cookie( $p->id );

if (!(empty($_SESSION['requested_url'])))
redirect_to( $_SESSION['requested_url'] );
else
redirect_to( $request->base );

}
}

function password_submit( &$vars ) {
extract($vars);
global $request;
$Identity =& $db->get_table( 'identities' );
$Person =& $db->get_table( 'people' );
$i = $Identity->find_by(array(
'nickname'=>$request->nickname,
'password'=>md5($request->password)
),1);
if (!$i)
trigger_error( "username or password incorrect, sorry", E_USER_ERROR );
$p = $Person->find( $i->person_id );
if ( isset( $p->id ) && $p->id != 0) {
$_SESSION['openid_complete'] = true;
Expand Down Expand Up @@ -553,7 +602,10 @@ function openid_logout( &$vars ) {
unset($_SESSION['requested_url']);
unset($_SESSION['openid_complete']);
unset($_SESSION['oid_return_to']);
redirect_to( environment('openid_server')."/?action=logout&return=".urlencode($request->base) );
if (environment('authentication') == 'password')
redirect_to( $request->base );
else
redirect_to( environment('openid_server')."/?action=logout&return=".urlencode($request->base) );
}

function email_login( &$vars ) {
Expand Down Expand Up @@ -696,6 +748,8 @@ function security_init() {
$request->connect( 'openid_submit' );

$request->connect( 'password_submit' );

$request->connect( 'password_register' );

$request->connect( 'openid_logout' );

Expand Down
Empty file modified app/omb/plugins/sessions.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/sms_notice.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/validation.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-XRDS-Simple.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-oauth/LICENSE
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-oauth/OAuth.php
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-oauth/plugin.php
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-openid/core.php
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-openid/logic.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-openid/readme.txt
100644 → 100755
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/omb/plugins/wp-plugins/plugins/enabled/wp-openid/store.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/wp-admin/includes/upgrade.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/wp-config.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/wp-includes/class-snoopy.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp-plugins/wp-includes/pluggable.php
100644 → 100755
Empty file.
Empty file modified app/omb/plugins/wp.php
100644 → 100755
Empty file.
Empty file modified app/omb/views/_doctype.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/_doctype.xhtml
100644 → 100755
Empty file.
7 changes: 2 additions & 5 deletions app/omb/views/_email.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@
</form>

<center>
<a href="">Forgotten your details?</a>
<br />
<br />
<br />
<a href="">Home</a>
<a href="">Forgot your password?</a>

</center>

</td>
Expand Down
Empty file modified app/omb/views/_entry.json
100644 → 100755
Empty file.
Empty file modified app/omb/views/_entry.xrds
100644 → 100755
Empty file.
Empty file modified app/omb/views/_index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/_index.json
100644 → 100755
Empty file.
Empty file modified app/omb/views/_index.rdf
100644 → 100755
Empty file.
Empty file modified app/omb/views/_index.rss
100644 → 100755
Empty file.
Empty file modified app/omb/views/_login.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/_mobile.html
100644 → 100755
Empty file.
18 changes: 9 additions & 9 deletions app/omb/views/_register.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<tr>
<td class="content">

<form name="login" action="<?php print $submit_url; ?>" method="post">
<form name="login" action="<?php url_for('password_register'); ?>" method="post">

<input name="method" value="password_submit" type="hidden" />
<input name="method" value="password_register" type="hidden" />

<input type="hidden" name="url" value="" />

<table cellpadding="5" cellspacing="0" border="0" align="center" width="500">
<tr>
<td height="40" align="center" colspan="2">Please enter your username and password below</td>
<td height="40" align="center" colspan="2">Create a new username and password:</td>
</tr>
<tr>
<td height="10" colspan="2"></td>
Expand All @@ -29,6 +29,10 @@
<td width="170" height="30" align="right">Password:</td>
<td><input type="password" maxlength="30" name="password" style="width: 180px;" /></td>
</tr>
<tr>
<td width="170" height="30" align="right">Password (again):</td>
<td><input type="password" maxlength="30" name="password2" style="width: 180px;" /></td>
</tr>
<tr height="30" style="display: none;">
<td>&nbsp;</td>
<td>
Expand All @@ -40,7 +44,7 @@
</tr>
<tr height="30">
<td>&nbsp;</td>
<td><input type="submit" name="submit" value="Login" style="width: 180px; font-size: 10px; text-transform: uppercase; color: #003366; border: 1px solid #336699; background-color: #DDDDDD; padding: 3px;" /></td>
<td><input type="submit" name="submit" value="Register" style="width: 180px; font-size: 10px; text-transform: uppercase; color: #003366; border: 1px solid #336699; background-color: #DDDDDD; padding: 3px;" /></td>
</tr>
<tr>
<td height="10" colspan="2"></td>
Expand All @@ -49,11 +53,7 @@
</form>

<center>
<a href="">Forgotten your details?</a>
<br />
<br />
<br />
<a href="">Home</a>
<a href="">Forgot your password?</a>
</center>

</td>
Expand Down
45 changes: 45 additions & 0 deletions app/omb/views/admin/_theme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

<form>
<?php foreach ( $previews as $pname=>$pimg ) : ?>



<p>
<img src="<?php echo $pimg; ?>" border="0" >
<?php echo $pname; ?>
<input name="<?php echo $pname; ?>" id="<?php echo $pname; ?>" type="checkbox" <?php if ($installedtheme == $pname) echo "checked"; ?>>
</p>



<script type="text/javascript">
$(document).ready(function(){
$("#<?php echo $pname; ?>").click(function(e){

var someurl = "<?php url_for(array(
'resource'=>'settings'
)); ?>";

var submitdata = {};

submitdata['setting[name]'] = 'config.env.theme';
submitdata['method'] = 'post';
submitdata['setting[value]'] = '<?php echo $pname; ?>';

if (!$("#<?php echo $pname; ?>").attr('checked')) {
return;
}

$.post(someurl, submitdata, function(str) {
alert(str);
});

});
});
</script>

<?php endforeach; ?>
</form>



11 changes: 11 additions & 0 deletions app/omb/views/admin/index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
<script type="text/javascript">
$(function() {
$("#tabs").tabs();
$("#tabs").click(function() {

var b = $("#tabs").tabs('option', 'selected');
if (b == 4) location.href='<?php base_url(); ?>';

});
});
</script>

Expand All @@ -29,6 +35,11 @@
'resource'=>'categories',
'action'=>'manage/partial'
)); ?>">Categories</a></li>

<li><a href="<?php url_for(array(
'resource'=>'admin',
'action'=>'theme/partial'
)); ?>">Themes</a></li>

<li><a href="<?php url_for(array(
'resource'=>'groups',
Expand Down
Empty file modified app/omb/views/admin/style.css
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_block.js
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_edit.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_manage.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/_remove.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/categories/index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/en_EN.php
100644 → 100755
Empty file.
Empty file modified app/omb/views/events/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/events/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/events/_index.ics
100644 → 100755
Empty file.
Empty file modified app/omb/views/groups/_edit.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/groups/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/groups/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/groups/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/groups/_remove.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_admin.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_apps.html
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion app/omb/views/identities/_edit.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2><?php if (isset($_SESSION['message'])) { echo $_SESSION['message']; unset($_
</tr>
<tr>
<td align="right"><b>License URL</b></td>
<td valign="top" align="left"><input size="50" maxlength="255" id="identity_license" name="identity[license]" type="text" value="<?php if (!empty($Member->license)) echo $Member->license; else echo 'http://creativecommons.org/licenses/BSD/'; ?>" /></td>
<td valign="top" align="left"><input size="50" maxlength="255" id="identity_license" name="identity[license]" type="text" value="<?php if (!empty($Member->license)) echo $Member->license; else echo 'http://creativecommons.org/licenses/by/3.0/'; ?>" /></td>
</tr>
<tr>
<td align="right"><b></b></td>
Expand Down
Empty file modified app/omb/views/identities/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_entry.rdf
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_entry.vcf
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_remove.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/identities/_subs.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/index.opml
100644 → 100755
Empty file.
Empty file modified app/omb/views/index.wml
100644 → 100755
Empty file.
Empty file modified app/omb/views/index.xhtml
100644 → 100755
Empty file.
Empty file modified app/omb/views/introspection/_block.js
100644 → 100755
Empty file.
Empty file modified app/omb/views/introspection/_index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/introspection/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/introspection/index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/links/_block.js
100644 → 100755
Empty file.
Empty file modified app/omb/views/links/_edit.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/links/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/links/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_block.js
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_edit.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_entry.wml
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_index.wml
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/pages/_remove.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_edit.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_entry.wml
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_index.atom
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_index.wml
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_new.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/posts/_remove.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/reviews/_entry.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/reviews/_index.html
100644 → 100755
Empty file.
Empty file modified app/omb/views/reviews/empty_star.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/omb/views/reviews/full_star.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/omb/views/style.css
100644 → 100755
Empty file.
Empty file modified app/omb/views/subscriptions/_remove.html
100644 → 100755
Empty file.
Empty file modified app/plugins/wp-plugins/wp-includes/pluggable.php
100644 → 100755
Empty file.
Empty file modified app/twitter/controllers/ak_twitter.php
100644 → 100755
Empty file.
Empty file modified app/twitter/models/AkTwitter.php
100644 → 100755
Empty file.
Empty file modified app/twitter/models/TwitterUser.php
100644 → 100755
Empty file.
Empty file modified app/twitter/plugins/twitter.php
100644 → 100755
Empty file.
Empty file modified app/twitter/twitter.php
100644 → 100755
Empty file.
Empty file modified app/twitter/views/ak_twitter/_edit.html
100644 → 100755
Empty file.
Empty file modified cache/.empty
100644 → 100755
Empty file.
Empty file modified db/.htaccess
100644 → 100755
Empty file.
27 changes: 27 additions & 0 deletions db/boot.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,33 @@
//$request->connect( 'migrate' );


/**
* load saved config
*/

$Setting =& $db->model('Setting');
$Setting->find_by(array(
'eq' => 'like',
'name' => 'config%'
));
while ($s = $Setting->MoveNext()) {
$set = split('\.',$s->name);
if (is_array($set) && $set[0] == 'config') {
if ($set[1] == 'env')
$env[$set[2]] = $s->value;
}
}

$wp_theme = "wp-content".DIRECTORY_SEPARATOR."themes".DIRECTORY_SEPARATOR.$env['theme'];

if ((file_exists($wp_theme))) {
$GLOBALS['PATH']['content_plugins'] = 'wp-content'.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR;
$GLOBALS['PATH']['themes'] = "wp-content".DIRECTORY_SEPARATOR."themes".DIRECTORY_SEPARATOR;
} else {
$GLOBALS['PATH']['themes'] = $env['themepath'.$env['theme']].DIRECTORY_SEPARATOR;
}


/**
* load plugins
*/
Expand Down
Empty file modified db/library/S3.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/_functions.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/aggregatefeed.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/bootloader.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/cache.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/collection.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/controller.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/cookie.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/database.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/genericiterator.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/mapper.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/model.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/mysql.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/pdo.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/postgresql.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/record.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/recordset.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/resource.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/resultiterator.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/route.php
100644 → 100755
Empty file.
Empty file modified db/library/dbscript/view.php
100644 → 100755
Empty file.
Empty file modified db/library/http_negotiate.php
100644 → 100755
Empty file.
Empty file modified db/library/ical_creator.php
100644 → 100755
Empty file.
Empty file modified db/library/inflector.php
100644 → 100755
Empty file.
Empty file modified db/library/json.php
100644 → 100755
Empty file.
Empty file modified db/library/logging.php
100644 → 100755
Empty file.
Empty file modified db/library/openid.php
100644 → 100755
Empty file.
Empty file modified db/library/opensearch.php
100644 → 100755
Empty file.
Empty file modified db/library/php_microformats.php
100644 → 100755
Empty file.
Empty file modified db/library/vcard.php
100644 → 100755
Empty file.
Empty file modified db/library/xmlobj.php
100644 → 100755
Empty file.
Empty file modified db/library/xmlstream.php
100644 → 100755
Empty file.
Empty file modified db/library/xmpp.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/ABOUT
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/FUNC.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/LICENSE
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/MAIL.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/MIME.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP4/FUNC4.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP4/MAIL4.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP4/MIME4.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP4/POP34.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP4/SMTP4.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP5/FUNC5.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP5/MAIL5.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP5/MIME5.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP5/POP35.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/PHP5/SMTP5.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/POP3.php
100644 → 100755
Empty file.
Empty file modified db/library/xpertmailer/SMTP.php
100644 → 100755
Empty file.
Empty file modified db/library/yaml.php
100644 → 100755
Empty file.
Empty file modified index.php
100644 → 100755
Empty file.
Empty file modified resource/AC_QuickTime.js
100644 → 100755
Empty file.
Empty file modified resource/block.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/blinklist.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/blogmarks.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/co.mments.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/delicious.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/delirious.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/digg.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/facebook.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/fark.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/furl.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/googlebookmark.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/live.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/magnolia.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/newsvine.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/pownce.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/propeller.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/reddit.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/scuttle.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/simpy.gif
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified resource/bookmark/sphinn.png
100644 → 100755

0 comments on commit a79c3db

Please sign in to comment.