Menu

Commit [r3]  Maximize  Restore  History

Initial migration from CVS

mindblender 2010-09-14

added /administration
added /administration/admin.php
added /administration/index.php
added /administration/listlogs.php
added /administration/mycompany.php
added /administration/phpinfo.php
added /administration/phpmyadmin.php
added /administration/phppgadmin.php
added /administration/support.php
added /administration/systeminfo.php
added /administration/updatedatabase.php
added /administration/updatesettings.php
/administration
Directory.
/administration/admin.php Diff Switch to side-by-side view
--- a
+++ b/administration/admin.php
@@ -0,0 +1,106 @@
+<?php
+/*
+** Application name: phpCollab
+** Last Edit page: 2003-10-23 
+** Path by root: ../administration/admin.php
+** Authors: Ceam / Fullo
+**
+** =============================================================================
+**
+**               phpCollab - Project Managment 
+**
+** -----------------------------------------------------------------------------
+** Please refer to license, copyright, and credits in README.TXT
+**
+** -----------------------------------------------------------------------------
+** FILE: admin.php
+**
+** DESC: Screen: ADMINISTRATION
+**
+** HISTORY:
+** 	2003-10-23	-	added new document info
+** -----------------------------------------------------------------------------
+** TO-DO:
+** 
+**
+** =============================================================================
+*/
+
+$checkSession = "true";
+include_once('../includes/library.php');
+$setTitle .= " : Administration";
+
+if ($profilSession != "0") 
+{
+	headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
+	exit;
+}
+
+include('../themes/'.THEME.'/header.php');
+
+$blockPage = new block();
+$blockPage->openBreadcrumbs();
+$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
+$blockPage->itemBreadcrumbs($strings["admin_intro"]);
+$blockPage->closeBreadcrumbs();
+
+if ($msg != "") 
+{
+	include('../includes/messages.php');
+	$blockPage->messagebox($msgLabel);
+}
+
+$block1 = new block();
+$block1->heading($strings["administration"]);
+
+$block1->openContent();
+$block1->contentTitle($strings["admin_intro"]);
+
+$block1->contentRow("",$blockPage->buildLink("../users/listusers.php?",$strings["user_management"],in));
+
+if ($enableInvoicing == "true") 
+{
+	$block1->contentRow("",$blockPage->buildLink("../services/listservices.php?",$strings["service_management"],in));
+}
+
+if ($supportType == "admin") 
+{
+	$block1->contentRow("",$blockPage->buildLink("../administration/support.php?",$strings["support_management"],in));
+}
+
+if ($databaseType == "mysql") 
+{
+	$block1->contentRow("",$blockPage->buildLink("../administration/phpmyadmin.php?",$strings["database"],in));
+}
+
+/* disabled
+if ($databaseType == "postgresql") 
+{
+	$block1->contentRow("",$blockPage->buildLink("../administration/phppgadmin.php?",$strings["database"],in));
+}
+*/
+
+$block1->contentRow("",$blockPage->buildLink("../administration/systeminfo.php?",$strings["system_information"],in));
+$block1->contentRow("",$blockPage->buildLink("../administration/mycompany.php?",$strings["company_details"],in));
+$block1->contentRow("",$blockPage->buildLink("../administration/listlogs.php?",$strings["logs"],in));
+$block1->contentRow($strings["update"].$blockPage->printHelp("admin_update"),"1. ".$blockPage->buildLink("../administration/updatesettings.php?",$strings["edit_settings"],in)." 2. ".$blockPage->buildLink("../administration/updatedatabase.php?",$strings["edit_database"],in));
+
+if ($updateChecker == "true" && $installationType == "online") 
+{
+	$block1->contentRow("",updatechecker($version));
+}
+
+if (file_exists("../installation/setup.php")) 
+{
+	$block1->contentRow("","<b>".$strings["attention"]."</b> : ".$strings["setup_erase"]);
+    if (is_writable("../setup.php"))
+        $block1->contentRow("","<a href='../installation/remove_files.php'>" . $strings["setup_erase_file"] . "</a>");
+    else 
+        $block1->contentRow("","<span style='color: #F00;font-weight:bold;'>" . $strings["setup_erase_file_ua"] . "</span>");
+        
+}
+
+$block1->closeContent();
+
+include('../themes/'.THEME.'/footer.php');
+?>
\ No newline at end of file
/administration/index.php Diff Switch to side-by-side view
--- a
+++ b/administration/index.php
@@ -0,0 +1,33 @@
+<?php
+/*
+** Application name: phpCollab
+** Last Edit page: 2003-10-23 
+** Path by root: ../administration/index.php
+** Authors: Ceam / Fullo
+**
+** =============================================================================
+**
+**               phpCollab - Project Managment 
+**
+** -----------------------------------------------------------------------------
+** Please refer to license, copyright, and credits in README.TXT
+**
+** -----------------------------------------------------------------------------
+** FILE: index.php
+**
+** DESC: Screen: ADMINISTRATION
+**
+** HISTORY:
+** 	2003-10-23	-	added new document info
+** -----------------------------------------------------------------------------
+** TO-DO:
+** 
+**
+** =============================================================================
+*/
+
+$checkSession = "false";
+include_once('../includes/library.php');
+headerFunction('../index.php?'.session_name().'='.session_id());
+exit;
+?>
\ No newline at end of file
/administration/listlogs.php Diff Switch to side-by-side view
--- a
+++ b/administration/listlogs.php
@@ -0,0 +1,104 @@
+<?php
+/*
+** Application name: phpCollab
+** Last Edit page: 2003-10-23 
+** Path by root: ../administration/listlogs.php
+** Authors: Ceam / Fullo
+**
+** =============================================================================
+**
+**               phpCollab - Project Managment 
+**
+** -----------------------------------------------------------------------------
+** Please refer to license, copyright, and credits in README.TXT
+**
+** -----------------------------------------------------------------------------
+** FILE: listlogs.php
+**
+** DESC: Screen: users log
+**
+** HISTORY:
+** 	2003-10-23	-	added new document info
+** -----------------------------------------------------------------------------
+** TO-DO:
+** 
+**
+** =============================================================================
+*/
+
+
+$checkSession = "true";
+include_once('../includes/library.php');
+
+if ($profilSession != "0") 
+{
+	headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
+	exit;
+}
+
+if ($action == "delete") 
+{
+	$tmpquery = "DELETE FROM ".$tableCollab["logs"];
+	connectSql("$tmpquery");
+}
+
+$setTitle .= " : Logs";
+
+include('../themes/'.THEME.'/header.php');
+
+$blockPage = new block();
+$blockPage->openBreadcrumbs();
+$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
+$blockPage->itemBreadcrumbs($strings["logs"]);
+$blockPage->closeBreadcrumbs();
+
+$block1 = new block();
+$block1->form = "adminD";
+$block1->openForm("../administration/listlogs.php?action=delete&".session_name()."=".session_id()."&id=$id#".$block1->form."Anchor");
+$block1->heading($strings["logs"]);
+$block1->openResults($checkbox="false");
+$block1->labels($labels = array(0=>$strings["user_name"],1=>$strings["ip"],2=>$strings["session"],3=>$strings["compteur"],4=>$strings["last_visit"],5=>$strings["connected"]),"false",$sorting="false",$sortingOff = array(0=>"4",1=>"DESC"));
+
+$tmpquery = "ORDER BY last_visite DESC";
+
+$listLogs = new request();
+$listLogs->openLogs($tmpquery);
+$comptListLogs = count($listLogs->log_id);
+
+$dateunix=date("U");
+
+for ($i=0;$i<$comptListLogs;$i++) 
+{
+	$block1->openRow();
+	$block1->checkboxRow($listLogs->log_id[$i],$checkbox="false");
+	$block1->cellRow($listLogs->log_login[$i]);
+	$block1->cellRow($listLogs->log_ip[$i]);
+	$block1->cellRow($listLogs->log_session[$i]);
+	$block1->cellRow($listLogs->log_compt[$i]);
+	$block1->cellRow(createDate($listLogs->log_last_visite[$i],$timezoneSession));
+	
+	if ($listLogs->log_mem_profil[$i] == "3") 
+	{
+		$z = "(Client on project site)";
+	} 
+	else 
+	{
+		$z = "";
+	}
+
+	if ($listLogs->log_connected[$i] > $dateunix-5*60) 
+	{
+		$block1->cellRow($strings["yes"]." ".$z);
+	} 
+	else 
+	{
+		$block1->cellRow($strings["no"]);
+	}
+
+	$block1->closeRow();
+}
+
+$block1->closeResults();
+
+include('../themes/'.THEME.'/footer.php');
+?>
\ No newline at end of file
/administration/mycompany.php Diff Switch to side-by-side view
Loading...
/administration/phpinfo.php Diff Switch to side-by-side view
Loading...
/administration/phpmyadmin.php Diff Switch to side-by-side view
Loading...
/administration/phppgadmin.php Diff Switch to side-by-side view
Loading...
/administration/support.php Diff Switch to side-by-side view
Loading...
/administration/systeminfo.php Diff Switch to side-by-side view
Loading...
/administration/updatedatabase.php Diff Switch to side-by-side view
Loading...
/administration/updatesettings.php Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.