aboutsummaryrefslogtreecommitdiff
path: root/h-source/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Examples')
-rw-r--r--h-source/Examples/Controllers/TestController.php9
-rwxr-xr-xh-source/Examples/Tables/mysql/admin_session.txt52
-rwxr-xr-xh-source/Examples/Tables/mysql/reg_session.txt63
-rwxr-xr-xh-source/Examples/Views/footer.php3
-rwxr-xr-xh-source/Examples/Views/post/form.php28
-rw-r--r--h-source/Examples/Views/post/form_associate.php19
-rwxr-xr-xh-source/Examples/Views/post/header.php16
-rwxr-xr-xh-source/Examples/Views/post/modify.php1
-rwxr-xr-xh-source/Examples/Views/post/popup.php3
-rwxr-xr-xh-source/Examples/Views/post/view.php1
-rwxr-xr-xh-source/Examples/Views/post2/form.php28
-rwxr-xr-xh-source/Examples/Views/post2/header.php30
-rwxr-xr-xh-source/Examples/Views/post2/modify.php1
-rwxr-xr-xh-source/Examples/Views/post2/view.php1
-rwxr-xr-xh-source/Examples/articles.txt8
-rw-r--r--h-source/Examples/boxes.txt5
-rw-r--r--h-source/Examples/index.html1
17 files changed, 0 insertions, 269 deletions
diff --git a/h-source/Examples/Controllers/TestController.php b/h-source/Examples/Controllers/TestController.php
deleted file mode 100644
index 9372e71..0000000
--- a/h-source/Examples/Controllers/TestController.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-class TestController extends Controller {
-
- function index() {
- echo '<h2>It works!</h2>';
- }
-
-} \ No newline at end of file
diff --git a/h-source/Examples/Tables/mysql/admin_session.txt b/h-source/Examples/Tables/mysql/admin_session.txt
deleted file mode 100755
index 8e5f604..0000000
--- a/h-source/Examples/Tables/mysql/admin_session.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-tables:
-
-#default admin session tables
-
-create table adminusers (
- id_user INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
- username VARCHAR(80) binary NOT NULL,
- password CHAR(40) binary NOT NULL,
- last_failure INT UNSIGNED NOT NULL,
- has_confirmed INT UNSIGNED NOT NULL,
- unique(username),
- index(username, password)
-)engine=innodb;
-
-create table admingroups (
- id_group INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
- name VARCHAR(30) binary NOT NULL,
- unique(name)
-)engine=innodb;
-
-create table adminusers_groups (
- id_user int(11) UNSIGNED not null,
- id_group int(11) UNSIGNED not null,
- index group_indx(id_group),
- index user_indx(id_user),
- foreign key group_fky(id_group) references admingroups (id_group),
- foreign key user_fky(id_user) references adminusers (id_user),
- unique (id_group,id_user)
-)engine=innodb;
-
-
-insert into adminusers (username,password) values ('admin',sha1('admin'));
-
-
-CREATE TABLE adminsessions (
- uid CHAR(32) NOT NULL,
- token CHAR(32) NOT NULL,
- id_user INT UNSIGNED NOT NULL,
- creation_date INT UNSIGNED NOT NULL,
- user_agent CHAR(32) NOT NULL,
- INDEX(uid)
-)engine=innodb;
-
-
-create table accesses (
- id int(12) not null auto_increment primary key,
- ip char(20) not null,data char(10) not null,
- ora char(8) not null,
- username varchar(30) not null
-);
-
-
diff --git a/h-source/Examples/Tables/mysql/reg_session.txt b/h-source/Examples/Tables/mysql/reg_session.txt
deleted file mode 100755
index f5c4713..0000000
--- a/h-source/Examples/Tables/mysql/reg_session.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-tables:
-
-#default registered session tables
-
-create table regusers (
- id_user INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
- username VARCHAR(80) binary NOT NULL,
- password CHAR(40) binary NOT NULL,
- last_failure INT UNSIGNED NOT NULL,
- has_confirmed INT UNSIGNED NOT NULL,
-
- e_mail VARCHAR(60) binary NOT NULL,
- confirmation_token CHAR(32) NOT NULL,
- creation_date timestamp default CURRENT_TIMESTAMP,
- creation_time INT UNSIGNED NOT NULL,
- temp_field CHAR(32) NOT NULL,
- deleted CHAR(4) NOT NULL default 'no',
-
- forgot_token CHAR(32) NOT NULL,
- forgot_time INT UNSIGNED NOT NULL,
-
- unique(username),
- index(username, password)
-)engine=innodb;
-
-create table reggroups (
- id_group INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
- name VARCHAR(30) binary NOT NULL,
- unique(name)
-)engine=innodb;
-
-create table regusers_groups (
- id_user int(11) UNSIGNED not null,
- id_group int(11) UNSIGNED not null,
- index group_indx(id_group),
- index user_indx(id_user),
- foreign key group_fky(id_group) references reggroups (id_group),
- foreign key user_fky(id_user) references regusers (id_user),
- unique (id_group,id_user)
-)engine=innodb;
-
-
-insert into regusers (username,password) values ('user',sha1('user'));
-
-
-CREATE TABLE regsessions (
- uid CHAR(32) NOT NULL,
- token CHAR(32) NOT NULL,
- id_user INT UNSIGNED NOT NULL,
- creation_date INT UNSIGNED NOT NULL,
- user_agent CHAR(32) NOT NULL,
- INDEX(uid)
-)engine=innodb;
-
-
-create table regaccesses (
- id int(12) not null auto_increment primary key,
- ip char(20) not null,data char(10) not null,
- ora char(8) not null,
- username varchar(30) not null
-);
-
-
diff --git a/h-source/Examples/Views/footer.php b/h-source/Examples/Views/footer.php
deleted file mode 100755
index 42e09f0..0000000
--- a/h-source/Examples/Views/footer.php
+++ /dev/null
@@ -1,3 +0,0 @@
-</div> <!--container-->
-</body>
-</html>
diff --git a/h-source/Examples/Views/post/form.php b/h-source/Examples/Views/post/form.php
deleted file mode 100755
index 5ef5aff..0000000
--- a/h-source/Examples/Views/post/form.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class='mainMenu'>
- <?php echo $topMenu;?>
-</div>
-
-<?php echo $notice; ?>
-
-<div>
- <form action='<?php echo $action;?>' method='POST'>
- <table>
- <tr>
- <td>Titolo:</td>
- <td><input type='text' name='titolo' value='<?php echo $values['titolo'];?>'></td>
- </tr>
- <tr>
- <td>Autore:</td>
- <td><input type='text' name='autore' value='<?php echo $values['autore'];?>'></td>
- </tr>
- <tr>
- <td>Titolo:</td>
- <td><textarea name='testo'><?php echo $values['testo'];?></textarea></td>
- </tr>
- <?php echo $hidden;?>
- <tr>
- <td><input type='submit' name='<?php echo $submit;?>' value='salva'></td>
- </tr>
- </table>
- </form>
-</div>
diff --git a/h-source/Examples/Views/post/form_associate.php b/h-source/Examples/Views/post/form_associate.php
deleted file mode 100644
index 5794153..0000000
--- a/h-source/Examples/Views/post/form_associate.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class='mainMenu'>
- <?php echo $menu;?>
-</div>
-
-<?php echo $notice;?>
-
-<div>
- <form action = '<?php echo $action;?>' method = 'POST'>
-
- <select name='id_arg'>
- <?php foreach ($argomenti as $name => $value) {?>
- <option value='<?php echo $value;?>'><?php echo $name;?></option>
- <?php } ?>
- </select>
- <br />
- <input type='submit' name='associate' value='associate'>
- <input type='submit' name='dissociate' value='dissociate'>
- </form>
-</div> \ No newline at end of file
diff --git a/h-source/Examples/Views/post/header.php b/h-source/Examples/Views/post/header.php
deleted file mode 100755
index 606de2e..0000000
--- a/h-source/Examples/Views/post/header.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<html>
-
-<header>
-
-<title>prova</title>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/style.css');?>"></style>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/mainmenu.css');?>"></style>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/popupmenu.css');?>"></style>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/form.css');?>"></style>
-
-</header>
-
-<body>
-
-<div id="container">
-
diff --git a/h-source/Examples/Views/post/modify.php b/h-source/Examples/Views/post/modify.php
deleted file mode 100755
index dc948e1..0000000
--- a/h-source/Examples/Views/post/modify.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $form;?> \ No newline at end of file
diff --git a/h-source/Examples/Views/post/popup.php b/h-source/Examples/Views/post/popup.php
deleted file mode 100755
index ba543a4..0000000
--- a/h-source/Examples/Views/post/popup.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class='verticalMenu'>
- <?php echo $popup; ?>
-</div> \ No newline at end of file
diff --git a/h-source/Examples/Views/post/view.php b/h-source/Examples/Views/post/view.php
deleted file mode 100755
index 3f67f2f..0000000
--- a/h-source/Examples/Views/post/view.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $scaffold;?>
diff --git a/h-source/Examples/Views/post2/form.php b/h-source/Examples/Views/post2/form.php
deleted file mode 100755
index 5ef5aff..0000000
--- a/h-source/Examples/Views/post2/form.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class='mainMenu'>
- <?php echo $topMenu;?>
-</div>
-
-<?php echo $notice; ?>
-
-<div>
- <form action='<?php echo $action;?>' method='POST'>
- <table>
- <tr>
- <td>Titolo:</td>
- <td><input type='text' name='titolo' value='<?php echo $values['titolo'];?>'></td>
- </tr>
- <tr>
- <td>Autore:</td>
- <td><input type='text' name='autore' value='<?php echo $values['autore'];?>'></td>
- </tr>
- <tr>
- <td>Titolo:</td>
- <td><textarea name='testo'><?php echo $values['testo'];?></textarea></td>
- </tr>
- <?php echo $hidden;?>
- <tr>
- <td><input type='submit' name='<?php echo $submit;?>' value='salva'></td>
- </tr>
- </table>
- </form>
-</div>
diff --git a/h-source/Examples/Views/post2/header.php b/h-source/Examples/Views/post2/header.php
deleted file mode 100755
index 0d9a131..0000000
--- a/h-source/Examples/Views/post2/header.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<html>
-
-<header>
-
-<title>prova</title>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/style.css');?>"></style>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/mainmenu.css');?>"></style>
-<link rel="stylesheet" type="text/css" href="<?php echo url::getRoot('public/css/form.css');?>"></style>
-<script type="text/javascript" src="<?php echo url::getRoot('external/jquery/jquery-1.3.2.js');?>"></script>
-
-<script>
-$(document).ready(function(){
-
- $("ul#menuBlock li").mouseover(function () {
- $(this).children().css({'display' : 'block'});
- });
-
- $("ul#menuBlock li").mouseout(function () {
- $('ul#menuBlock li ul').css({'display' : 'none'});
- });
-
-});
-</script>
-
-</header>
-
-<body>
-
-<div id="container">
-
diff --git a/h-source/Examples/Views/post2/modify.php b/h-source/Examples/Views/post2/modify.php
deleted file mode 100755
index dc948e1..0000000
--- a/h-source/Examples/Views/post2/modify.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $form;?> \ No newline at end of file
diff --git a/h-source/Examples/Views/post2/view.php b/h-source/Examples/Views/post2/view.php
deleted file mode 100755
index 3f67f2f..0000000
--- a/h-source/Examples/Views/post2/view.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $scaffold;?>
diff --git a/h-source/Examples/articles.txt b/h-source/Examples/articles.txt
deleted file mode 100755
index db3f022..0000000
--- a/h-source/Examples/articles.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-create table articles (
- id int(5) not null auto_increment primary key,
- title varchar(100) not null,
- author varchar(100) not null,
- category varchar(100) not null,
- abstract text CHARACTER SET utf8 not null,
- content text CHARACTER SET utf8 not null
-); \ No newline at end of file
diff --git a/h-source/Examples/boxes.txt b/h-source/Examples/boxes.txt
deleted file mode 100644
index f27d7b1..0000000
--- a/h-source/Examples/boxes.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-create table boxes (
- id int(5) not null auto_increment primary key,
- title varchar(100) not null,
- xml text CHARACTER SET utf8 not null
-);
diff --git a/h-source/Examples/index.html b/h-source/Examples/index.html
deleted file mode 100644
index 8d1c8b6..0000000
--- a/h-source/Examples/index.html
+++ /dev/null
@@ -1 +0,0 @@
-