$res = $globals->db->query("select alias from diogenes_site");
while(list($site) = mysql_fetch_row($res)) {
$page->info("processing '$site'..");
- $spool = new DiogenesSpool($page,$site);
+ $spool = new Diogenes_VCS_Spool($page,$site);
$page->info("-> deleting 'CVS' subdirectories from spool..");
$goners = System::find($spool->datadir.' -type d');
foreach($goners as $goner) {
chmod($modfile,0444);
}
}
- $globals->updateOption("rcs","DiogenesRcs");
+ $globals->updateOption("rcs","Diogenes_VCS_RCS");
break;
case "rcs-cvs":
$page->info("-> removing '{$globals->spoolroot}/$site'..");
System::rm("-r {$globals->spoolroot}/$site");
$page->info("-> doing a checkout of module '$site'..");
- $spool = new DiogenesCvs($page,$site,$_SESSION['session']->username,true);
+ $spool = new Diogenes_VCS_CVS($page,$site,$_SESSION['session']->username,true);
}
- $globals->updateOption("rcs","DiogenesCvs");
+ $globals->updateOption("rcs","Diogenes_VCS_CVS");
break;
}
$page->assign('msg_vcs',__("version control system"));
switch ($globals->rcs) {
-case "DiogenesRcs":
+case "Diogenes_VCS_RCS":
$page->assign('msg_current_vcs',__("You are currently using RCS as the version control system for your barrels."));
$page->append('conversions',array("rcs-cvs", __("You can switch to a full CVS repository by clicking here.")));
break;
-case "DiogenesCvs":
+case "Diogenes_VCS_CVS":
$page->assign('msg_current_vcs',__("You are currently using CVS as the version control system for your barrels."));
$page->append('conversions',array("cvs-rcs", __("You can switch back to RCS by clicking here.")));
break;
$this->flags = new flagset($flags);
$this->options = new Diogenes_Barrel_Options($this->alias);
- $this->spool = new DiogenesSpool($this,$this->alias);
+ $this->spool = new Diogenes_VCS_Spool($this,$this->alias);
$this->readTree();
}
/** This class handles Diogenes CVS operations.
*/
-class DiogenesCvs extends DiogenesRcs {
+class Diogenes_VCS_CVS extends Diogenes_VCS_RCS {
/** CVS command options */
var $cvsopt;
* @param login the current user's login
* @param init should create this module?
*/
- function DiogenesCvs(&$caller,$alias,$login,$init = false) {
+ function Diogenes_VCS_CVS(&$caller,$alias,$login,$init = false) {
global $globals;
// call parent constructor
- $this->DiogenesRcs($caller,$alias,$login,$init);
+ $this->Diogenes_VCS_RCS($caller,$alias,$login,$init);
// set CVS environment, fire up pserver
// the pserver suicides after 5mn of inactivity
/** The Word file containing a barrel page definition */
var $wordfile = "page.doc";
- /** The revision control system (DiogenesRcs or DiogenesCvs).
+ /** The revision control system (Diogenes_VCS_RCS or Diogenes_VCS_RCS).
* This can be set from the toplevel interface
*/
- var $rcs = "DiogenesRcs";
+ var $rcs = "Diogenes_VCS_RCS";
/** The class for display toplevel pages. */
var $toplevel = 'DiogenesToplevel';
/** The class for displaying sites. */
/** This class handles Diogenes RCS operations.
*/
-class DiogenesRcs extends DiogenesSpool {
+class Diogenes_VCS_RCS extends Diogenes_VCS_Spool {
/** Absolute directory location for the barrel's RCS files. */
var $rcsdir;
* @param login the current user's login
* @param init should create this module?
*/
- function DiogenesRcs(&$caller,$alias,$login,$init = false) {
+ function Diogenes_VCS_RCS(&$caller,$alias,$login,$init = false) {
global $globals;
- $this->DiogenesSpool($caller,$alias);
+ $this->Diogenes_VCS_Spool($caller,$alias);
$this->rcsdir = "{$globals->rcsroot}/$alias";
$this->login = $login;
/** This class handles Diogenes spool operations.
*/
-class DiogenesSpool {
+class Diogenes_VCS_Spool {
/** The barrel we are running on */
var $alias;
/** Absolute directory location for the barrel's spool. */
* @param caller the caller
* @param alias the alias to work on
*/
- function DiogenesSpool(&$caller,$alias) {
+ function Diogenes_VCS_Spool(&$caller,$alias) {
global $globals;
$this->datadir = "{$globals->spoolroot}/$alias";
$this->caller =& $caller;
*
* @param msg
*
- * @see DiogenesRcs
+ * @see Diogenes_VCS_RCS
*/
function info($msg) {
// we do nothing
*
* @param msg
*
- * @see DiogenesRcs
+ * @see Diogenes_VCS_RCS
*/
function kill($msg) {
$this->http_status("400 Error");
* @param action
* @param data
*
- * @see DiogenesRcs
+ * @see Diogenes_VCS_RCS
*/
function log($action,$data) {
if (isset($_SESSION['log']) && is_object($_SESSION['log']))