Code Spatter » CyTE http://codespatter.com Fri, 04 Sep 2009 14:59:15 +0000 http://wordpress.org/?v=2.8.4 en hourly 1 Web-Based Version Management http://codespatter.com/2008/02/15/web-based-version-management/ http://codespatter.com/2008/02/15/web-based-version-management/#comments Fri, 15 Feb 2008 20:55:14 +0000 Greg Allard http://codespatter.com/2008/02/15/web-based-version-management/ // = 0) { links[i].innerHTML = 'View Comments'; query += 'wpid' + i + '=' + encodeURIComponent(links[i].getAttribute('wpid')) + '&'; } } document.write(' This is an idea to help with CyTE, but I’d like to start seeing this idea applied to other web-based software as well. Having an interface to update the software easily and keep a revision history would help web-based apps become closer to desktop apps. Programs like Adobe Flash Player will check for updates periodically, [...] Related posts:
  1. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  2. CyTE Updates Moved We’ve set up a google code account since they offer...
  3. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
]]>
This is an idea to help with CyTE, but I’d like to start seeing this idea applied to other web-based software as well. Having an interface to update the software easily and keep a revision history would help web-based apps become closer to desktop apps. Programs like Adobe Flash Player will check for updates periodically, download them, and install them. It would be nice for web-based apps such as phpBB3 or CyTE to have similar possibilities.

The plan is to have a page in an admin section that will check the project’s svn repository (a tag like latest-stable will help). If there is something newer than the current version, it will check if any of the files have been modified locally (since it’s open source). If there are modifications it will predict whether there will be conflicts or not. There will be a button to update the code. Before it updates, a backup will be made. Rollback options will be provided for local backups and each revision in the repository will be able to be installed. This should provide maximum flexibility combined with ease of use. The biggest obstacle of this at the moment is there isn’t a package written in php that handles svn without needing required modules in php. Being able to use this on any server with php5 is the biggest requirement.

Related posts:

  1. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  2. CyTE Updates Moved We’ve set up a google code account since they offer...
  3. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
]]>
http://codespatter.com/2008/02/15/web-based-version-management/feed/ 2
CyTE Updates Moved http://codespatter.com/2007/10/24/cyte-updates-moving/ http://codespatter.com/2007/10/24/cyte-updates-moving/#comments Wed, 24 Oct 2007 15:32:38 +0000 Greg Allard http://codespatter.com/?p=14
  • CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  • CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
  • MTG:DB Updates I was looking at my google analytics account and saw...
  • ]]>
    We’ve set up a google code account since they offer awesomeness.

    Project Info: http://cyte.googlecode.com
    Subversion: http://cyte.googlecode.com/svn/trunk/
    Wiki: http://code.google.com/p/cyte/w/list
    Bugs: http://code.google.com/p/cyte/issues/list

    Related posts:

    1. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
    2. CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
    3. MTG:DB Updates I was looking at my google analytics account and saw...
    ]]>
    http://codespatter.com/2007/10/24/cyte-updates-moving/feed/ 0
    More CyTE Improvements http://codespatter.com/2007/08/10/more-cyte-improvements/ http://codespatter.com/2007/08/10/more-cyte-improvements/#comments Fri, 10 Aug 2007 19:08:43 +0000 Greg Allard http://codespatter.com/?p=15
  • CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
  • CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
  • CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  • ]]>
    In addition to the changes listed at http://dev.cyproject.net/ , I will be modifying the OpenID authorization to be more usable.
    The OpenID stuff packaged in the last release was just copied from http://tinyid.us when I was writing it for that.

    I will add another auth_routine that doesn’t require a database and will just use sessions like the ldap version without the database. To follow the naming trend that I used for the ldap routines, I will rename the current one to openid_with_db and the new one will be named openid.

    I will also set up a working example of using openid out of the box.

    Limitations

    I should probably note somewhere that this won’t work on all servers out of the box. I’ll list a few server requirements here and maybe include a readme.

    • Enable either the GMP extension or Bcmath extension. (GMP is STRONGLY recommended because it’s MUCH faster!)
    • Enable the CURL extension.

    Related posts:

    1. CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
    2. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
    3. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
    ]]>
    http://codespatter.com/2007/08/10/more-cyte-improvements/feed/ 10
    CyTE g9 Released http://codespatter.com/2007/08/07/cyte-g9-released/ http://codespatter.com/2007/08/07/cyte-g9-released/#comments Tue, 07 Aug 2007 05:36:15 +0000 Greg Allard http://codespatter.com/?p=16
  • CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
  • CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  • More CyTE Improvements In addition to the changes listed at http://dev.cyproject.net/ , I...
  • ]]>
    CyTE g9 is now available for download.
    See http://cyte.googlecode.com for all versions.

    Miscellaneous Changes

    • Added the include_files function to the utility functions. It will include all files in a directory. Used for including all files in the classes directory. (make sure dependencies are required in the class file since the order in which this function includes is … uhh … seemingly random.)
    • Files in /cyte/classes are now included automatically
    • Added singleton DB connection in the data_access class.
    • Added folder support in the keys folder so that keys may be organized. If there are multiple keys with the same name, the last one to be found will be used.
    • Added class_path to template conf array in config file.

    OpenID Stuff Added

    • Added OpenID auth routine
    • Added OpenID post handler that handles the initial post of the OpenID.
    • Added a way to grab an OpenID when being sent back from an OpenID provider to the abstract authorizer class.
    • Added functions to user.class.php for managing OpenID stuff.
    • Added some PEAR modules for OpenID authentication.
    • Added sample SQL for creating tables for OpenID management.

    Related posts:

    1. CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
    2. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
    3. More CyTE Improvements In addition to the changes listed at http://dev.cyproject.net/ , I...
    ]]>
    http://codespatter.com/2007/08/07/cyte-g9-released/feed/ 2
    CyTE g8 Available http://codespatter.com/2007/07/30/cyte-g8-available/ http://codespatter.com/2007/07/30/cyte-g8-available/#comments Mon, 30 Jul 2007 19:19:24 +0000 Greg Allard http://codespatter.com/?p=17
  • CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
  • CyTE Updates Moved We’ve set up a google code account since they offer...
  • CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
  • ]]>
    CyTE g8 is now available for download.

    See http://cyte.googlecode.com for all versions.

    Also check the change log if you are using an older version.

    Related posts:

    1. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
    2. CyTE Updates Moved We’ve set up a google code account since they offer...
    3. CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
    ]]>
    http://codespatter.com/2007/07/30/cyte-g8-available/feed/ 4
    CyTE g7 to CyTE g8 Change Log http://codespatter.com/2007/07/30/cyte-g7-to-cyte-g8-change-log/ http://codespatter.com/2007/07/30/cyte-g7-to-cyte-g8-change-log/#comments Mon, 30 Jul 2007 19:07:17 +0000 Greg Allard http://codespatter.com/?p=18
  • CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
  • CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
  • To Follow CyTE’s Authorization The page class has a variable called current_user which is...
  • ]]>
    General Changes
    • Error reporting is no longer set to E_ALL by default
    • Added functions js_script and js_msg to util.php

    Auth Changes

    • auth_level renamed to auth_requirement to avoid confusion
    • def_auth_lvl renamed to def_auth_req
    • ldap renamed to ldap_with_db
    • Stand alone LDAP auth class added named ldap
    • use_cookies option added to authorizer class (set to true by default in cyte config and auth constructor)

    Data Access Changes

    • Moved get_new_id from member variable to the options array so it may be changed per function call instead of per instantiation.
    • Get New Id section of create function works properly using the get_record function with values just inserted.
    • If a soft delete field is being used, the get_set and get_record functions will return only active records by default.
    • In get_record, the string ‘AND’ will be added in proper places when non-string and non-array values are passed to the requirements array.

    Related posts:

    1. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
    2. CyTE g8 Available CyTE g8 is now available for download. See http://cyte.googlecode.com for...
    3. To Follow CyTE’s Authorization The page class has a variable called current_user which is...
    ]]>
    http://codespatter.com/2007/07/30/cyte-g7-to-cyte-g8-change-log/feed/ 0
    To Follow CyTE’s Authorization http://codespatter.com/2007/06/04/to-follow-cytes-authorization/ http://codespatter.com/2007/06/04/to-follow-cytes-authorization/#comments Mon, 04 Jun 2007 19:16:31 +0000 Greg Allard http://codespatter.com/?p=6
  • CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
  • CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
  • More CyTE Improvements In addition to the changes listed at http://dev.cyproject.net/ , I...
  • ]]>
    The page class has a variable called current_user which is an object of (user) which extends visitor which extends data_access. Visitor has a variable called authorizer which is an object of (defauth) which extends authorizer.

    () = developer designed and the name is in the configuration file or passed to page.

    Page
    Has variable current_user which is an instance of (user) and passes to the constructor the routine, level, and parameters for the authorization.

    (user) extends visitor
    Has authorize, deauthorize, and meets_credentials functions. Authorize uses the authorizer and returns true or false based on the results. Deauthorize sets authorized to false. Meets_credentials will check a set of credentials against the values of the current user to see if they can perform some task without changing their login status.

    Visitor (abstract) extends data_access
    Has variable authorizer which is an instance of (defauth).

    data_access (abstract)

    (defauth) extends authorizer and is an auth routine
    Has a function check_auth which will check if the user is authorized.

    authorizer (abstract)
    Has a reference to the current user. Contains some heavily modified PEAR Auth code. May be rewritten completely soon when implementing LDAP control.

    Related posts:

    1. CyTE g7 to CyTE g8 Change Log General Changes Error reporting is no longer set to E_ALL...
    2. CyTE g9 Released CyTE g9 is now available for download. See http://cyte.googlecode.com for...
    3. More CyTE Improvements In addition to the changes listed at http://dev.cyproject.net/ , I...
    ]]>
    http://codespatter.com/2007/06/04/to-follow-cytes-authorization/feed/ 0