aboutsummaryrefslogtreecommitdiff
path: root/h-source
diff options
context:
space:
mode:
Diffstat (limited to 'h-source')
-rw-r--r--h-source/Application/Controllers/DownloadController.php2
-rw-r--r--h-source/Application/Controllers/ThreegcardsController.php8
-rw-r--r--h-source/Application/Include/license.php4
-rw-r--r--h-source/Application/Models/ThreegcardsModel.php1
-rw-r--r--h-source/Application/Models/WikiModel.php4
-rw-r--r--h-source/Application/Views/Threegcards/form.php5
-rw-r--r--h-source/Application/Views/Threegcards/page.php5
-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
-rwxr-xr-xh-source/Library/Call.php32
25 files changed, 40 insertions, 290 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php
index bfc4346..d55f5ad 100644
--- a/h-source/Application/Controllers/DownloadController.php
+++ b/h-source/Application/Controllers/DownloadController.php
@@ -51,7 +51,7 @@ class DownloadController extends BaseController
$xml .= "\t<general_informations>\n";
$xml .= "\t\t<credits>h-node project</credits>\n";
$xml .= "\t\t<link>www.h-node.com</link>\n";
- $xml .= "\t\t<date>".date("Y-m-d H:m:s")."</date>\n";
+ $xml .= "\t\t<date>".date("Y-m-d H:i:s")."</date>\n";
$xml .= "\t\t<license>".License::getInsideXml()."</license>\n";
$xml .= "\t</general_informations>\n";
diff --git a/h-source/Application/Controllers/ThreegcardsController.php b/h-source/Application/Controllers/ThreegcardsController.php
index 69484cd..c535005 100644
--- a/h-source/Application/Controllers/ThreegcardsController.php
+++ b/h-source/Application/Controllers/ThreegcardsController.php
@@ -65,18 +65,22 @@ class ThreegcardsController extends GenericController
);
$this->m['HardwareModel']->softConditions['update'] = array(
- "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s]+$/" => "kernel|characters not allowed in the <i>kernel</i> entry",
+ "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s]+$/" => "kernel|characters not allowed in the <i>kernel</i> entry",
"checkLength|20000" => "description",
"+checkLength|49" => "kernel",
+ "++checkLength|49" => "driver",
+ "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]",
);
$this->m['HardwareModel']->softConditions['insert'] = array(
"checkMatch|/^[a-zA-Z0-9\-\_\.\+\s]+$/" => "kernel|characters not allowed in the <i>kernel</i> entry",
"checkLength|20000" => "description",
"+checkLength|49" => "kernel",
+ "++checkLength|49" => "driver",
+ "++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]",
);
- $this->m['HardwareModel']->setFields('model,kernel,description,distribution,comm_year,wifi_works,pci_id,interface','sanitizeAll');
+ $this->m['HardwareModel']->setFields('model,kernel,description,distribution,comm_year,wifi_works,pci_id,interface,driver','sanitizeAll');
$argKeys = array(
'page:forceNat' => 1,
diff --git a/h-source/Application/Include/license.php b/h-source/Application/Include/license.php
index 72c25da..08a6a2c 100644
--- a/h-source/Application/Include/license.php
+++ b/h-source/Application/Include/license.php
@@ -28,6 +28,7 @@ class License
'en' => "The contents of this page are in the Public Domain. (see the <a href='http://creativecommons.org/publicdomain/zero/1.0/'>CC0 page</a> for detailed information). Anyone is free to copy, modify, publish, use, sell, or distribute the text for any purpose, commercial or non-commercial, and by any means.",
'it' => "I contenuti di questa pagina sono di Pubblico Dominio. (leggi la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.it'>pagina CC0</a> per informazioni dettagliate). Chiunque è libero di copiare, modificare, pubblicare, usare, vendere, o distribuire tale contenuto per qualsiasi fine, commerciale o non commerciale, e con ogni mezzo.",
'es' => "El contenido de esta página está en Dominio Público. (vea la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.es_ES'>página CC0</a> para información detallada). Cualquiera es libre de copiar, modificar, publicar, usar, vender o distribuir el texto para cualquier propósito, comercial o no comercial, y por cualquier medio.",
+ 'fr' => "Le contenu de cette page est dans le Domaine Public (voir la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.fr'>page CC0</a> pour plus d'informations). Quiquonque est libre de copier, modifier, publier, utiliser, vendre ou distribuer le texte , quelques soit le but et le moyen.",
);
//license notice that does appear inside the xml download page
@@ -35,6 +36,7 @@ class License
'en' => "The contents of this page are in the Public Domain. (see the CC0 page at http://creativecommons.org/publicdomain/zero/1.0/ for detailed information). Anyone is free to copy, modify, publish, use, sell, or distribute the text for any purpose, commercial or non-commercial, and by any means.",
'it' => "I contenuti di questa pagina sono di Pubblico Dominio. (leggi la pagina CC0 all'indirizzo http://creativecommons.org/publicdomain/zero/1.0/deed.it per informazioni dettagliate). Chiunque è libero di copiare, modificare, pubblicare, usare, vendere, o distribuire tale contenuto per qualsiasi fine, commerciale o non commerciale, e con ogni mezzo.",
'es' => "El contenido de esta página está en Dominio Público. (vea la página CC0 http://creativecommons.org/publicdomain/zero/1.0/deed.es_ES para información detallada). Cualquiera es libre de copiar, modificar, publicar, usar, vender o distribuir el texto para cualquier propósito, comercial o no comercial, y por cualquier medio.",
+ 'fr' => "Le contenu de cette page est dans le Domaine Public (voir la page CC0 http://creativecommons.org/publicdomain/zero/1.0/deed.fr pour plus d'informations). Quiquonque est libre de copier, modifier, publier, utiliser, vendre ou distribuer le texte , quelques soit le but et le moyen.",
);
//license notice that does appear before the submission of each hardware and wiki page
@@ -42,6 +44,7 @@ class License
'en' => "Any text submitted by you will be put in the Public Domain (see the <a href='http://creativecommons.org/publicdomain/zero/1.0/'>CC0 page</a> for detailed information).",
'it' => "Ogni testo da te inviato diventerà di Pubblico Dominio. (leggi la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.it'>pagina CC0</a> per informazioni dettagliate).",
'es' => "Cualquier texto agregado por usted será colocado en el Dominio Público (vea la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.es_ES'>página CC0</a> para información detallada).",
+ 'fr' => "Chaque texte que vous soumettrez seront placés dans le Domaine Public (voir la <a href='http://creativecommons.org/publicdomain/zero/1.0/deed.fr'>page CC0</a> pour plus d'informations)"
);
//license notice that does appear before the submission of each hardware page from the h-node client (h-client)
@@ -49,6 +52,7 @@ class License
'en' => "Any text submitted by you will be put in the Public Domain (see the CC0 page at \nhttp://creativecommons.org/publicdomain/zero/1.0/ for detailed information).",
'it' => "Ogni testo da te inviato diventerà di Pubblico Dominio. (leggi la pagina CC0 all'indirizzo \nhttp://creativecommons.org/publicdomain/zero/1.0/deed.it per informazioni dettagliate).",
'es' => "Cualquier texto agregado por usted será colocado en el Dominio Público (vea la página CC0 \nhttp://creativecommons.org/publicdomain/zero/1.0/deed.es_ES para información detallada).",
+ 'fr' => "Chaque texte que vous soumettrez seront placés dans le Domaine Public (voir la page CC0 \nhttp://creativecommons.org/publicdomain/zero/1.0/deed.fr pour plus d'informations)"
);
public static function getNotice($noticeArray)
diff --git a/h-source/Application/Models/ThreegcardsModel.php b/h-source/Application/Models/ThreegcardsModel.php
index 6bde5c8..3579e01 100644
--- a/h-source/Application/Models/ThreegcardsModel.php
+++ b/h-source/Application/Models/ThreegcardsModel.php
@@ -63,6 +63,7 @@ class ThreegcardsModel extends GenericModel
'distribution' => gtext('GNU/Linux distribution used for the test'),
'kernel' => gtext('tested with the following kernel libre'),
'wifi_works' => gtext("does it work with free software?"),
+ 'driver' => gtext("free driver used"),
'description' => gtext('Description'),
);
diff --git a/h-source/Application/Models/WikiModel.php b/h-source/Application/Models/WikiModel.php
index bfbc4ad..9cb4f6f 100644
--- a/h-source/Application/Models/WikiModel.php
+++ b/h-source/Application/Models/WikiModel.php
@@ -55,14 +55,14 @@ class WikiModel extends Model_Map {
"checkNotEmpty" => 'title',
"checkLength|99" => 'title|'.gtext('title is too long'),
"+checkNotEmpty" => 'page',
- "+checkLength|9000" => 'page|'.gtext('the page text is too long'),
+ "+checkLength|29900" => 'page|'.gtext('the page text is too long'),
);
$this->strongConditions['update'] = array(
"checkNotEmpty" => 'title',
"checkLength|99" => 'title|'.gtext('title is too long'),
"+checkNotEmpty" => 'page',
- "+checkLength|9000" => 'page|'.gtext('the page text is too long'),
+ "+checkLength|29900" => 'page|'.gtext('the page text is too long'),
);
$this->databaseConditions['insert'] = array(
diff --git a/h-source/Application/Views/Threegcards/form.php b/h-source/Application/Views/Threegcards/form.php
index 075333e..fd80f5a 100644
--- a/h-source/Application/Views/Threegcards/form.php
+++ b/h-source/Application/Views/Threegcards/form.php
@@ -75,6 +75,11 @@
<div class="entry_label hidden_x_explorer"><?php echo gtext("does it work with free software?");?></div>
<?php echo Html_Form::select('wifi_works',$values['wifi_works'],ThreeGcards::$select,"select_entry hidden_x_explorer");?>
</div>
+
+ <div class="form_entry">
+ <div class="entry_label hidden_x_explorer"><?php echo gtext("free driver used");?> (<?php echo gtext("see the help page or leave blank if you are not sure");?>):</div>
+ <?php echo Html_Form::input('driver',$values['driver'],'input_entry');?>
+ </div>
<div class="form_entry">
<div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div>
diff --git a/h-source/Application/Views/Threegcards/page.php b/h-source/Application/Views/Threegcards/page.php
index 61752d8..ef79898 100644
--- a/h-source/Application/Views/Threegcards/page.php
+++ b/h-source/Application/Views/Threegcards/page.php
@@ -77,6 +77,11 @@
<div class="inner_label"><?php echo gtext("does it work with free software?");?></div>
<div class="inner_value"><b><?php echo $item[$tableName]['wifi_works'];?></b></div>
</div>
+
+ <div class="notebook_kernel">
+ <div class="inner_label"><?php echo gtext("free driver used");?>:</div>
+ <div class="inner_value"><b><?php echo $item[$tableName]['driver'];?></b></div>
+ </div>
<div class="notebook_description">
<div class="notebook_description_label"><?php echo gtext("Description");?>:</div>
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 @@
-
diff --git a/h-source/Library/Call.php b/h-source/Library/Call.php
index e89b3b0..a2c7e68 100755
--- a/h-source/Library/Call.php
+++ b/h-source/Library/Call.php
@@ -72,10 +72,10 @@ function callHook()
}
//rewrite the URL
-// if (Route::$rewrite === 'yes')
-// {
-// $url = rewrite($url);
-// }
+ if (Route::$rewrite === 'yes')
+ {
+ $url = rewrite($url);
+ }
// echo $url;
@@ -212,18 +212,18 @@ function callHook()
}
-// //rewrite the URL
-// function rewrite($url)
-// {
-// foreach (Route::$map as $key => $address)
-// {
-// if (preg_match('/^'.$key.'/',$url))
-// {
-// return preg_replace('/^'.$key.'/',$address,$url);
-// }
-// }
-// return ERROR_CONTROLLER.'/'.ERROR_ACTION;
-// }
+//rewrite the URL
+function rewrite($url)
+{
+ foreach (Route::$map as $key => $address)
+ {
+ if (preg_match('/^'.$key.'/',$url))
+ {
+ return preg_replace('/^'.$key.'/',$address,$url);
+ }
+ }
+ return $url;
+}
function getQueryString()
{