#--- BEGIN:_readme.txt---
Tere!

NB! Need failid mis siin kaustas on on ainult näitefailid!
Failide koode kuvatakse print_src.php faili abil.

Antud koond väljundit on võimalik kasutada koodi printimiseks või PDF dokumenti salvestamiseks.
Antud rakendus sobib ka versiooni muudadus(t)e fikseerimiseks.


Hello!

NB! The files in this folder are just example files!
The file codes are displayed using the print_src.php file.

This complete output can be used to print a code or save a PDF.
This script is also suitable for fixing the version change (s).


&IT.ee
#----- END:_readme.txt---


#--- BEGIN:divesite.php---
<?php
/**
 * Filename: divesite.php
 * Function: This file shows a list of dive sites, or the details for a dive site,
 * for phpDivingLog.
 * @author  Lloyd Borrett - www.borrett.id.au Rob Lensen <rob@bsdfreaks.nl>
 * @package phpdivinglog
 * @version $Rev: 172 $
 * Last Modified: $Date: 2007-11-30 15:17:52 +0100 (Fri, 30 Nov 2007) $
 * 
 * @copyright (C) 2006 Lloyd Borrett - http://www.borrett.id.au
 * 
 * Adapted from code by Olaf van Zandwijk - http://enschede.vanzandwijk.net
 * 
 * For use with Diving Log by Sven Knoch - http://www.divinglog.de

*/

exit;
$config_file "./config.inc.php";
// require_newer ($config_file);

$request = new HandleRequest();
$request->set_request_uri($_SERVER['REQUEST_URI']);
$request->set_file_depth(0);
$request->handle_url();

$links = new TopLevelMenu($request);

$divesite = new Divesite();
$divesite->set_divesite_info($request);
$result $divesite->get_divesite_info();
global 
$_config;

if(
$divesite->get_request_type() == 1){

    
$t->assign('divesite_id',$divesite->divesite_nr);
    
/**
     * Get the page header 
     */
    
$pagetitle $_lang['dive_site_pagetitle'].$result[0]['Place'];
    
$t->assign('pagetitle',$pagetitle);
    
$t->assign('colspanlinks','4');

    
$links->get_std_links();
    
$links->get_nav_links($request);
    
//print_r($divesite);

    
$divesite->set_main_divesite_details();
    
$divesite->set_dives_at_location();
    
$divesite->set_divesite_comments();

} elseif(
$divesite->get_request_type() == 0) {
    
$links->get_ovv_links();
    
$divesite->get_divesite_overview();
    
/**
     * Get the page header
     */
    
$pagetitle $_lang['dive_sites'];
    
$t->assign('pagetitle',$pagetitle);
    
/*
       if ($_config['length']) {
       $MaxDepth = MetreToFeet($locationlist[$i]['MaxDepth'], 0) ."&nbsp;". $_lang['unit_length_short_imp'];
       } else {
       $MaxDepth = $locationlist[$i]['MaxDepth'] ."&nbsp;". $_lang['unit_length_short'] ;
       }
     */
} elseif($divesite->get_request_type() == 3){
    
$divesite->get_overview_divers();
} else {
    echo 
"strange...";
}

$t->assign('base_page','divesite.php');
$t->assign('colspanlinks','4');
$t->display('divesite.tpl');
?>
#----- END:divesite.php---


#--- BEGIN:divesummary.php---
<?php
/**
 * Filename: divesummary.php
 * Function: This file displays some short details from phpDivingLog.
 * Version:  phpDivingLog v1.9 2007-03-07
 * @author  Lloyd Borrett - www.borrett.id.au Rob Lensen <rob@bsdfreaks.nl>
 * @package phpdivinglog
 * @version $Rev: 179 $
 * Last Modified: $date$
 * 
 * @copyright (C) 2006 Lloyd Borrett - http://www.borrett.id.au
 * 
 * Adapted from code by Olaf van Zandwijk - http://enschede.vanzandwijk.net
 * 
 * For use with Diving Log by Sven Knoch - http://www.divinglog.de

*/
exit;
$config_file "./config.inc.php";
// require_newer ($config_file);

/**
 * Dive Statistics
 */
$request = new HandleRequest();
$request->set_request_uri($_SERVER['REQUEST_URI']);
$request->set_file_depth(0);
$request->handle_url();
$links = new TopLevelMenu($request);

/**
 * Create a new class Divestats with info from the HandleRequest class 
 */
$divestats = new Divestats();
$divestats->set_divestats_info($request);
$result $divestats->get_divestats_info();
$divestats->get_lastdive_info();

global 
$_config;

if(
$request->get_multiuser()){
    
$user_id $request->get_user_id();
    if(!empty(
$user_id)){
        
$links->get_ovv_links();
        
// Get the page header
        // Dive Statistics
        
$divestats->set_all_statistics();
        
$divestats->set_lastdive_info();
        
$user = new User();
        
$user->set_user_id($request->get_user_id());
        
$ver = new AppInfo($request);
        
$ver->SetAppInfo();
   } else {
        
$t->assign('no_id',1);
    }
} else {
    
// Display the Dive List
    
$links->get_ovv_links();
    
// Get the page header
    // Dive Statistics
    
$divestats->set_all_statistics();
    
$divestats->set_lastdive_info();
    
$ver = new AppInfo($request);
    
$ver->SetAppInfo();
}

$t->display('divesummary.tpl');
?>
#----- END:divesummary.php---


#--- BEGIN:drawpiechart.php---
<?php
/**
 * Filename:  drawpiechart..php
 * Function:  Draws a pie chart at the divestats page.
 * @author  Rob Lensen <rob@bsdfreaks.nl>
 * @package phpdivinglog
 * @version $Rev: 192 $
 * Last Modified: $Date: 2008-03-28 09:32:36 +0100 (Fri, 28 Mar 2008) $
 * @copyright (C) 2006 Lloyd Borrett - http://www.borrett.id.au
 * 
 * Adapted from code by Olaf van Zandwijk - http://enschede.vanzandwijk.net
 * 
 * For use with Diving Log by Sven Knoch - http://www.divinglog.de
 *
*/

exit;
// require_never './config.inc.php';
if(version_compare("5.1"PHP_VERSION"<")){
//    require_never 'includes/jpgraph2/src/jpgraph_pie.php';
} else {
//    require_never 'includes/jpgraph/src/jpgraph_pie.php';
}

global 
$_config$_lang;
$request = new HandleRequest();
$request->set_request_uri($_SERVER['REQUEST_URI']);
$request->set_file_depth(0);
$request->handle_url();

$divestats = new Divestats();
$divestats->set_divestats_info($request);
$result $divestats->get_divestats_info();
if(
$request->get_multiuser()){
    
//get the prefix for a user_id
    
$user = new User;
    
$user->set_user_id($request->get_user_id());
    
set_config_table_prefix($user->get_table_prefix());
} else {

}
reset_config_table_prefix();

//print_r($divestats);
$data =
array(
$divestats->depthrange1_per,$divestats->depthrange2_per,$divestats->depthrange3_per,$divestats->depthrange4_per,$divestats->depthrange5_per);

$graph = new PieGraph(650,200,"auto");
$graph->SetShadow();
;
//$graph->title->Set("A simple Pie plot");
$graph->SetFrame(false);
$p1 = new PiePlot($data);
//$legends = array('April (%d)','May (%d)','June (%d)');
$legends = array(   
$_config['length'] ? backhtmlentities($_lang['stats_depth1i']) : backhtmlentities($_lang['stats_depth1m']) . $divestats->depthrange[0].' (%d%%)',
$_config['length'] ? backhtmlentities($_lang['stats_depth2i']) : backhtmlentities($_lang['stats_depth2m']) . $divestats->depthrange[1].' (%d%%)' ,
$_config['length'] ? backhtmlentities($_lang['stats_depth3i']) : backhtmlentities($_lang['stats_depth3m']) . $divestats->depthrange[2].' (%d%%)',
$_config['length'] ? backhtmlentities($_lang['stats_depth4i']) : backhtmlentities($_lang['stats_depth4m']) . $divestats->depthrange[3].' (%d%%)',
$_config['length'] ? backhtmlentities($_lang['stats_depth5i']) : backhtmlentities($_lang['stats_depth5m']) . $divestats->depthrange[4].' (%d%%)'                        
                        
);
$p1->SetLegends($legends);
//$p1->SetSliceColors(array('cadetblue1', 'lightskyblue3','skyblue3','dodgerblue','dodgerblue4'));
$p1->SetTheme('water');
$graph->legend->SetFont(FF_VERDANAFS_NORMAL8);
$graph->legend->SetShadow(false);
$graph->Add($p1);
$graph->Stroke();
?>
#----- END:drawpiechart.php---


#--- BEGIN:equipment.php---
<?php
/** 
 * Filename: equipment.php
 * Function: This file shows a list of dive equipment, or the details for a
 * piece of equipment, for phpDivingLog.
 * @author  Lloyd Borrett - www.borrett.id.au Rob Lensen <rob@bsdfreaks.nl>
 * @package phpdivinglog
 * @version $Rev: 172 $
 * Last Modified: $Date: 2007-11-30 15:17:52 +0100 (Fri, 30 Nov 2007) $
 * 
 * @copyright (C) 2006 Lloyd Borrett - http://www.borrett.id.au
 * 
 * Adapted from code by Olaf van Zandwijk - http://enschede.vanzandwijk.net
 * 
 * For use with Diving Log by Sven Knoch - http://www.divinglog.de
 * 
*/
exit;

$config_file "./config.inc.php";
// require_once ($config_file);

$request = new HandleRequest();
$request->set_request_uri($_SERVER['REQUEST_URI']);
$request->set_file_depth(0);
$request->handle_url();

$links = new TopLevelMenu($request);

$equipment = new Equipment();
$equipment->set_equipment_info($request);
$result $equipment->get_equipment_info();
global 
$_config;
if(
$equipment->get_request_type() == 1){
    
$t->assign('equipment_id'$equipment->get_equipment_nr());
    
$links->get_std_links();
    
$links->get_nav_links($request );

    
$pagetitle $_lang['equip_details_pagetitle'].$result[0]['Object'];
    
$t->assign('pagetitle',$pagetitle);
//    First, Previous, Next, Last links and Dive #
    
$t->assign('colspanlinks','4');
    
//    Show main dive details
    
$equipment->set_main_equipment_details();
    
// Comments
    
$equipment->set_comments();

} elseif( 
$equipment->get_request_type() == 0){
    
$links->get_ovv_links();
    
$equipment->get_equipment_overview();

} elseif(
$equipment->get_request_type() == 3){
    
$equipment->get_overview_divers();
}
else {
echo 
"strange...";

}

$t->assign('base_page','equipment.php');
$t->display('equipment.tpl');
?>
#----- END:equipment.php---


#--- BEGIN:mainconf.php---
<?php

/*
   Main configuration file
   written by Pierluigi Pretara (pretaz@users.sourceforge.net) under GPL license 
   english version by Pierluigi Pretara (pretaz@users.sourceforge.net)
   copyright 2002-2003 by Pierluigi Pretara
*/

  
$SDRNAME  '<b>Si</b>mple<br><b>Logbook</b>'// Change this to customize SiLogbook
  
$SDRTITLE 'Simple Logbook'// Change this to customize SiLogbook

  
$SDRPATH '..'// Change this to enhance security
  
$SDRDAT  'silogbook.dat';
  
$SDRCSS  '../silogbook3.css';
  
$SDRVER  'SiLogbook 0.4.0<br>&copy; 2002-2003 <a href="mailto:pretaz@users.sourceforge.net">Pierluigi Pretara</a>';

/*
   Change $SDRPATH to a path which is not in the Web's pubblic space.
   If you change $SDRPATH move to the new path the following directories:
   ../docs
   ../revs
   In case move also the ../logbook.dat file.
*/ 
 
?>
#----- END:mainconf.php---



#--- BEGIN:silogbook.sql---
# --------------------------------------------------------
#
# SiLogbook version 0.4.0
#

# --------------------------------------------------------
#
# Table structure for table 'dmmime';
#

DROP TABLE IF EXISTS dmmime;
CREATE TABLE dmmime
(
  id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  mtype VARCHAR(255) NOT NULL,
  mcomm VARCHAR(255) NOT NULL,
  imgname VARCHAR(255) DEFAULT '' NOT NULL,
  PRIMARY KEY (id)
);

#
# id - MIME type ID;
# mtype - MIME type;
# mcomm - MIME type description;
#

#
# Dumping default data for table 'dmmime'
#

INSERT INTO dmmime (mtype,mcomm) VALUES ('application/pdf','PDF File');
INSERT INTO dmmime (mtype,mcomm) VALUES ('application/x-zip','ZIP File');
INSERT INTO dmmime (mtype,mcomm) VALUES ('image/gif','GIF Image');
INSERT INTO dmmime (mtype,mcomm) VALUES ('image/jpeg','JPEG Image');
INSERT INTO dmmime (mtype,mcomm) VALUES ('image/pjpeg','PJPEG Image');
INSERT INTO dmmime (mtype,mcomm) VALUES ('image/png','PNG Image');
INSERT INTO dmmime (mtype,mcomm) VALUES ('text/html','HTML Text');
INSERT INTO dmmime (mtype,mcomm) VALUES ('text/plain','Plain Text');

# --------------------------------------------------------
#
# Table structure for table 'lbnotes';
#

DROP TABLE IF EXISTS lbnotes;
CREATE TABLE lbnotes
(
  id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  subject VARCHAR(255) DEFAULT '' NOT NULL,
  category SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  dgroup SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  downer SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  created DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL,
  docname VARCHAR(255) DEFAULT '' NOT NULL,
  doctype SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  formid SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  note LONGTEXT DEFAULT '' NOT NULL,
  PRIMARY KEY (id)
);

#
# id - Document ID;
# category - Category ID, from "dmcat" table;
# dgroup - Group ID, from "dmgroup" table;
# downer - Owner's user ID, from "dmuser" table;
# realname - The original name of the file, * = new document awaiting for first check in;
# created - Date on which file was first checked in;
# description - Description of contents;
# status - Check in/out status, from "dmuser" table; 0 = available, User ID = user document is checked out to;
# docver - Document version;
# doctype - Document MIME type, from "dmmime" table;
# docpos - Position ID, from "dmpos" table;
# docwf - Workflow ID of next action, from "dmwflow" table; 0 = no workflow;
# wfid - Workflow ID of current action, from "dmwflow" table; 0 = no workflow;
# comment - Author's note;
#

# --------------------------------------------------------
#
# Table structure for table 'lbindex';
#

DROP TABLE IF EXISTS lbindex;
CREATE TABLE lbindex
(
  id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  noteid INT(4) UNSIGNED DEFAULT '0' NOT NULL,
  subject VARCHAR(255) DEFAULT '' NOT NULL,
  category SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  dgroup SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  PRIMARY KEY (id)
);

#
# id - Revision ID;
# docid - Document ID, from "lbnotes" table;
# modified - Date of revision;
# duser - ID of user modifying file;
# revname - The original name of the file;
# revver - Document version;
# revtype - Document MIME type, from "dmmime" table;
# wfid - Workflow ID, from "dmwflow" table;
# note - Description of modification;
#

# --------------------------------------------------------
#
# Table structure for table 'lbforms';
#

DROP TABLE IF EXISTS lbforms;
CREATE TABLE lbforms
(
  id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  description VARCHAR(255) DEFAULT '' NOT NULL,
  formname VARCHAR(255) NOT NULL,
  PRIMARY KEY (id)
);

#
# docid - Document ID, from "lbnotes" table;
# wfid - Workflow ID, from "dmwflow" table;
# uid - User ID, from "dmuser" table;
# status - '0' = not checked, '1' = approved, '2' = not approved;
#

# --------------------------------------------------------
#
# Table structure for table 'lboptions';
#

DROP TABLE IF EXISTS lboptions;
CREATE TABLE lboptions
(
  id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  formid INT(4) UNSIGNED DEFAULT '0' NOT NULL,
  optsid VARCHAR(255) DEFAULT '' NOT NULL,
  optext VARCHAR(255) DEFAULT '' NOT NULL,
  PRIMARY KEY (id)
);
#----- END:silogbook.sql---


#--- BEGIN:silogbook3.css---
body
{
    font-family: Helvetica,Arial,sans-serif;
    font-size: medium;
        background-color: #fcfcfc;
    text-align: center;
}
table.topmenu
{
    width: 100%;
    padding: 0;
    margin: 0;
    border-spacing: 0;
    border-style: none;
}
tr.topmenu
{
}
td.topmleft
{
    width: 80px;
    vertical-align: center;
}
td.topmtitle
{
    vertical-align: center;
}
td.topmcenter
{
    vertical-align: center;
    text-align: right;
    right: 0;
}
td.topmright
{
    width: 65px;
    vertical-align: center;
    text-align: center; 
    font-size: x-small;
}
table.topmitems
{
    text-align: right;
    right: 0;
    padding: 2px;
    margin: 0;
    border-spacing: 0;
    border-style: none;
}
tr.topmitems
{
    vertical-align: bottom;
}
td.topmitems
{
    vertical-align: bottom;
    text-align: center;  
    font-size: x-small;
}
table.topbanner
{
    width: 100%;
    padding: 0;
    margin: 0;
    border-style: none;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}
tr.topbanner
{
}
td.topbleft
{
    font-weight: bold; 
    color: #606060;
}
td.topbright
{
    font-size: small;
    text-align: right;
    color: #a0a0a0;
}
table.maintable
{
    width: 100%;
    padding: 0;
    margin: 0;
    border-spacing: 0;
    border-style: none;
}
tr.maintable
{
    vertical-align: top;
}
td.maintleft
{
    width: 12%;      
        background-color: #f8f8f8;
    border-color: #f8f8f8;
    text-align: center;
    font-size: x-small;
}
td.maintcenter
{
    text-align: center;
        background-color: #f4f4f4;
    border-color: #f4f4f4;
}
table.centertable
{
    width: 100%;
    padding: 0;
    margin: 0;
    border-spacing: 0;   
    border-style: solid;  
    border-width: thin;
}
tr.centertable
{
    vertical-align: top;
}
td.mtabcenter
{
    text-align: center;
    padding: 0;
    font-size: medium;
    border-style: none;
    margin: 0;
}
td.mtableft
{
    width: 25%;
    text-align: right;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    padding: 2px;
    font-size: medium;
    color: #606060;
    border-style: none;
    margin: 0;
}
td.stableft
{
    width: 25%;
    text-align: right;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    padding: 2px;
    font-size: small;
    color: #a0a0a0;
    border-style: none;
    margin: 0;
}
td.mtabright
{
    background-color: #f4f4f4;
    border-color: #f4f4f4;
    border-style: none;
    font-size: medium;
        color: #333333;
    padding: 2px;
    margin: 0;
}
td.stabright
{
    background-color: #f4f4f4;
    border-color: #f4f4f4;
    border-style: none;
    font-size: small;
        color: #333333;
    padding: 2px;
    margin: 0;
}
td.maintright
{
    width: 12%;       
        background-color: #f8f8f8;
    border-color: #f8f8f8;
    text-align: center;
    font-size: x-small;
}
table.conftab
{
    padding: 2px;
    margin: 0;
    border-spacing: 2px;
    border-style: none;
    font-size: small;
}
tr.conftab
{
    vertical-align: bottom;
}
td.conftab
{
    text-align: center;
}
p.message
{
    font-weight: bold;
    text-align: center;
}     
p.mesdet
{
    font-size: small;
    text-align: center;
}
p.error
{
    color: #FF0000;
    font-weight: bold;
    text-align: center;
}
p.errdet
{
    font-size: small;
    text-align: center;
}
p.guideline
{
    font-size: small;
    text-align: left;
        padding: 5px 5px 5px 5px;
}
p.scheckin
{
    color: #006600;
}
p.mcheckin
{
    color: #006600;
    font-size: small;
}
p.scheckout
{
    color: #A00000;
}
p.mcheckout
{
    color: #A00000;
    font-size: small;
}  
p.sworklist
{
    color: #0000A0;
}
p.mworklist
{
    color: #0000A0;
    font-size: small;
}
table.pritable
{
    width: 100%;
    padding: 2;
    margin: 0;
    border-style: none;
}
tr.pritable
{
    font-size: small;
}
th.pritable
{
    text-align: left;
}
td.pritable
{
}
table.botbanner
{
    width: 100%;
    padding: 0;
    margin: 0;
    border-style: none;
    background-color: #f4f4f4;
    border-color: #f4f4f4;
        color: #333333;
}
tr.botbanner
{
}
td.botbleft
{
}
td.botbright
{
    font-size: small;
    text-align: right;
}
p.botbanner
{
    font-size: x-small;
    text-align: center;
}
p.index
{
    text-align: center;
}
p.standard
{
    text-align: justify;
}
p.noteid
{
    font-size: small;
    color: #606060;
}
p.notesubject
{
    font-size: small;
        font-weight: bold;
        color: #000000;
        padding: 5px 5px 5px 5px;
}
p.noteowner
{
    font-size: small;
}
p.note
{
    font-size: small;
    text-align: left;
        padding: 5px 5px 5px 5px;
}
table.note
{
    padding: 0;
    margin: 0;
    border-spacing: 0;   
    border-style: solid;  
    border-width: thin;
}
tr.note
{
    vertical-align: top; 
}
th.note
{
    text-align: right;
    background-color: #606060;
    color: #f4f4f4;
    padding: 2px;
    font-size: medium;
    margin: 0;
}
td.note
{                          
    background-color: #e0e0e0;
    color: #606060;
    font-size: medium;
    padding: 2px;
    margin: 0;      
}
#----- END:silogbook3.css---


#--- BEGIN:simple.sql---
# --------------------------------------------------------
#
# Simple version 0.4.0
#

# --------------------------------------------------------
#
# Table structure for table 'dmuser';
#

DROP TABLE IF EXISTS dmuser;
CREATE TABLE dmuser
(
  id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  username VARCHAR(25) NOT NULL,
  password VARCHAR(50) NOT NULL,
  fullname VARCHAR(80) NOT NULL,
  PRIMARY KEY (id)
);

#
# id - User ID;
# username - User name;
# password - Password;
# fullname - Full name;
#

#
# Dumping default data for table 'dmuser';
#

INSERT INTO dmuser (username,password,fullname) VALUES ('admin',PASSWORD('admin'),'Administrator');

# --------------------------------------------------------
#
# Table structure for table 'dmcat';
#

DROP TABLE IF EXISTS dmcat;
CREATE TABLE dmcat
(
  id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,     
  parent INT(4) UNSIGNED DEFAULT '0' NOT NULL,
  catcode VARCHAR(25) NOT NULL,
  catname VARCHAR(255) NOT NULL,
  PRIMARY KEY (id)
);

#
# id - Category ID;
# catcode - Category code;
# catname - Category name;
#

#
# Dumping default data for table 'dmcat';
#

INSERT INTO dmcat (catcode,catname) VALUES ('','Default category');

# --------------------------------------------------------
#
# Table structure for table 'dmgroup';
#

DROP TABLE IF EXISTS dmgroup;
CREATE TABLE dmgroup
(
  id SMALLINT(4) UNSIGNED NOT NULL AUTO_INCREMENT,
  parent INT(4) UNSIGNED DEFAULT '0' NOT NULL,
  grocode VARCHAR(25) NOT NULL,
  groname VARCHAR(255) NOT NULL,
  imgname VARCHAR(255) DEFAULT '' NOT NULL,
  PRIMARY KEY (id)
);

#
# id - Group ID;
# grocode - Group code;
# groname - Group name;
#

#
# Dumping default data for table 'dmgroup'
#

INSERT INTO dmgroup (grocode,groname) VALUES ('','Default group');

# --------------------------------------------------------
#
# Table structure for table 'dmuperms';
#

DROP TABLE IF EXISTS dmuperms;
CREATE TABLE dmuperms
(
  fid INT(4) UNSIGNED DEFAULT '0' NOT NULL,
  uid SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  rights TINYINT(4) UNSIGNED DEFAULT '0' NOT NULL
);

#
# fid - Document ID, from "dmdoc" table; '0' = user privilege (e.g. admin);
# uid - User ID, from "dmuser" table; '0' = group permission;
# rights - rights user "uid" possesses for document "fid"; '0' = disabled, '1' = view, '2' = modify, '3' = admin;
#

#
# Dumping default data for table 'dmuperms'
# Administration privilege for 'admin' users
#

INSERT INTO dmuperms (fid,uid,rights) VALUES ('0','1','3');

# --------------------------------------------------------
#
# Table structure for table 'dmgperms';
#

DROP TABLE IF EXISTS dmgperms;
CREATE TABLE dmgperms
(
  uid SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL,
  gid SMALLINT(4) UNSIGNED DEFAULT '0' NOT NULL
);

#
# uid - User ID, from "dmuser" table;
# gid - Group ID, from "dmgroup" table;
#

#
# Dumping default data for table 'dmgperms'
#

INSERT INTO dmgperms (uid,gid) VALUES ('1','1');

#----- END:simple.sql---


#--- BEGIN:test.py---
# Test file

print('Hello World!')

#----- END:test.py---



#--- /php/---
  1. _readme.txt   (559) -January 03 2021 21:36:01.
  2. divesite.php   (2177) -October 06 2010 00:00:00.
  3. divesummary.php   (1806) -October 06 2010 00:00:00.
  4. drawpiechart.php   (2687) -October 06 2010 00:00:00.
  5. equipment.php   (1763) -October 06 2010 00:00:00.
  6. mainconf.php   (858) -October 06 2010 00:00:00.
  7. print_src.zip   (746) -October 25 2017 14:42:00.
  8. silogbook.sql   (4186) -October 06 2010 00:00:00.
  9. silogbook3.css   (4506) -October 06 2010 00:00:00.
  10. simple.sql   (2922) -October 06 2010 00:00:00.
  11. test.py   (40) -October 13 2017 14:02:00.