diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 85ceb2a..20012da --- a/index.php +++ b/index.php @@ -1,40 +1,40 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -session_start(); - -define('BASE','./setup/'); -define('__DOORGETS__','http://www.doorgets.com/'); // Ne pas supprimer -require_once BASE.'config/config.php'; - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +session_start(); + +define('BASE','./setup/'); +define('DOORGETS','http://www.doorgets.com/'); // Ne pas supprimer +require_once BASE.'config/config.php'; + require_once ROUTER.'installerRouter.php'; \ No newline at end of file diff --git a/setup/cache/index.php b/setup/cache/index.php new file mode 100755 index 0000000..8d59375 --- /dev/null +++ b/setup/cache/index.php @@ -0,0 +1,4 @@ + Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- 5/5 - l("Administrateur"); ?> -
- form['doorgets_admin']->open('post','',''); ?> -
- form['doorgets_admin']->input($doorgets->l('Adresse e-mail'),'email','text',$this->info['email']); ?> -
- form['doorgets_admin']->input($doorgets->l('Login'),'login','text',$this->info['login']); ?> -
- form['doorgets_admin']->input($doorgets->l('Mot de passe'),'password','text'); ?> -
-
- form['doorgets_admin']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_admin']->close(); echo $doorgets->getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 5/5 - l("Administrateur"); ?> +
+ form['doorgets_admin']->open('post','',''); ?> +
+ form['doorgets_admin']->input($doorgets->l('Adresse e-mail'),'email','text',$this->info['email']); ?> +
+ form['doorgets_admin']->input($doorgets->l('Login'),'login','text',$this->info['login']); ?> +
+ form['doorgets_admin']->input($doorgets->l('Mot de passe'),'password','text'); ?> +
+
+ form['doorgets_admin']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_admin']->close(); echo $doorgets->getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/chmod.tpl.php b/setup/cache/template/chmod.tpl.php old mode 100644 new mode 100755 index 39ed527..6c717d9 --- a/setup/cache/template/chmod.tpl.php +++ b/setup/cache/template/chmod.tpl.php @@ -1,56 +1,56 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- 2/5 - l("Vérification de vos droits d'écriture"); ?> -
- isChmod777()): ?> -
- l("Vous avez bien les droits d'écriture !"); ?> -
- form['doorgets_chmod']->open('post','',''); ?> - form['doorgets_chmod']->input('','hidden','hidden','1'); ?> -
-
- form['doorgets_chmod']->submit($doorgets->l('Etape suivante'),'','submit-next'); ?> - form['doorgets_chmod']->close(); else: ?> -
- l("Votre dossier n'a pas les droits d'écriture..."); ?> -
-
- getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 2/5 - l("Vérification de vos droits d'écriture"); ?> +
+ isChmod777()): ?> +
+ l("Vous avez bien les droits d'écriture !"); ?> +
+ form['doorgets_chmod']->open('post','',''); ?> + form['doorgets_chmod']->input('','hidden','hidden','1'); ?> +
+
+ form['doorgets_chmod']->submit($doorgets->l('Etape suivante'),'','submit-next'); ?> + form['doorgets_chmod']->close(); else: ?> +
+ l("Votre dossier n'a pas les droits d'écriture..."); ?> +
+
+ getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/database.tpl.php b/setup/cache/template/database.tpl.php old mode 100644 new mode 100755 index 4cc1cb9..cd91272 --- a/setup/cache/template/database.tpl.php +++ b/setup/cache/template/database.tpl.php @@ -1,59 +1,59 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> -
-
- doorGets 5.0 -
-
- 3/5 - l("Connecter votre base de données"); ?> -
- form['doorgets_database']->i)): ?> -
- l("La connexion n'est pas établie !"); ?> -
- form['doorgets_database']->open('post','',''); ?> -
- form['doorgets_database']->input($doorgets->l('Hôte'),'hote','text',$this->info['hote']); ?> -
- form['doorgets_database']->input($doorgets->l('Nom de la base'),'name','text',$this->info['name']); ?> -
- form['doorgets_database']->input($doorgets->l('Login'),'login','text',$this->info['login']); ?> -
- form['doorgets_database']->input($doorgets->l('Mot de passe'),'password','text'); ?> -
-
-
- form['doorgets_database']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_database']->close(); echo $doorgets->getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 3/5 - l("Connecter votre base de données"); ?> +
+ form['doorgets_database']->i)): ?> +
+ l("La connexion n'est pas établie !"); ?> +
+ form['doorgets_database']->open('post','',''); ?> +
+ form['doorgets_database']->input($doorgets->l('Hôte'),'hote','text',$this->info['hote']); ?> +
+ form['doorgets_database']->input($doorgets->l('Nom de la base'),'name','text',$this->info['name']); ?> +
+ form['doorgets_database']->input($doorgets->l('Login'),'login','text',$this->info['login']); ?> +
+ form['doorgets_database']->input($doorgets->l('Mot de passe'),'password','text'); ?> +
+
+
+ form['doorgets_database']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_database']->close(); echo $doorgets->getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/footer.tpl.php b/setup/cache/template/footer.tpl.php old mode 100644 new mode 100755 index 313ec69..6541270 --- a/setup/cache/template/footer.tpl.php +++ b/setup/cache/template/footer.tpl.php @@ -1,39 +1,39 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> + + \ No newline at end of file diff --git a/setup/cache/template/goback.tpl.php b/setup/cache/template/goback.tpl.php old mode 100644 new mode 100755 index 3b1d0cb..d694a5c --- a/setup/cache/template/goback.tpl.php +++ b/setup/cache/template/goback.tpl.php @@ -1,38 +1,38 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- form['prev_step']->open('post','',''); ?> - form['prev_step']->input('','hidden','hidden','1'); ?> - form['prev_step']->submit($this->l('Etape précédente'),'','submit-prev'); echo $this->form['prev_step']->close(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ form['prev_step']->open('post','',''); ?> + form['prev_step']->input('','hidden','hidden','1'); ?> + form['prev_step']->submit($this->l('Etape précédente'),'','submit-prev'); echo $this->form['prev_step']->close(); ?>
\ No newline at end of file diff --git a/setup/cache/template/header.tpl.php b/setup/cache/template/header.tpl.php old mode 100644 new mode 100755 index 12177f3..8232b21 --- a/setup/cache/template/header.tpl.php +++ b/setup/cache/template/header.tpl.php @@ -1,46 +1,45 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> - - - doorGets 5.0 - - - - - - - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> + + + doorGets 6.0 + + + + + + + \ No newline at end of file diff --git a/setup/cache/template/index.php b/setup/cache/template/index.php new file mode 100755 index 0000000..8d59375 --- /dev/null +++ b/setup/cache/template/index.php @@ -0,0 +1,4 @@ + Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- form['doorgets_licence']->open('post','',''); ?> -
- doorGets 5.0 -
-
- 1/5 - l("Conditions générales d'utilisation"); ?> -
-
- form['doorgets_licence']->input('','hidden','hidden','1'); ?> -
- -

GNU GENERAL PUBLIC LICENSE

-

Version 3, 29 June 2007

- -

Copyright © 2007 Free Software Foundation, Inc. - <http://fsf.org/>

- Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed.

- -

Preamble

- -

The GNU General Public License is a free, copyleft license for - software and other kinds of works.

- -

The licenses for most software and other practical works are designed - to take away your freedom to share and change the works. By contrast, - the GNU General Public License is intended to guarantee your freedom to - share and change all versions of a program--to make sure it remains free - software for all its users. We, the Free Software Foundation, use the - GNU General Public License for most of our software; it applies also to - any other work released this way by its authors. You can apply it to - your programs, too.

- -

When we speak of free software, we are referring to freedom, not - price. Our General Public Licenses are designed to make sure that you - have the freedom to distribute copies of free software (and charge for - them if you wish), that you receive source code or can get it if you - want it, that you can change the software or use pieces of it in new - free programs, and that you know you can do these things.

- -

To protect your rights, we need to prevent others from denying you - these rights or asking you to surrender the rights. Therefore, you have - certain responsibilities if you distribute copies of the software, or if - you modify it: responsibilities to respect the freedom of others.

- -

For example, if you distribute copies of such a program, whether - gratis or for a fee, you must pass on to the recipients the same - freedoms that you received. You must make sure that they, too, receive - or can get the source code. And you must show them these terms so they - know their rights.

- -

Developers that use the GNU GPL protect your rights with two steps: - (1) assert copyright on the software, and (2) offer you this License - giving you legal permission to copy, distribute and/or modify it.

- -

For the developers' and authors' protection, the GPL clearly explains - that there is no warranty for this free software. For both users' and - authors' sake, the GPL requires that modified versions be marked as - changed, so that their problems will not be attributed erroneously to - authors of previous versions.

- -

Some devices are designed to deny users access to install or run - modified versions of the software inside them, although the manufacturer - can do so. This is fundamentally incompatible with the aim of - protecting users' freedom to change the software. The systematic - pattern of such abuse occurs in the area of products for individuals to - use, which is precisely where it is most unacceptable. Therefore, we - have designed this version of the GPL to prohibit the practice for those - products. If such problems arise substantially in other domains, we - stand ready to extend this provision to those domains in future versions - of the GPL, as needed to protect the freedom of users.

- -

Finally, every program is threatened constantly by software patents. - States should not allow patents to restrict development and use of - software on general-purpose computers, but in those that do, we wish to - avoid the special danger that patents applied to a free program could - make it effectively proprietary. To prevent this, the GPL assures that - patents cannot be used to render the program non-free.

- -

The precise terms and conditions for copying, distribution and - modification follow.

- -

TERMS AND CONDITIONS

- -

0. Definitions.

- -

“This License” refers to version 3 of the GNU General Public License.

- -

“Copyright” also means copyright-like laws that apply to other kinds of - works, such as semiconductor masks.

- -

“The Program” refers to any copyrightable work licensed under this - License. Each licensee is addressed as “you”. “Licensees” and - “recipients” may be individuals or organizations.

- -

To “modify” a work means to copy from or adapt all or part of the work - in a fashion requiring copyright permission, other than the making of an - exact copy. The resulting work is called a “modified version” of the - earlier work or a work “based on” the earlier work.

- -

A “covered work” means either the unmodified Program or a work based - on the Program.

- -

To “propagate” a work means to do anything with it that, without - permission, would make you directly or secondarily liable for - infringement under applicable copyright law, except executing it on a - computer or modifying a private copy. Propagation includes copying, - distribution (with or without modification), making available to the - public, and in some countries other activities as well.

- -

To “convey” a work means any kind of propagation that enables other - parties to make or receive copies. Mere interaction with a user through - a computer network, with no transfer of a copy, is not conveying.

- -

An interactive user interface displays “Appropriate Legal Notices” - to the extent that it includes a convenient and prominently visible - feature that (1) displays an appropriate copyright notice, and (2) - tells the user that there is no warranty for the work (except to the - extent that warranties are provided), that licensees may convey the - work under this License, and how to view a copy of this License. If - the interface presents a list of user commands or options, such as a - menu, a prominent item in the list meets this criterion.

- -

1. Source Code.

- -

The “source code” for a work means the preferred form of the work - for making modifications to it. “Object code” means any non-source - form of a work.

- -

A “Standard Interface” means an interface that either is an official - standard defined by a recognized standards body, or, in the case of - interfaces specified for a particular programming language, one that - is widely used among developers working in that language.

- -

The “System Libraries” of an executable work include anything, other - than the work as a whole, that (a) is included in the normal form of - packaging a Major Component, but which is not part of that Major - Component, and (b) serves only to enable use of the work with that - Major Component, or to implement a Standard Interface for which an - implementation is available to the public in source code form. A - “Major Component”, in this context, means a major essential component - (kernel, window system, and so on) of the specific operating system - (if any) on which the executable work runs, or a compiler used to - produce the work, or an object code interpreter used to run it.

- -

The “Corresponding Source” for a work in object code form means all - the source code needed to generate, install, and (for an executable - work) run the object code and to modify the work, including scripts to - control those activities. However, it does not include the work's - System Libraries, or general-purpose tools or generally available free - programs which are used unmodified in performing those activities but - which are not part of the work. For example, Corresponding Source - includes interface definition files associated with source files for - the work, and the source code for shared libraries and dynamically - linked subprograms that the work is specifically designed to require, - such as by intimate data communication or control flow between those - subprograms and other parts of the work.

- -

The Corresponding Source need not include anything that users - can regenerate automatically from other parts of the Corresponding - Source.

- -

The Corresponding Source for a work in source code form is that - same work.

- -

2. Basic Permissions.

- -

All rights granted under this License are granted for the term of - copyright on the Program, and are irrevocable provided the stated - conditions are met. This License explicitly affirms your unlimited - permission to run the unmodified Program. The output from running a - covered work is covered by this License only if the output, given its - content, constitutes a covered work. This License acknowledges your - rights of fair use or other equivalent, as provided by copyright law.

- -

You may make, run and propagate covered works that you do not - convey, without conditions so long as your license otherwise remains - in force. You may convey covered works to others for the sole purpose - of having them make modifications exclusively for you, or provide you - with facilities for running those works, provided that you comply with - the terms of this License in conveying all material for which you do - not control copyright. Those thus making or running the covered works - for you must do so exclusively on your behalf, under your direction - and control, on terms that prohibit them from making any copies of - your copyrighted material outside their relationship with you.

- -

Conveying under any other circumstances is permitted solely under - the conditions stated below. Sublicensing is not allowed; section 10 - makes it unnecessary.

- -

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

- -

No covered work shall be deemed part of an effective technological - measure under any applicable law fulfilling obligations under article - 11 of the WIPO copyright treaty adopted on 20 December 1996, or - similar laws prohibiting or restricting circumvention of such - measures.

- -

When you convey a covered work, you waive any legal power to forbid - circumvention of technological measures to the extent such circumvention - is effected by exercising rights under this License with respect to - the covered work, and you disclaim any intention to limit operation or - modification of the work as a means of enforcing, against the work's - users, your or third parties' legal rights to forbid circumvention of - technological measures.

- -

4. Conveying Verbatim Copies.

- -

You may convey verbatim copies of the Program's source code as you - receive it, in any medium, provided that you conspicuously and - appropriately publish on each copy an appropriate copyright notice; - keep intact all notices stating that this License and any - non-permissive terms added in accord with section 7 apply to the code; - keep intact all notices of the absence of any warranty; and give all - recipients a copy of this License along with the Program.

- -

You may charge any price or no price for each copy that you convey, - and you may offer support or warranty protection for a fee.

- -

5. Conveying Modified Source Versions.

- -

You may convey a work based on the Program, or the modifications to - produce it from the Program, in the form of source code under the - terms of section 4, provided that you also meet all of these conditions:

- -
    -
  • a) The work must carry prominent notices stating that you modified - it, and giving a relevant date.
  • - -
  • b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - “keep intact all notices”.
  • - -
  • c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it.
  • - -
  • d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so.
  • -
- -

A compilation of a covered work with other separate and independent - works, which are not by their nature extensions of the covered work, - and which are not combined with it such as to form a larger program, - in or on a volume of a storage or distribution medium, is called an - “aggregate” if the compilation and its resulting copyright are not - used to limit the access or legal rights of the compilation's users - beyond what the individual works permit. Inclusion of a covered work - in an aggregate does not cause this License to apply to the other - parts of the aggregate.

- -

6. Conveying Non-Source Forms.

- -

You may convey a covered work in object code form under the terms - of sections 4 and 5, provided that you also convey the - machine-readable Corresponding Source under the terms of this License, - in one of these ways:

- -
    -
  • a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange.
  • - -
  • b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge.
  • - -
  • c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b.
  • - -
  • d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements.
  • - -
  • e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d.
  • -
- -

A separable portion of the object code, whose source code is excluded - from the Corresponding Source as a System Library, need not be - included in conveying the object code work.

- -

A “User Product” is either (1) a “consumer product”, which means any - tangible personal property which is normally used for personal, family, - or household purposes, or (2) anything designed or sold for incorporation - into a dwelling. In determining whether a product is a consumer product, - doubtful cases shall be resolved in favor of coverage. For a particular - product received by a particular user, “normally used” refers to a - typical or common use of that class of product, regardless of the status - of the particular user or of the way in which the particular user - actually uses, or expects or is expected to use, the product. A product - is a consumer product regardless of whether the product has substantial - commercial, industrial or non-consumer uses, unless such uses represent - the only significant mode of use of the product.

- -

“Installation Information” for a User Product means any methods, - procedures, authorization keys, or other information required to install - and execute modified versions of a covered work in that User Product from - a modified version of its Corresponding Source. The information must - suffice to ensure that the continued functioning of the modified object - code is in no case prevented or interfered with solely because - modification has been made.

- -

If you convey an object code work under this section in, or with, or - specifically for use in, a User Product, and the conveying occurs as - part of a transaction in which the right of possession and use of the - User Product is transferred to the recipient in perpetuity or for a - fixed term (regardless of how the transaction is characterized), the - Corresponding Source conveyed under this section must be accompanied - by the Installation Information. But this requirement does not apply - if neither you nor any third party retains the ability to install - modified object code on the User Product (for example, the work has - been installed in ROM).

- -

The requirement to provide Installation Information does not include a - requirement to continue to provide support service, warranty, or updates - for a work that has been modified or installed by the recipient, or for - the User Product in which it has been modified or installed. Access to a - network may be denied when the modification itself materially and - adversely affects the operation of the network or violates the rules and - protocols for communication across the network.

- -

Corresponding Source conveyed, and Installation Information provided, - in accord with this section must be in a format that is publicly - documented (and with an implementation available to the public in - source code form), and must require no special password or key for - unpacking, reading or copying.

- -

7. Additional Terms.

- -

“Additional permissions” are terms that supplement the terms of this - License by making exceptions from one or more of its conditions. - Additional permissions that are applicable to the entire Program shall - be treated as though they were included in this License, to the extent - that they are valid under applicable law. If additional permissions - apply only to part of the Program, that part may be used separately - under those permissions, but the entire Program remains governed by - this License without regard to the additional permissions.

- -

When you convey a copy of a covered work, you may at your option - remove any additional permissions from that copy, or from any part of - it. (Additional permissions may be written to require their own - removal in certain cases when you modify the work.) You may place - additional permissions on material, added by you to a covered work, - for which you have or can give appropriate copyright permission.

- -

Notwithstanding any other provision of this License, for material you - add to a covered work, you may (if authorized by the copyright holders of - that material) supplement the terms of this License with terms:

- -
    -
  • a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or
  • - -
  • b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or
  • - -
  • c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or
  • - -
  • d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or
  • - -
  • e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or
  • - -
  • f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors.
  • -
- -

All other non-permissive additional terms are considered “further - restrictions” within the meaning of section 10. If the Program as you - received it, or any part of it, contains a notice stating that it is - governed by this License along with a term that is a further - restriction, you may remove that term. If a license document contains - a further restriction but permits relicensing or conveying under this - License, you may add to a covered work material governed by the terms - of that license document, provided that the further restriction does - not survive such relicensing or conveying.

- -

If you add terms to a covered work in accord with this section, you - must place, in the relevant source files, a statement of the - additional terms that apply to those files, or a notice indicating - where to find the applicable terms.

- -

Additional terms, permissive or non-permissive, may be stated in the - form of a separately written license, or stated as exceptions; - the above requirements apply either way.

- -

8. Termination.

- -

You may not propagate or modify a covered work except as expressly - provided under this License. Any attempt otherwise to propagate or - modify it is void, and will automatically terminate your rights under - this License (including any patent licenses granted under the third - paragraph of section 11).

- -

However, if you cease all violation of this License, then your - license from a particular copyright holder is reinstated (a) - provisionally, unless and until the copyright holder explicitly and - finally terminates your license, and (b) permanently, if the copyright - holder fails to notify you of the violation by some reasonable means - prior to 60 days after the cessation.

- -

Moreover, your license from a particular copyright holder is - reinstated permanently if the copyright holder notifies you of the - violation by some reasonable means, this is the first time you have - received notice of violation of this License (for any work) from that - copyright holder, and you cure the violation prior to 30 days after - your receipt of the notice.

- -

Termination of your rights under this section does not terminate the - licenses of parties who have received copies or rights from you under - this License. If your rights have been terminated and not permanently - reinstated, you do not qualify to receive new licenses for the same - material under section 10.

- -

9. Acceptance Not Required for Having Copies.

- -

You are not required to accept this License in order to receive or - run a copy of the Program. Ancillary propagation of a covered work - occurring solely as a consequence of using peer-to-peer transmission - to receive a copy likewise does not require acceptance. However, - nothing other than this License grants you permission to propagate or - modify any covered work. These actions infringe copyright if you do - not accept this License. Therefore, by modifying or propagating a - covered work, you indicate your acceptance of this License to do so.

- -

10. Automatic Licensing of Downstream Recipients.

- -

Each time you convey a covered work, the recipient automatically - receives a license from the original licensors, to run, modify and - propagate that work, subject to this License. You are not responsible - for enforcing compliance by third parties with this License.

- -

An “entity transaction” is a transaction transferring control of an - organization, or substantially all assets of one, or subdividing an - organization, or merging organizations. If propagation of a covered - work results from an entity transaction, each party to that - transaction who receives a copy of the work also receives whatever - licenses to the work the party's predecessor in interest had or could - give under the previous paragraph, plus a right to possession of the - Corresponding Source of the work from the predecessor in interest, if - the predecessor has it or can get it with reasonable efforts.

- -

You may not impose any further restrictions on the exercise of the - rights granted or affirmed under this License. For example, you may - not impose a license fee, royalty, or other charge for exercise of - rights granted under this License, and you may not initiate litigation - (including a cross-claim or counterclaim in a lawsuit) alleging that - any patent claim is infringed by making, using, selling, offering for - sale, or importing the Program or any portion of it.

- -

11. Patents.

- -

A “contributor” is a copyright holder who authorizes use under this - License of the Program or a work on which the Program is based. The - work thus licensed is called the contributor's “contributor version”.

- -

A contributor's “essential patent claims” are all patent claims - owned or controlled by the contributor, whether already acquired or - hereafter acquired, that would be infringed by some manner, permitted - by this License, of making, using, or selling its contributor version, - but do not include claims that would be infringed only as a - consequence of further modification of the contributor version. For - purposes of this definition, “control” includes the right to grant - patent sublicenses in a manner consistent with the requirements of - this License.

- -

Each contributor grants you a non-exclusive, worldwide, royalty-free - patent license under the contributor's essential patent claims, to - make, use, sell, offer for sale, import and otherwise run, modify and - propagate the contents of its contributor version.

- -

In the following three paragraphs, a “patent license” is any express - agreement or commitment, however denominated, not to enforce a patent - (such as an express permission to practice a patent or covenant not to - sue for patent infringement). To “grant” such a patent license to a - party means to make such an agreement or commitment not to enforce a - patent against the party.

- -

If you convey a covered work, knowingly relying on a patent license, - and the Corresponding Source of the work is not available for anyone - to copy, free of charge and under the terms of this License, through a - publicly available network server or other readily accessible means, - then you must either (1) cause the Corresponding Source to be so - available, or (2) arrange to deprive yourself of the benefit of the - patent license for this particular work, or (3) arrange, in a manner - consistent with the requirements of this License, to extend the patent - license to downstream recipients. “Knowingly relying” means you have - actual knowledge that, but for the patent license, your conveying the - covered work in a country, or your recipient's use of the covered work - in a country, would infringe one or more identifiable patents in that - country that you have reason to believe are valid.

- -

If, pursuant to or in connection with a single transaction or - arrangement, you convey, or propagate by procuring conveyance of, a - covered work, and grant a patent license to some of the parties - receiving the covered work authorizing them to use, propagate, modify - or convey a specific copy of the covered work, then the patent license - you grant is automatically extended to all recipients of the covered - work and works based on it.

- -

A patent license is “discriminatory” if it does not include within - the scope of its coverage, prohibits the exercise of, or is - conditioned on the non-exercise of one or more of the rights that are - specifically granted under this License. You may not convey a covered - work if you are a party to an arrangement with a third party that is - in the business of distributing software, under which you make payment - to the third party based on the extent of your activity of conveying - the work, and under which the third party grants, to any of the - parties who would receive the covered work from you, a discriminatory - patent license (a) in connection with copies of the covered work - conveyed by you (or copies made from those copies), or (b) primarily - for and in connection with specific products or compilations that - contain the covered work, unless you entered into that arrangement, - or that patent license was granted, prior to 28 March 2007.

- -

Nothing in this License shall be construed as excluding or limiting - any implied license or other defenses to infringement that may - otherwise be available to you under applicable patent law.

- -

12. No Surrender of Others' Freedom.

- -

If conditions are imposed on you (whether by court order, agreement or - otherwise) that contradict the conditions of this License, they do not - excuse you from the conditions of this License. If you cannot convey a - covered work so as to satisfy simultaneously your obligations under this - License and any other pertinent obligations, then as a consequence you may - not convey it at all. For example, if you agree to terms that obligate you - to collect a royalty for further conveying from those to whom you convey - the Program, the only way you could satisfy both those terms and this - License would be to refrain entirely from conveying the Program.

- -

13. Use with the GNU Affero General Public License.

- -

Notwithstanding any other provision of this License, you have - permission to link or combine any covered work with a work licensed - under version 3 of the GNU Affero General Public License into a single - combined work, and to convey the resulting work. The terms of this - License will continue to apply to the part which is the covered work, - but the special requirements of the GNU Affero General Public License, - section 13, concerning interaction through a network will apply to the - combination as such.

- -

14. Revised Versions of this License.

- -

The Free Software Foundation may publish revised and/or new versions of - the GNU General Public License from time to time. Such new versions will - be similar in spirit to the present version, but may differ in detail to - address new problems or concerns.

- -

Each version is given a distinguishing version number. If the - Program specifies that a certain numbered version of the GNU General - Public License “or any later version” applies to it, you have the - option of following the terms and conditions either of that numbered - version or of any later version published by the Free Software - Foundation. If the Program does not specify a version number of the - GNU General Public License, you may choose any version ever published - by the Free Software Foundation.

- -

If the Program specifies that a proxy can decide which future - versions of the GNU General Public License can be used, that proxy's - public statement of acceptance of a version permanently authorizes you - to choose that version for the Program.

- -

Later license versions may give you additional or different - permissions. However, no additional obligations are imposed on any - author or copyright holder as a result of your choosing to follow a - later version.

- -

15. Disclaimer of Warranty.

- -

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY - OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

- -

16. Limitation of Liability.

- -

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - SUCH DAMAGES.

- -

17. Interpretation of Sections 15 and 16.

- -

If the disclaimer of warranty and limitation of liability provided - above cannot be given local legal effect according to their terms, - reviewing courts shall apply local law that most closely approximates - an absolute waiver of all civil liability in connection with the - Program, unless a warranty or assumption of liability accompanies a - copy of the Program in return for a fee.

- -

END OF TERMS AND CONDITIONS

-
- form['doorgets_licence']->checkbox($doorgets->l("J'ai lu et j'accepte les conditions d'utilisation de doorGets"),'licence_validation','1',''); ?> -
-
- form['doorgets_licence']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_licence']->close(); echo $doorgets->getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ form['doorgets_licence']->open('post','',''); ?> +
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 1/5 - l("Conditions générales d'utilisation"); ?> +
+
+ form['doorgets_licence']->input('','hidden','hidden','1'); ?> +
+ +

GNU GENERAL PUBLIC LICENSE

+

Version 3, 29 June 2007

+ +

Copyright © 2007 Free Software Foundation, Inc. + <http://fsf.org/>

+ Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed.

+ +

Preamble

+ +

The GNU General Public License is a free, copyleft license for + software and other kinds of works.

+ +

The licenses for most software and other practical works are designed + to take away your freedom to share and change the works. By contrast, + the GNU General Public License is intended to guarantee your freedom to + share and change all versions of a program--to make sure it remains free + software for all its users. We, the Free Software Foundation, use the + GNU General Public License for most of our software; it applies also to + any other work released this way by its authors. You can apply it to + your programs, too.

+ +

When we speak of free software, we are referring to freedom, not + price. Our General Public Licenses are designed to make sure that you + have the freedom to distribute copies of free software (and charge for + them if you wish), that you receive source code or can get it if you + want it, that you can change the software or use pieces of it in new + free programs, and that you know you can do these things.

+ +

To protect your rights, we need to prevent others from denying you + these rights or asking you to surrender the rights. Therefore, you have + certain responsibilities if you distribute copies of the software, or if + you modify it: responsibilities to respect the freedom of others.

+ +

For example, if you distribute copies of such a program, whether + gratis or for a fee, you must pass on to the recipients the same + freedoms that you received. You must make sure that they, too, receive + or can get the source code. And you must show them these terms so they + know their rights.

+ +

Developers that use the GNU GPL protect your rights with two steps: + (1) assert copyright on the software, and (2) offer you this License + giving you legal permission to copy, distribute and/or modify it.

+ +

For the developers' and authors' protection, the GPL clearly explains + that there is no warranty for this free software. For both users' and + authors' sake, the GPL requires that modified versions be marked as + changed, so that their problems will not be attributed erroneously to + authors of previous versions.

+ +

Some devices are designed to deny users access to install or run + modified versions of the software inside them, although the manufacturer + can do so. This is fundamentally incompatible with the aim of + protecting users' freedom to change the software. The systematic + pattern of such abuse occurs in the area of products for individuals to + use, which is precisely where it is most unacceptable. Therefore, we + have designed this version of the GPL to prohibit the practice for those + products. If such problems arise substantially in other domains, we + stand ready to extend this provision to those domains in future versions + of the GPL, as needed to protect the freedom of users.

+ +

Finally, every program is threatened constantly by software patents. + States should not allow patents to restrict development and use of + software on general-purpose computers, but in those that do, we wish to + avoid the special danger that patents applied to a free program could + make it effectively proprietary. To prevent this, the GPL assures that + patents cannot be used to render the program non-free.

+ +

The precise terms and conditions for copying, distribution and + modification follow.

+ +

TERMS AND CONDITIONS

+ +

0. Definitions.

+ +

“This License” refers to version 3 of the GNU General Public License.

+ +

“Copyright” also means copyright-like laws that apply to other kinds of + works, such as semiconductor masks.

+ +

“The Program” refers to any copyrightable work licensed under this + License. Each licensee is addressed as “you”. “Licensees” and + “recipients” may be individuals or organizations.

+ +

To “modify” a work means to copy from or adapt all or part of the work + in a fashion requiring copyright permission, other than the making of an + exact copy. The resulting work is called a “modified version” of the + earlier work or a work “based on” the earlier work.

+ +

A “covered work” means either the unmodified Program or a work based + on the Program.

+ +

To “propagate” a work means to do anything with it that, without + permission, would make you directly or secondarily liable for + infringement under applicable copyright law, except executing it on a + computer or modifying a private copy. Propagation includes copying, + distribution (with or without modification), making available to the + public, and in some countries other activities as well.

+ +

To “convey” a work means any kind of propagation that enables other + parties to make or receive copies. Mere interaction with a user through + a computer network, with no transfer of a copy, is not conveying.

+ +

An interactive user interface displays “Appropriate Legal Notices” + to the extent that it includes a convenient and prominently visible + feature that (1) displays an appropriate copyright notice, and (2) + tells the user that there is no warranty for the work (except to the + extent that warranties are provided), that licensees may convey the + work under this License, and how to view a copy of this License. If + the interface presents a list of user commands or options, such as a + menu, a prominent item in the list meets this criterion.

+ +

1. Source Code.

+ +

The “source code” for a work means the preferred form of the work + for making modifications to it. “Object code” means any non-source + form of a work.

+ +

A “Standard Interface” means an interface that either is an official + standard defined by a recognized standards body, or, in the case of + interfaces specified for a particular programming language, one that + is widely used among developers working in that language.

+ +

The “System Libraries” of an executable work include anything, other + than the work as a whole, that (a) is included in the normal form of + packaging a Major Component, but which is not part of that Major + Component, and (b) serves only to enable use of the work with that + Major Component, or to implement a Standard Interface for which an + implementation is available to the public in source code form. A + “Major Component”, in this context, means a major essential component + (kernel, window system, and so on) of the specific operating system + (if any) on which the executable work runs, or a compiler used to + produce the work, or an object code interpreter used to run it.

+ +

The “Corresponding Source” for a work in object code form means all + the source code needed to generate, install, and (for an executable + work) run the object code and to modify the work, including scripts to + control those activities. However, it does not include the work's + System Libraries, or general-purpose tools or generally available free + programs which are used unmodified in performing those activities but + which are not part of the work. For example, Corresponding Source + includes interface definition files associated with source files for + the work, and the source code for shared libraries and dynamically + linked subprograms that the work is specifically designed to require, + such as by intimate data communication or control flow between those + subprograms and other parts of the work.

+ +

The Corresponding Source need not include anything that users + can regenerate automatically from other parts of the Corresponding + Source.

+ +

The Corresponding Source for a work in source code form is that + same work.

+ +

2. Basic Permissions.

+ +

All rights granted under this License are granted for the term of + copyright on the Program, and are irrevocable provided the stated + conditions are met. This License explicitly affirms your unlimited + permission to run the unmodified Program. The output from running a + covered work is covered by this License only if the output, given its + content, constitutes a covered work. This License acknowledges your + rights of fair use or other equivalent, as provided by copyright law.

+ +

You may make, run and propagate covered works that you do not + convey, without conditions so long as your license otherwise remains + in force. You may convey covered works to others for the sole purpose + of having them make modifications exclusively for you, or provide you + with facilities for running those works, provided that you comply with + the terms of this License in conveying all material for which you do + not control copyright. Those thus making or running the covered works + for you must do so exclusively on your behalf, under your direction + and control, on terms that prohibit them from making any copies of + your copyrighted material outside their relationship with you.

+ +

Conveying under any other circumstances is permitted solely under + the conditions stated below. Sublicensing is not allowed; section 10 + makes it unnecessary.

+ +

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

+ +

No covered work shall be deemed part of an effective technological + measure under any applicable law fulfilling obligations under article + 11 of the WIPO copyright treaty adopted on 20 December 1996, or + similar laws prohibiting or restricting circumvention of such + measures.

+ +

When you convey a covered work, you waive any legal power to forbid + circumvention of technological measures to the extent such circumvention + is effected by exercising rights under this License with respect to + the covered work, and you disclaim any intention to limit operation or + modification of the work as a means of enforcing, against the work's + users, your or third parties' legal rights to forbid circumvention of + technological measures.

+ +

4. Conveying Verbatim Copies.

+ +

You may convey verbatim copies of the Program's source code as you + receive it, in any medium, provided that you conspicuously and + appropriately publish on each copy an appropriate copyright notice; + keep intact all notices stating that this License and any + non-permissive terms added in accord with section 7 apply to the code; + keep intact all notices of the absence of any warranty; and give all + recipients a copy of this License along with the Program.

+ +

You may charge any price or no price for each copy that you convey, + and you may offer support or warranty protection for a fee.

+ +

5. Conveying Modified Source Versions.

+ +

You may convey a work based on the Program, or the modifications to + produce it from the Program, in the form of source code under the + terms of section 4, provided that you also meet all of these conditions:

+ +
    +
  • a) The work must carry prominent notices stating that you modified + it, and giving a relevant date.
  • + +
  • b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + “keep intact all notices”.
  • + +
  • c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it.
  • + +
  • d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so.
  • +
+ +

A compilation of a covered work with other separate and independent + works, which are not by their nature extensions of the covered work, + and which are not combined with it such as to form a larger program, + in or on a volume of a storage or distribution medium, is called an + “aggregate” if the compilation and its resulting copyright are not + used to limit the access or legal rights of the compilation's users + beyond what the individual works permit. Inclusion of a covered work + in an aggregate does not cause this License to apply to the other + parts of the aggregate.

+ +

6. Conveying Non-Source Forms.

+ +

You may convey a covered work in object code form under the terms + of sections 4 and 5, provided that you also convey the + machine-readable Corresponding Source under the terms of this License, + in one of these ways:

+ +
    +
  • a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange.
  • + +
  • b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge.
  • + +
  • c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b.
  • + +
  • d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements.
  • + +
  • e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d.
  • +
+ +

A separable portion of the object code, whose source code is excluded + from the Corresponding Source as a System Library, need not be + included in conveying the object code work.

+ +

A “User Product” is either (1) a “consumer product”, which means any + tangible personal property which is normally used for personal, family, + or household purposes, or (2) anything designed or sold for incorporation + into a dwelling. In determining whether a product is a consumer product, + doubtful cases shall be resolved in favor of coverage. For a particular + product received by a particular user, “normally used” refers to a + typical or common use of that class of product, regardless of the status + of the particular user or of the way in which the particular user + actually uses, or expects or is expected to use, the product. A product + is a consumer product regardless of whether the product has substantial + commercial, industrial or non-consumer uses, unless such uses represent + the only significant mode of use of the product.

+ +

“Installation Information” for a User Product means any methods, + procedures, authorization keys, or other information required to install + and execute modified versions of a covered work in that User Product from + a modified version of its Corresponding Source. The information must + suffice to ensure that the continued functioning of the modified object + code is in no case prevented or interfered with solely because + modification has been made.

+ +

If you convey an object code work under this section in, or with, or + specifically for use in, a User Product, and the conveying occurs as + part of a transaction in which the right of possession and use of the + User Product is transferred to the recipient in perpetuity or for a + fixed term (regardless of how the transaction is characterized), the + Corresponding Source conveyed under this section must be accompanied + by the Installation Information. But this requirement does not apply + if neither you nor any third party retains the ability to install + modified object code on the User Product (for example, the work has + been installed in ROM).

+ +

The requirement to provide Installation Information does not include a + requirement to continue to provide support service, warranty, or updates + for a work that has been modified or installed by the recipient, or for + the User Product in which it has been modified or installed. Access to a + network may be denied when the modification itself materially and + adversely affects the operation of the network or violates the rules and + protocols for communication across the network.

+ +

Corresponding Source conveyed, and Installation Information provided, + in accord with this section must be in a format that is publicly + documented (and with an implementation available to the public in + source code form), and must require no special password or key for + unpacking, reading or copying.

+ +

7. Additional Terms.

+ +

“Additional permissions” are terms that supplement the terms of this + License by making exceptions from one or more of its conditions. + Additional permissions that are applicable to the entire Program shall + be treated as though they were included in this License, to the extent + that they are valid under applicable law. If additional permissions + apply only to part of the Program, that part may be used separately + under those permissions, but the entire Program remains governed by + this License without regard to the additional permissions.

+ +

When you convey a copy of a covered work, you may at your option + remove any additional permissions from that copy, or from any part of + it. (Additional permissions may be written to require their own + removal in certain cases when you modify the work.) You may place + additional permissions on material, added by you to a covered work, + for which you have or can give appropriate copyright permission.

+ +

Notwithstanding any other provision of this License, for material you + add to a covered work, you may (if authorized by the copyright holders of + that material) supplement the terms of this License with terms:

+ +
    +
  • a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or
  • + +
  • b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or
  • + +
  • c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or
  • + +
  • d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or
  • + +
  • e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or
  • + +
  • f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors.
  • +
+ +

All other non-permissive additional terms are considered “further + restrictions” within the meaning of section 10. If the Program as you + received it, or any part of it, contains a notice stating that it is + governed by this License along with a term that is a further + restriction, you may remove that term. If a license document contains + a further restriction but permits relicensing or conveying under this + License, you may add to a covered work material governed by the terms + of that license document, provided that the further restriction does + not survive such relicensing or conveying.

+ +

If you add terms to a covered work in accord with this section, you + must place, in the relevant source files, a statement of the + additional terms that apply to those files, or a notice indicating + where to find the applicable terms.

+ +

Additional terms, permissive or non-permissive, may be stated in the + form of a separately written license, or stated as exceptions; + the above requirements apply either way.

+ +

8. Termination.

+ +

You may not propagate or modify a covered work except as expressly + provided under this License. Any attempt otherwise to propagate or + modify it is void, and will automatically terminate your rights under + this License (including any patent licenses granted under the third + paragraph of section 11).

+ +

However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly and + finally terminates your license, and (b) permanently, if the copyright + holder fails to notify you of the violation by some reasonable means + prior to 60 days after the cessation.

+ +

Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you have + received notice of violation of this License (for any work) from that + copyright holder, and you cure the violation prior to 30 days after + your receipt of the notice.

+ +

Termination of your rights under this section does not terminate the + licenses of parties who have received copies or rights from you under + this License. If your rights have been terminated and not permanently + reinstated, you do not qualify to receive new licenses for the same + material under section 10.

+ +

9. Acceptance Not Required for Having Copies.

+ +

You are not required to accept this License in order to receive or + run a copy of the Program. Ancillary propagation of a covered work + occurring solely as a consequence of using peer-to-peer transmission + to receive a copy likewise does not require acceptance. However, + nothing other than this License grants you permission to propagate or + modify any covered work. These actions infringe copyright if you do + not accept this License. Therefore, by modifying or propagating a + covered work, you indicate your acceptance of this License to do so.

+ +

10. Automatic Licensing of Downstream Recipients.

+ +

Each time you convey a covered work, the recipient automatically + receives a license from the original licensors, to run, modify and + propagate that work, subject to this License. You are not responsible + for enforcing compliance by third parties with this License.

+ +

An “entity transaction” is a transaction transferring control of an + organization, or substantially all assets of one, or subdividing an + organization, or merging organizations. If propagation of a covered + work results from an entity transaction, each party to that + transaction who receives a copy of the work also receives whatever + licenses to the work the party's predecessor in interest had or could + give under the previous paragraph, plus a right to possession of the + Corresponding Source of the work from the predecessor in interest, if + the predecessor has it or can get it with reasonable efforts.

+ +

You may not impose any further restrictions on the exercise of the + rights granted or affirmed under this License. For example, you may + not impose a license fee, royalty, or other charge for exercise of + rights granted under this License, and you may not initiate litigation + (including a cross-claim or counterclaim in a lawsuit) alleging that + any patent claim is infringed by making, using, selling, offering for + sale, or importing the Program or any portion of it.

+ +

11. Patents.

+ +

A “contributor” is a copyright holder who authorizes use under this + License of the Program or a work on which the Program is based. The + work thus licensed is called the contributor's “contributor version”.

+ +

A contributor's “essential patent claims” are all patent claims + owned or controlled by the contributor, whether already acquired or + hereafter acquired, that would be infringed by some manner, permitted + by this License, of making, using, or selling its contributor version, + but do not include claims that would be infringed only as a + consequence of further modification of the contributor version. For + purposes of this definition, “control” includes the right to grant + patent sublicenses in a manner consistent with the requirements of + this License.

+ +

Each contributor grants you a non-exclusive, worldwide, royalty-free + patent license under the contributor's essential patent claims, to + make, use, sell, offer for sale, import and otherwise run, modify and + propagate the contents of its contributor version.

+ +

In the following three paragraphs, a “patent license” is any express + agreement or commitment, however denominated, not to enforce a patent + (such as an express permission to practice a patent or covenant not to + sue for patent infringement). To “grant” such a patent license to a + party means to make such an agreement or commitment not to enforce a + patent against the party.

+ +

If you convey a covered work, knowingly relying on a patent license, + and the Corresponding Source of the work is not available for anyone + to copy, free of charge and under the terms of this License, through a + publicly available network server or other readily accessible means, + then you must either (1) cause the Corresponding Source to be so + available, or (2) arrange to deprive yourself of the benefit of the + patent license for this particular work, or (3) arrange, in a manner + consistent with the requirements of this License, to extend the patent + license to downstream recipients. “Knowingly relying” means you have + actual knowledge that, but for the patent license, your conveying the + covered work in a country, or your recipient's use of the covered work + in a country, would infringe one or more identifiable patents in that + country that you have reason to believe are valid.

+ +

If, pursuant to or in connection with a single transaction or + arrangement, you convey, or propagate by procuring conveyance of, a + covered work, and grant a patent license to some of the parties + receiving the covered work authorizing them to use, propagate, modify + or convey a specific copy of the covered work, then the patent license + you grant is automatically extended to all recipients of the covered + work and works based on it.

+ +

A patent license is “discriminatory” if it does not include within + the scope of its coverage, prohibits the exercise of, or is + conditioned on the non-exercise of one or more of the rights that are + specifically granted under this License. You may not convey a covered + work if you are a party to an arrangement with a third party that is + in the business of distributing software, under which you make payment + to the third party based on the extent of your activity of conveying + the work, and under which the third party grants, to any of the + parties who would receive the covered work from you, a discriminatory + patent license (a) in connection with copies of the covered work + conveyed by you (or copies made from those copies), or (b) primarily + for and in connection with specific products or compilations that + contain the covered work, unless you entered into that arrangement, + or that patent license was granted, prior to 28 March 2007.

+ +

Nothing in this License shall be construed as excluding or limiting + any implied license or other defenses to infringement that may + otherwise be available to you under applicable patent law.

+ +

12. No Surrender of Others' Freedom.

+ +

If conditions are imposed on you (whether by court order, agreement or + otherwise) that contradict the conditions of this License, they do not + excuse you from the conditions of this License. If you cannot convey a + covered work so as to satisfy simultaneously your obligations under this + License and any other pertinent obligations, then as a consequence you may + not convey it at all. For example, if you agree to terms that obligate you + to collect a royalty for further conveying from those to whom you convey + the Program, the only way you could satisfy both those terms and this + License would be to refrain entirely from conveying the Program.

+ +

13. Use with the GNU Affero General Public License.

+ +

Notwithstanding any other provision of this License, you have + permission to link or combine any covered work with a work licensed + under version 3 of the GNU Affero General Public License into a single + combined work, and to convey the resulting work. The terms of this + License will continue to apply to the part which is the covered work, + but the special requirements of the GNU Affero General Public License, + section 13, concerning interaction through a network will apply to the + combination as such.

+ +

14. Revised Versions of this License.

+ +

The Free Software Foundation may publish revised and/or new versions of + the GNU General Public License from time to time. Such new versions will + be similar in spirit to the present version, but may differ in detail to + address new problems or concerns.

+ +

Each version is given a distinguishing version number. If the + Program specifies that a certain numbered version of the GNU General + Public License “or any later version” applies to it, you have the + option of following the terms and conditions either of that numbered + version or of any later version published by the Free Software + Foundation. If the Program does not specify a version number of the + GNU General Public License, you may choose any version ever published + by the Free Software Foundation.

+ +

If the Program specifies that a proxy can decide which future + versions of the GNU General Public License can be used, that proxy's + public statement of acceptance of a version permanently authorizes you + to choose that version for the Program.

+ +

Later license versions may give you additional or different + permissions. However, no additional obligations are imposed on any + author or copyright holder as a result of your choosing to follow a + later version.

+ +

15. Disclaimer of Warranty.

+ +

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT + HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY + OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM + IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF + ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+ +

16. Limitation of Liability.

+ +

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS + THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE + USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), + EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGES.

+ +

17. Interpretation of Sections 15 and 16.

+ +

If the disclaimer of warranty and limitation of liability provided + above cannot be given local legal effect according to their terms, + reviewing courts shall apply local law that most closely approximates + an absolute waiver of all civil liability in connection with the + Program, unless a warranty or assumption of liability accompanies a + copy of the Program in return for a fee.

+ +

END OF TERMS AND CONDITIONS

+
+ form['doorgets_licence']->checkbox($doorgets->l("J'ai lu et j'accepte les conditions d'utilisation de doorGets"),'licence_validation','1',''); ?> +
+
+ form['doorgets_licence']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_licence']->close(); echo $doorgets->getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/polymorphic.tpl.php b/setup/cache/template/polymorphic.tpl.php old mode 100644 new mode 100755 index a5f5b0e..6e78b9c --- a/setup/cache/template/polymorphic.tpl.php +++ b/setup/cache/template/polymorphic.tpl.php @@ -1,59 +1,59 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- l("Vous avez presque fini..."); ?> -
- form['doorgets_polymorphic']->open('post','',''); ?> - form['doorgets_polymorphic']->input('','hidden','hidden','1'); ?> -
-
- l("Cliquez sur le bouton ci-dessous pour générer votre site."); ?> -
- l("Vous allez être ensuite redirigé vers la page d'administration."); ?> -

-
- form['doorgets_polymorphic']->submit($doorgets->l('Génerer mon site internet doorGets')); ?> -
-
- " l('Merci'); ?> ! " -
-
- form['doorgets_polymorphic']->close(); ?> -
- getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ l("Vous avez presque fini..."); ?> +
+ form['doorgets_polymorphic']->open('post','',''); ?> + form['doorgets_polymorphic']->input('','hidden','hidden','1'); ?> +
+
+ l("Cliquez sur le bouton ci-dessous pour générer votre site."); ?> +
+ l("Vous allez être ensuite redirigé vers la page d'administration."); ?> +

+
+ form['doorgets_polymorphic']->submit($doorgets->l('Génerer mon site internet doorGets')); ?> +
+
+ " l('Merci'); ?> ! " +
+
+ form['doorgets_polymorphic']->close(); ?> +
+ getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/root.tpl.php b/setup/cache/template/root.tpl.php old mode 100644 new mode 100755 index c1c8031..1fc6a05 --- a/setup/cache/template/root.tpl.php +++ b/setup/cache/template/root.tpl.php @@ -1,46 +1,46 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- form['doorgets_root']->open('post','',''); ?> -
- doorGets 5.0 -
-
- form['doorgets_root']->select($doorgets->l('Choisir votre langue').'
','language',$doorgets->getAllLanguages(),$doorgets->getLanguage()); ?> -
- form['doorgets_root']->select($doorgets->l('Choisir votre fuseau horaire').'
','time_zone',$this->getArrayZones(),$doorgets->getTimeZone()); ?> -
-
- form['doorgets_root']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_root']->close(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ form['doorgets_root']->open('post','',''); ?> +
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ form['doorgets_root']->select($doorgets->l('Choisir votre langue').'
','language',$doorgets->getAllLanguages(),$doorgets->getLanguage()); ?> +
+ form['doorgets_root']->select($doorgets->l('Choisir votre fuseau horaire').'
','time_zone',$this->getArrayZones(),$doorgets->getTimeZone()); ?> +
+
+ form['doorgets_root']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_root']->close(); ?>
\ No newline at end of file diff --git a/setup/cache/template/website.tpl.php b/setup/cache/template/website.tpl.php old mode 100644 new mode 100755 index 0d2149a..0265792 --- a/setup/cache/template/website.tpl.php +++ b/setup/cache/template/website.tpl.php @@ -1,69 +1,69 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -$yDateNow = date("Y"); $dateCreation = array(); -for($i = $yDateNow;$i> ( $yDateNow - 100);$i--){ $dateCreation[(string)$i] = (int)$i; } - -$nFace = 'http://www.facebook.com/'; -$nTwitter = 'http://www.twitter.com/'; -$nYoutube = 'http://www.youtube.com/user/'; -$nGoogle = 'https://plus.google.com/u/0/'; -$nPinterest = 'https://www.pinterest.com/'; -$nLinkedin = 'http://www.linkedin.com/in/'; -$nMyspace = 'http://www.myspace.com/'; - -?> -
-
- doorGets 5.0 -
-
- 4/5 - l("Configurer votre site internet"); ?> -
- form['doorgets_website']->open('post','',''); ?> -
- form['doorgets_website']->input($doorgets->l('Titre').' * ','title','text',$this->info['title']); ?> -
- form['doorgets_website']->input($doorgets->l('Slogan').' * ','slogan','text',$this->info['slogan']); ?> -
- form['doorgets_website']->input($doorgets->l('Description').' * ','description','text',$this->info['description']); ?> -
- form['doorgets_website']->input($doorgets->l('Mots clés').' * ','keywords','text',$this->info['keywords']); ?> -
- form['doorgets_website']->input($doorgets->l('Copyright'),'copyright','text',$this->info['copyright']); ?> -
- form['doorgets_website']->select($doorgets->l('Année de création'),'year',$dateCreation,$this->info['year']); ?> -
-
- form['doorgets_website']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_website']->close(); echo $doorgets->getHtmlGoBack(); ?> + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +$yDateNow = date("Y"); $dateCreation = array(); +for($i = $yDateNow;$i> ( $yDateNow - 100);$i--){ $dateCreation[(string)$i] = (int)$i; } + +$nFace = 'http://www.facebook.com/'; +$nTwitter = 'http://www.twitter.com/'; +$nYoutube = 'http://www.youtube.com/user/'; +$nGoogle = 'https://plus.google.com/u/0/'; +$nPinterest = 'https://www.pinterest.com/'; +$nLinkedin = 'http://www.linkedin.com/in/'; +$nMyspace = 'http://www.myspace.com/'; + +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 4/5 - l("Configurer votre site internet"); ?> +
+ form['doorgets_website']->open('post','',''); ?> +
+ form['doorgets_website']->input($doorgets->l('Titre').' * ','title','text',$this->info['title']); ?> +
+ form['doorgets_website']->input($doorgets->l('Slogan').' * ','slogan','text',$this->info['slogan']); ?> +
+ form['doorgets_website']->input($doorgets->l('Description').' * ','description','text',$this->info['description']); ?> +
+ form['doorgets_website']->input($doorgets->l('Mots clés').' * ','keywords','text',$this->info['keywords']); ?> +
+ form['doorgets_website']->input($doorgets->l('Copyright'),'copyright','text',$this->info['copyright']); ?> +
+ form['doorgets_website']->select($doorgets->l('Année de création'),'year',$dateCreation,$this->info['year']); ?> +
+
+ form['doorgets_website']->submit($doorgets->l('Etape suivante'),'','submit-next'); echo $doorgets->form['doorgets_website']->close(); echo $doorgets->getHtmlGoBack(); ?>
\ No newline at end of file diff --git a/setup/cache/template/wrapper.tpl.php b/setup/cache/template/wrapper.tpl.php old mode 100644 new mode 100755 index 5b9b0fc..a8e2129 --- a/setup/cache/template/wrapper.tpl.php +++ b/setup/cache/template/wrapper.tpl.php @@ -1,37 +1,37 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - echo $this->getHtmlHeader(); ?> -
- content; ?> -
+ Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + echo $this->getHtmlHeader(); ?> +
+ content; ?> +
getHtmlFooter(); ?> \ No newline at end of file diff --git a/setup/config/config.php b/setup/config/config.php old mode 100644 new mode 100755 index 6cebdbe..f5c7ca6 --- a/setup/config/config.php +++ b/setup/config/config.php @@ -1,60 +1,60 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -define('APP',BASE.'doorgets/app/'); -define('CORE',BASE.'doorgets/core/'); -define('LIB',BASE.'doorgets/lib/'); -define('CONFIG',BASE.'doorgets/config/'); -define('TEMPLATE',BASE.'doorgets/template/'); -define('ROUTER',BASE.'doorgets/routers/'); -define('CONFIGURATION',BASE.'config/'); - -define('THEME',BASE.'themes/'); - -define('LANGUE',BASE.'doorgets/locale/'); -define('LANGUE_DEFAULT_FILE',BASE.'doorgets/locale/temp.lg.php'); - -define('CONTROLLERS',BASE.'doorgets/app/controllers/'); -define('MODELS',BASE.'doorgets/app/models/'); -define('VIEW',BASE.'doorgets/app/views/'); - -define('CACHE_TEMPLATE',BASE.'cache/template/'); - -define('BASE_IMG',BASE.'skin/img/'); -define('BASE_CSS',BASE.'skin/css/'); -define('BASE_JS',BASE.'skin/js/'); - -require_once CORE.'doorgetsInstaller.php'; - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +define('APP',BASE.'doorgets/app/'); +define('CORE',BASE.'doorgets/core/'); +define('LIB',BASE.'doorgets/lib/'); +define('CONFIG',BASE.'doorgets/config/'); +define('TEMPLATE',BASE.'doorgets/template/'); +define('ROUTER',BASE.'doorgets/routers/'); +define('CONFIGURATION',BASE.'config/'); + +define('THEME',BASE.'themes/'); + +define('LANGUE',BASE.'doorgets/locale/'); +define('LANGUE_DEFAULT_FILE',BASE.'doorgets/locale/temp.lg.php'); + +define('CONTROLLERS',BASE.'doorgets/app/controllers/'); +define('MODELS',BASE.'doorgets/app/models/'); +define('VIEW',BASE.'doorgets/app/views/'); + +define('CACHE_TEMPLATE',BASE.'cache/template/'); + +define('BASE_IMG',BASE.'skin/img/'); +define('BASE_CSS',BASE.'skin/css/'); +define('BASE_JS',BASE.'skin/js/'); + +require_once CORE.'doorgetsInstaller.php'; + function __autoload($name){ $file = CORE.$name.'.php'; if(is_file($file)) { require_once $file; } } \ No newline at end of file diff --git a/setup/config/index.php b/setup/config/index.php old mode 100644 new mode 100755 diff --git a/setup/data/database.zip b/setup/data/database.zip old mode 100644 new mode 100755 index 6062e34..a07f068 Binary files a/setup/data/database.zip and b/setup/data/database.zip differ diff --git a/setup/data/doorgets.zip b/setup/data/doorgets.zip index c401dcb..39dbcb9 100644 Binary files a/setup/data/doorgets.zip and b/setup/data/doorgets.zip differ diff --git a/setup/data/index.php b/setup/data/index.php old mode 100644 new mode 100755 index fe4cac5..8d59375 --- a/setup/data/index.php +++ b/setup/data/index.php @@ -1 +1,4 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class adminController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class adminController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/chmodController.php b/setup/doorgets/app/controllers/chmodController.php old mode 100644 new mode 100755 index a3f3173..cdf921d --- a/setup/doorgets/app/controllers/chmodController.php +++ b/setup/doorgets/app/controllers/chmodController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class chmodController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class chmodController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/databaseController.php b/setup/doorgets/app/controllers/databaseController.php old mode 100644 new mode 100755 index ab1c44e..71528ba --- a/setup/doorgets/app/controllers/databaseController.php +++ b/setup/doorgets/app/controllers/databaseController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class databaseController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class databaseController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/licenceController.php b/setup/doorgets/app/controllers/licenceController.php old mode 100644 new mode 100755 index 624c4fc..a3d3875 --- a/setup/doorgets/app/controllers/licenceController.php +++ b/setup/doorgets/app/controllers/licenceController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class licenceController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class licenceController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/polymorphicController.php b/setup/doorgets/app/controllers/polymorphicController.php old mode 100644 new mode 100755 index 0cc0597..fc93ca6 --- a/setup/doorgets/app/controllers/polymorphicController.php +++ b/setup/doorgets/app/controllers/polymorphicController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class polymorphicController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class polymorphicController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/rootController.php b/setup/doorgets/app/controllers/rootController.php old mode 100644 new mode 100755 index ec9c39e..9992acf --- a/setup/doorgets/app/controllers/rootController.php +++ b/setup/doorgets/app/controllers/rootController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class rootController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class rootController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/controllers/websiteController.php b/setup/doorgets/app/controllers/websiteController.php old mode 100644 new mode 100755 index 8fcacaf..eb0c827 --- a/setup/doorgets/app/controllers/websiteController.php +++ b/setup/doorgets/app/controllers/websiteController.php @@ -1,42 +1,42 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class websiteController extends doorgetsController{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class websiteController extends doorgetsController{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/adminModel.php b/setup/doorgets/app/models/adminModel.php old mode 100644 new mode 100755 index 70882f4..e2b4c8a --- a/setup/doorgets/app/models/adminModel.php +++ b/setup/doorgets/app/models/adminModel.php @@ -1,93 +1,93 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class adminModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if( empty($form->i['login']) ) - { - $form->e['doorgets_admin_login'] = "ok"; - } - - if( empty($form->i['password']) ) - { - $form->e['doorgets_admin_password'] = "ok"; - } - - $var = $form->i['email']; - $isEmail = filter_var($var, FILTER_VALIDATE_EMAIL); - if( empty($isEmail) ){ - - $form->e['doorgets_admin_email'] = 'ok'; - - } - - if( empty($form->e) ){ - - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - - $fileTemp = BASE.'temp/admin.php'; - $isAdminInfos = serialize($form->i); - @file_put_contents($fileTemp,$isAdminInfos); - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - - } - - } - } - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class adminModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if( empty($form->i['login']) ) + { + $form->e['doorgets_admin_login'] = "ok"; + } + + if( empty($form->i['password']) ) + { + $form->e['doorgets_admin_password'] = "ok"; + } + + $var = $form->i['email']; + $isEmail = filter_var($var, FILTER_VALIDATE_EMAIL); + if( empty($isEmail) ){ + + $form->e['doorgets_admin_email'] = 'ok'; + + } + + if( empty($form->e) ){ + + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + + $fileTemp = BASE.'temp/admin.php'; + $isAdminInfos = serialize($form->i); + @file_put_contents($fileTemp,$isAdminInfos); + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + + } + + } + } + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/chmodModel.php b/setup/doorgets/app/models/chmodModel.php old mode 100644 new mode 100755 index 94c1918..82e90c9 --- a/setup/doorgets/app/models/chmodModel.php +++ b/setup/doorgets/app/models/chmodModel.php @@ -1,67 +1,67 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class chmodModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - - // to do - } - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - } - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class chmodModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + + // to do + } + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + } + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/databaseModel.php b/setup/doorgets/app/models/databaseModel.php old mode 100644 new mode 100755 index d6692e0..20b5574 --- a/setup/doorgets/app/models/databaseModel.php +++ b/setup/doorgets/app/models/databaseModel.php @@ -1,113 +1,113 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class databaseModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $isConnected = false; - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if( empty($form->i['hote']) ) - { - $form->e['doorgets_database_hote'] = "ok"; - } - if( empty($form->i['login']) ) - { - $form->e['doorgets_database_login'] = "ok"; - } - if( empty($form->i['name']) ) - { - $form->e['doorgets_database_name'] = "ok"; - } - - - if( empty($form->e) ){ - - $isConnected = $this->isConnectedToDatabase($form->i['hote'],$form->i['name'],$form->i['login'],$form->i['password']); - - } - - if($isConnected){ - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - - $fileTemp = BASE.'temp/database.php'; - $isDatabaseConnect = serialize($form->i); - @file_put_contents($fileTemp,$isDatabaseConnect); - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - } - } - - } - } - - private function isConnectedToDatabase($host="localhost",$database="",$login="root",$pwd=""){ - - try{ - - $con = @mysql_connect($host,$login,$pwd); - if(!empty($con)){ - - $db_selected = mysql_select_db($database, $con); - if ($db_selected) { - return true; - } - - } - - return false; - - }catch(Exception $e){ } - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class databaseModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $isConnected = false; + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if( empty($form->i['hote']) ) + { + $form->e['doorgets_database_hote'] = "ok"; + } + if( empty($form->i['login']) ) + { + $form->e['doorgets_database_login'] = "ok"; + } + if( empty($form->i['name']) ) + { + $form->e['doorgets_database_name'] = "ok"; + } + + + if( empty($form->e) ){ + + $isConnected = $this->isConnectedToDatabase($form->i['hote'],$form->i['name'],$form->i['login'],$form->i['password']); + + } + + if($isConnected){ + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + + $fileTemp = BASE.'temp/database.php'; + $isDatabaseConnect = serialize($form->i); + @file_put_contents($fileTemp,$isDatabaseConnect); + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + } + } + + } + } + + private function isConnectedToDatabase($host="localhost",$database="",$login="root",$pwd=""){ + + try{ + + $con = @mysql_connect($host,$login,$pwd); + if(!empty($con)){ + + $db_selected = mysql_select_db($database, $con); + if ($db_selected) { + return true; + } + + } + + return false; + + }catch(Exception $e){ } + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/licenceModel.php b/setup/doorgets/app/models/licenceModel.php old mode 100644 new mode 100755 index 542a41d..bea2b1c --- a/setup/doorgets/app/models/licenceModel.php +++ b/setup/doorgets/app/models/licenceModel.php @@ -1,70 +1,70 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class licenceModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - if(!empty($pos)){ $pos = (int)$pos[0]; } - if( !array_key_exists('licence_validation',$form->i) ){ - $form->e['doorgets_licence_licence_validation'] = "ok"; - } - if(empty($form->e)){ - - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - } - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - } - - } - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class licenceModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + if(!empty($pos)){ $pos = (int)$pos[0]; } + if( !array_key_exists('licence_validation',$form->i) ){ + $form->e['doorgets_licence_licence_validation'] = "ok"; + } + if(empty($form->e)){ + + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + } + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + } + + } + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/polymorphicModel.php b/setup/doorgets/app/models/polymorphicModel.php old mode 100644 new mode 100755 index 26d6bd8..5180442 --- a/setup/doorgets/app/models/polymorphicModel.php +++ b/setup/doorgets/app/models/polymorphicModel.php @@ -1,818 +1,836 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class polymorphicModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - - $isCreatedQuery = $this->installDatabase(); - $this->extractDoorgets(); - $this->loadConfig(); - if($isCreatedQuery){ - - $this->destroy_dir(BASE); - - $urlRedic = $_SERVER['REQUEST_URI']; - $urlRedic = str_replace('index.php','',$urlRedic); - // redirection vers le panel administrateur - header("Location:".$urlRedic.'dg-admin/'); - exit(); - - } - - } - } - - public function installDatabase(){ - - $fileTempAdmin = BASE.'temp/admin.php'; - if(is_file($fileTempAdmin)){ - - $cFile = file_get_contents($fileTempAdmin); - $cOutFile = unserialize($cFile); - - $adm_email = $cOutFile['email']; - - } - - $sql_query = " - - DROP TABLE IF EXISTS `_dg_applicationjob`; - CREATE TABLE IF NOT EXISTS `_dg_applicationjob` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `last_name` varchar(255) DEFAULT NULL, - `first_name` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `file_cv` varchar(255) DEFAULT NULL, - `file_cv_type` varchar(255) DEFAULT NULL, - `file_cv_size` varchar(255) DEFAULT NULL, - `lu` int(11) DEFAULT '0', - `date_creation` int(11) DEFAULT NULL, - `date_lu` int(11) DEFAULT NULL, - `uri_module` varchar(255) DEFAULT NULL, - `sujet` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; - - DROP TABLE IF EXISTS `_dg_block`; - CREATE TABLE IF NOT EXISTS `_dg_block` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uri` varchar(255) DEFAULT NULL, - `groupe_traduction` text, - `date_creation` int(11) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - `id_user` int(11) DEFAULT NULL, - `id_groupe` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_block_traduction`; - CREATE TABLE IF NOT EXISTS `_dg_block_traduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_block` int(11) DEFAULT NULL, - `uri_module` varchar(255) DEFAULT NULL, - `langue` varchar(255) DEFAULT NULL, - `titre` varchar(255) DEFAULT NULL, - `description` varchar(255) DEFAULT NULL, - `article_tinymce` text, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_inbox`; - CREATE TABLE IF NOT EXISTS `_dg_inbox` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uri_module` varchar(255) DEFAULT NULL, - `sujet` varchar(255) NOT NULL, - `nom` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `message` text, - `telephone` varchar(255) DEFAULT NULL, - `lu` int(11) NOT NULL DEFAULT '0', - `archive` int(11) NOT NULL DEFAULT '0', - `date_creation` int(11) NOT NULL DEFAULT '0', - `date_archive` int(11) NOT NULL DEFAULT '0', - `date_lu` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_links`; - CREATE TABLE IF NOT EXISTS `_dg_links` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `langue` varchar(255) DEFAULT NULL, - `uri_module` varchar(255) DEFAULT NULL, - `label` varchar(255) DEFAULT NULL, - `link` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_newsletter_emailling_campagne`; - CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_campagne` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_groupe` int(11) NOT NULL, - `id_models` int(11) NOT NULL, - `statut` varchar(255) NOT NULL, - `titre` text NOT NULL, - `description` text NOT NULL, - `message` text, - `date_creation` int(11) NOT NULL, - `date_modification` int(11) DEFAULT NULL, - `date_envoi` int(11) NOT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_newsletter_emailling_groupe`; - CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_groupe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `titre` varchar(255) DEFAULT NULL, - `description` text NOT NULL, - `date_creation` int(11) NOT NULL, - `date_modification` int(11) NOT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_newsletter_emailling_models`; - CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_models` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `titre` varchar(255) DEFAULT NULL, - `description` text, - `langue` varchar(255) DEFAULT NULL, - `format` varchar(255) DEFAULT NULL, - `sujet` varchar(255) DEFAULT NULL, - `article_tinymce` text, - `date_creation` int(11) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_newsletter`; - CREATE TABLE IF NOT EXISTS `_dg_newsletter` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_user` int(11) NOT NULL DEFAULT '0', - `id_groupe` int(11) NOT NULL DEFAULT '0', - `nom` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `description` text, - `newsletter` int(11) DEFAULT '1', - `client_ip` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_page`; - CREATE TABLE IF NOT EXISTS `_dg_page` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_user` int(11) DEFAULT '0', - `id_groupe` int(11) DEFAULT '0', - `uri` varchar(255) DEFAULT NULL, - `active` int(11) NOT NULL DEFAULT '0', - `comments` int(11) NOT NULL DEFAULT '0', - `partage` int(11) NOT NULL DEFAULT '1', - `facebook` int(11) DEFAULT '0', - `id_facebook` varchar(255) DEFAULT NULL, - `disqus` int(11) DEFAULT '0', - `id_disqus` varchar(255) DEFAULT NULL, - `mailsender` int(11) DEFAULT '0', - `sendto` varchar(255) DEFAULT NULL, - `in_rss` int(11) NOT NULL DEFAULT '0', - `ordre` int(11) NOT NULL DEFAULT '0', - `groupe_traduction` text, - `date_creation` int(11) DEFAULT NULL, - `id_modo` int(111) DEFAULT NULL, - `val_modo` int(11) DEFAULT '0', - `date_modo` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_page_traduction`; - CREATE TABLE IF NOT EXISTS `_dg_page_traduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_content` int(11) NOT NULL DEFAULT '0', - `langue` varchar(255) DEFAULT NULL, - `titre` varchar(255) DEFAULT NULL, - `description` text, - `article_tinymce` text, - `uri` varchar(255) DEFAULT NULL, - `uri_module` varchar(255) DEFAULT NULL, - `meta_titre` varchar(255) DEFAULT NULL, - `meta_description` varchar(255) DEFAULT NULL, - `meta_keys` varchar(255) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_files`; - CREATE TABLE IF NOT EXISTS `_dg_files` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_user` int(11) DEFAULT '0', - `id_groupe` int(11) DEFAULT '0', - `type` varchar(255) NOT NULL, - `nom` varchar(255) DEFAULT NULL, - `description` text, - `fichier` varchar(255) DEFAULT NULL, - `poid` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_categories`; - CREATE TABLE IF NOT EXISTS `_categories` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uri_module` varchar(255) DEFAULT NULL, - `groupe_traduction` text, - `ordre` int(11) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_categories_traduction`; - CREATE TABLE IF NOT EXISTS `_categories_traduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_cat` int(11) NOT NULL DEFAULT '0', - `langue` varchar(10) NOT NULL DEFAULT 'fr', - `nom` varchar(255) DEFAULT NULL, - `titre` varchar(255) DEFAULT NULL, - `description` text, - `uri` varchar(255) DEFAULT NULL, - `meta_titre` varchar(255) DEFAULT NULL, - `meta_description` varchar(255) DEFAULT NULL, - `meta_keys` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_dg_comments`; - CREATE TABLE IF NOT EXISTS `_dg_comments` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_user` int(11) DEFAULT '0', - `id_groupe` int(11) DEFAULT '0', - `uri_module` varchar(255) DEFAULT NULL, - `uri_content` varchar(255) DEFAULT NULL, - `nom` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `url` varchar(255) DEFAULT NULL, - `comment` text, - `lu` int(11) NOT NULL DEFAULT '0', - `archive` int(11) NOT NULL DEFAULT '0', - `date_creation` int(11) DEFAULT NULL, - `validation` int(11) DEFAULT '0', - `date_validation` int(11) DEFAULT '0', - `date_archive` int(11) NOT NULL DEFAULT '0', - `adress_ip` varchar(255) DEFAULT NULL, - `langue` varchar(255) DEFAULT 'en', - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_modules`; - CREATE TABLE IF NOT EXISTS `_modules` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(255) DEFAULT NULL, - `uri` varchar(255) DEFAULT NULL, - `active` int(11) DEFAULT '1', - `is_first` int(11) DEFAULT '0', - `plugins` text, - `groupe_traduction` text, - `bynum` int(11) DEFAULT '10', - `avoiraussi` int(11) NOT NULL DEFAULT '3', - `image` varchar(255) DEFAULT NULL, - `notification_mail` int(11) NOT NULL DEFAULT '1', - `date_creation` int(11) NOT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_modules_traduction`; - CREATE TABLE IF NOT EXISTS `_modules_traduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_module` int(11) DEFAULT NULL, - `langue` varchar(255) DEFAULT NULL, - `nom` varchar(255) DEFAULT NULL, - `titre` varchar(255) DEFAULT NULL, - `description` text, - `top_tinymce` text, - `bottom_tinymce` text, - `meta_titre` varchar(255) DEFAULT NULL, - `meta_description` varchar(255) DEFAULT NULL, - `meta_keys` varchar(255) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_rubrique`; - CREATE TABLE IF NOT EXISTS `_rubrique` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(220) DEFAULT NULL, - `ordre` int(11) DEFAULT NULL, - `idModule` int(11) NOT NULL DEFAULT '0', - `idParent` int(11) DEFAULT '0', - `showinmenu` int(11) DEFAULT '1', - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_rubrique_users`; - CREATE TABLE IF NOT EXISTS `_rubrique_users` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(220) DEFAULT NULL, - `ordre` int(11) DEFAULT NULL, - `idModule` int(11) NOT NULL DEFAULT '0', - `idParent` int(11) DEFAULT '0', - `showinmenu` int(11) DEFAULT '1', - `date_creation` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_users`; - CREATE TABLE IF NOT EXISTS `_users` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `login` varchar(255) DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_users_groupes`; - CREATE TABLE IF NOT EXISTS `_users_groupes` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) DEFAULT NULL, - `description` text, - `liste_module` text, - `liste_module_limit` text, - `liste_module_modo` text, - `liste_module_interne` text, - `liste_module_interne_modo` text, - `liste_enfant` text, - `liste_enfant_modo` text, - `liste_parent` text, - `can_subscribe` int(11) DEFAULT '1', - `date_creation` int(255) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_users_info`; - CREATE TABLE IF NOT EXISTS `_users_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `active` int(11) DEFAULT '0', - `id_user` int(11) DEFAULT NULL, - `langue` varchar(255) DEFAULT NULL, - `network` int(11) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `pseudo` varchar(255) DEFAULT NULL, - `last_name` varchar(255) DEFAULT NULL, - `first_name` varchar(255) DEFAULT NULL, - `description` text, - `horaire` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_users_notification`; - CREATE TABLE IF NOT EXISTS `_users_notification` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_user` int(11) DEFAULT NULL, - `id_session` varchar(255) DEFAULT NULL, - `ip_session` varchar(255) DEFAULT NULL, - `url_page` varchar(255) DEFAULT NULL, - `url_referer` varchar(255) DEFAULT NULL, - `date` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_users_track`; - CREATE TABLE IF NOT EXISTS `_users_track` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `id_session` varchar(255) DEFAULT NULL, - `id_user` int(11) NOT NULL, - `uri_module` varchar(255) NOT NULL, - `id_content` text NOT NULL, - `action` varchar(255) NOT NULL, - `ip_user` varchar(255) NOT NULL, - `url_page` varchar(255) DEFAULT NULL, - `url_referer` varchar(255) DEFAULT NULL, - `date` int(11) NOT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_website`; - CREATE TABLE IF NOT EXISTS `_website` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `statut` int(11) DEFAULT '1', - `statut_version` int(11) DEFAULT '0', - `statut_ip` varchar(255) DEFAULT NULL, - `version_doorgets` varchar(255) DEFAULT NULL, - `title` varchar(220) NOT NULL, - `slogan` varchar(180) DEFAULT NULL, - `copyright` varchar(100) NOT NULL, - `year` varchar(10) NOT NULL, - `description` varchar(220) NOT NULL, - `keywords` varchar(220) NOT NULL, - `email` varchar(80) DEFAULT NULL, - `pays` varchar(180) DEFAULT NULL, - `ville` varchar(180) DEFAULT NULL, - `adresse` varchar(220) DEFAULT NULL, - `codepostal` varchar(25) DEFAULT NULL, - `tel_fix` varchar(30) DEFAULT NULL, - `tel_mobil` varchar(30) DEFAULT NULL, - `tel_fax` varchar(30) DEFAULT NULL, - `facebook` varchar(120) DEFAULT NULL, - `twitter` varchar(120) DEFAULT NULL, - `pinterest` varchar(255) DEFAULT NULL, - `myspace` varchar(255) DEFAULT NULL, - `linkedin` varchar(255) DEFAULT NULL, - `youtube` varchar(120) DEFAULT NULL, - `google` varchar(250) DEFAULT NULL, - `analytics` varchar(50) DEFAULT NULL, - `langue` varchar(255) DEFAULT 'fr', - `langue_front` varchar(255) DEFAULT 'fr', - `langue_groupe` text, - `horaire` varchar(255) DEFAULT 'Europe/Paris', - `mentions` int(11) DEFAULT '1', - `cgu` int(11) DEFAULT '1', - `m_newsletter` int(1) DEFAULT '1', - `m_comment` int(11) DEFAULT '1', - `m_comment_facebook` int(11) DEFAULT '0', - `m_comment_disqus` int(11) DEFAULT '0', - `m_sharethis` int(11) DEFAULT '1', - `m_sitemap` int(11) DEFAULT '1', - `m_rss` int(11) DEFAULT '1', - `id_facebook` varchar(255) DEFAULT NULL, - `id_disqus` varchar(255) DEFAULT NULL, - `theme` varchar(255) NOT NULL DEFAULT 'doorgets', - `module_homepage` varchar(255) DEFAULT NULL, - `date_creation` int(11) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - DROP TABLE IF EXISTS `_website_traduction`; - CREATE TABLE IF NOT EXISTS `_website_traduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `langue` varchar(255) DEFAULT NULL, - `statut_tinymce` text, - `title` varchar(255) DEFAULT NULL, - `slogan` varchar(255) DEFAULT NULL, - `description` varchar(255) DEFAULT NULL, - `copyright` varchar(255) DEFAULT NULL, - `year` varchar(255) DEFAULT NULL, - `keywords` varchar(255) DEFAULT NULL, - `date_modification` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; - - - - INSERT INTO `_website` ( `version_doorgets`,`facebook`,`twitter`,`langue`,`langue_front`,`langue_groupe`,`theme`,`horaire`,`module_homepage`,`email` ) - VALUES ( '5.0','doorgets','doorgets','".$this->doorgets->getLanguage()."','".$this->doorgets->getLanguage()."','a:0:{}','doorgets','".$this->doorgets->getTimeZone()."', 'home','".$adm_email."' ); - - "; - - $fileTempDatabase = BASE.'temp/database.php'; - if(is_file($fileTempDatabase)){ - - $cFileDatabase = file_get_contents($fileTempDatabase); - if($cOutFileDatabase = unserialize($cFileDatabase)){ - - $sql_host = $cOutFileDatabase['hote']; - $sql_db = $cOutFileDatabase['name']; - $sql_login = $cOutFileDatabase['login']; - $sql_pwd = $cOutFileDatabase['password']; - - } - - $db = new CRUD($sql_host,$sql_db,$sql_login,$sql_pwd); - $db->dbQL($sql_query); - - $fileTempWebsite = BASE.'temp/website.php'; - if(is_file($fileTempWebsite)){ - - $cFileWebiste = file_get_contents($fileTempWebsite); - if($cOutFileWebsite = unserialize($cFileWebiste)){ - - $dataTrad['title'] = $cOutFileWebsite['title']; - $dataTrad['slogan'] = $cOutFileWebsite['slogan']; - $dataTrad['description'] = $cOutFileWebsite['description']; - $dataTrad['copyright'] = $cOutFileWebsite['copyright']; - $dataTrad['year'] = $cOutFileWebsite['year']; - $dataTrad['keywords'] = $cOutFileWebsite['keywords']; - $dataTrad['date_modification'] = time(); - - $arrGroupeLangue = array(); - foreach($this->doorgets->allLanguages as $key_language=>$label){ - - $dataTrad['langue'] = $key_language; - - $id = $db->dbQI($dataTrad,'_website_traduction'); - $arrGroupeLangue[$key_language] = $id; - - } - - $dataUp['langue_groupe'] = serialize($arrGroupeLangue); - - $db->dbQU(1,$dataUp,'_website'); - - $bigquery = $this->getSQLQueryToImport(); - - $db->dbQL($bigquery); - - return true; - } - - } - - return false; - - } - - } - - private function extractDoorgets(){ - - $zipDoorgets = new ZipArchive; - $res = $zipDoorgets->open(BASE.'data/doorgets.zip'); - if ($res === TRUE) { - $zipDoorgets->extractTo('./'); - } - $zipDoorgets->close(); - - } - - private function getSQLQueryToImport(){ - - $file = 'database.zip'; - $toFile = BASE.'data/'.$file; - if(!is_file($toFile)){die('ok');} - $fileName = str_replace('.zip','',$file); - $bigQuery = ''; - - // Récupération du fichier de configuration doorgets.php - $zip = new ZipArchive; - if($res = $zip->open($toFile)){ - - $sql_query_install = ''; - $dirDatabase = 'database/'; - - // Récupération des donnés de la database - $entriesDatabase = array(); - for ($idx = 0; $idx < $zip->numFiles; $idx++) { - - $nameIndex = $zip->getNameIndex($idx); - $firstNameIndexDatabase = substr($nameIndex,0,8); - - if( $firstNameIndexDatabase === 'database' ) { - $entriesDatabase[] = $zip->getNameIndex($idx); - } - - } - - // Extraction des données de la databse vers un dossier Temp - $nameDirTemp = BASE.'data/_temp/'; - if(!is_dir($nameDirTemp)){mkdir($nameDirTemp);} - if(!is_dir($nameDirTemp.$fileName.'/')){mkdir($nameDirTemp.$fileName.'/');} - $dirTempDatabase = $nameDirTemp.$fileName.'/'; - $dirToCopyAllDatas = BASE.''; - - $listeTable = array( - '_rubrique', - '_categories', '_categories_traduction', - '_dg_comments', '_dg_files', '_dg_inbox', '_dg_links', '_dg_newsletter', - '_m_aboutus', '_m_aboutus_traduction', - '_m_news', '_m_news_traduction', - '_dg_page', '_dg_page_traduction', - '_modules', '_modules_traduction', - - ); - - $zip->extractTo($dirTempDatabase,$entriesDatabase); - foreach($listeTable as $name_table){ - - $dirDatabaseName = $dirTempDatabase.'database/'.$name_table.'/'; - $allFiles = $this->files($dirDatabaseName); - foreach($allFiles as $nameFile){ - - if(is_file($dirDatabaseName.$nameFile)){ - - $dataTableFile = file_get_contents($dirDatabaseName.$nameFile); - if($dataTableContent = unserialize($dataTableFile)){ - - $bigQuery .= $this->dbVQI($dataTableContent,$name_table); - - } - - } - - } - - } - - // Suppression des données temporaire - if(is_dir($nameDirTemp)){ $this->destroy_dir($nameDirTemp); } - } - - $zip->close(); - return $bigQuery; - } - - // Virtual Query Insert - public function dbVQI($data,$table){ - - $keys = ''; - $values = ''; - - foreach($data as $k=>$v){ - - $keys .= "`".$k.'`,'; - $values .= "'".$v."',"; - - } - - $keys = substr($keys,0,-1); - $values = substr($values,0,-1); - - $query = "INSERT INTO `".$table."` (".$keys.") VALUES (".$values.");"; - - return $query; - - } - - private function loadConfig(){ - - $key = $this->keygen(20); - $keydoorGets = $this->keygen(20); - - $url = $sql_host = $sql_db = $sql_login = $sql_pwd = $sql_prefix = $adm_name = $adm_login = $adm_pwd = ""; - - $fileTemp = BASE.'temp/admin.php'; - if(is_file($fileTemp)){ - - $cFile = file_get_contents($fileTemp); - $cOutFile = unserialize($cFile); - - $adm_login = $cOutFile['login']; - $adm_pwd = $cOutFile['password']; - - } - $fileTemp = BASE.'temp/database.php'; - if(is_file($fileTemp)){ - - $cFile = file_get_contents($fileTemp); - $cOutFile = unserialize($cFile); - - $sql_host = $cOutFile['hote']; - $sql_db = $cOutFile['name']; - $sql_login = $cOutFile['login']; - $sql_pwd = $cOutFile['password']; - - } - - $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; - $url = str_replace('index.php','',$url); - - $iOut = ''; - $iOut .= "destroy_dir($dir . "/" . $item)) { - chmod($dir . "/" . $item, 0777); - if (!$this->destroy_dir($dir . "/" . $item)) return false; - }; - } - return rmdir($dir); - - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class polymorphicModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + + $isCreatedQuery = $this->installDatabase(); + $this->extractDoorgets(); + $z = $this->loadConfig(); + if($isCreatedQuery){ + + $this->destroy_dir(BASE); + $this->_doorgets($z['k'],$z['u'],$z['v'],$z['e']); + + $urlRedic = $_SERVER['REQUEST_URI']; + $urlRedic = str_replace('index.php','',$urlRedic); + // redirection vers le panel administrateur + header("Location:".$urlRedic.'dg-admin/'); + exit(); + + } + + } + } + + public function installDatabase(){ + + $fileTempAdmin = BASE.'temp/admin.php'; + if(is_file($fileTempAdmin)){ + + $cFile = file_get_contents($fileTempAdmin); + $cOutFile = unserialize($cFile); + + $adm_email = $cOutFile['email']; + + } + + $sql_query = " + + + DROP TABLE IF EXISTS `_dg_block`; + CREATE TABLE IF NOT EXISTS `_dg_block` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uri` varchar(255) DEFAULT NULL, + `groupe_traduction` text, + `date_creation` int(11) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + `id_user` int(11) DEFAULT NULL, + `id_groupe` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_block_traduction`; + CREATE TABLE IF NOT EXISTS `_dg_block_traduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_block` int(11) DEFAULT NULL, + `uri_module` varchar(255) DEFAULT NULL, + `langue` varchar(255) DEFAULT NULL, + `titre` varchar(255) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `article_tinymce` text, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + + DROP TABLE IF EXISTS `_dg_inbox`; + CREATE TABLE IF NOT EXISTS `_dg_inbox` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uri_module` varchar(255) DEFAULT NULL, + `sujet` varchar(255) NOT NULL, + `nom` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `message` text, + `telephone` varchar(255) DEFAULT NULL, + `lu` int(11) NOT NULL DEFAULT '0', + `archive` int(11) NOT NULL DEFAULT '0', + `date_creation` int(11) NOT NULL DEFAULT '0', + `date_archive` int(11) NOT NULL DEFAULT '0', + `date_lu` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_links`; + CREATE TABLE IF NOT EXISTS `_dg_links` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `langue` varchar(255) DEFAULT NULL, + `uri_module` varchar(255) DEFAULT NULL, + `label` varchar(255) DEFAULT NULL, + `link` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_newsletter_emailling_campagne`; + CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_campagne` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_groupe` int(11) NOT NULL, + `id_models` int(11) NOT NULL, + `statut` varchar(255) NOT NULL, + `titre` text NOT NULL, + `description` text NOT NULL, + `message` text, + `date_creation` int(11) NOT NULL, + `date_modification` int(11) DEFAULT NULL, + `date_envoi` int(11) NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_newsletter_emailling_groupe`; + CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_groupe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `titre` varchar(255) DEFAULT NULL, + `description` text NOT NULL, + `date_creation` int(11) NOT NULL, + `date_modification` int(11) NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_newsletter_emailling_models`; + CREATE TABLE IF NOT EXISTS `_dg_newsletter_emailling_models` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `titre` varchar(255) DEFAULT NULL, + `description` text, + `langue` varchar(255) DEFAULT NULL, + `format` varchar(255) DEFAULT NULL, + `sujet` varchar(255) DEFAULT NULL, + `article_tinymce` text, + `date_creation` int(11) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_newsletter`; + CREATE TABLE IF NOT EXISTS `_dg_newsletter` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_user` int(11) NOT NULL DEFAULT '0', + `id_groupe` int(11) NOT NULL DEFAULT '0', + `nom` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `description` text, + `newsletter` int(11) DEFAULT '1', + `client_ip` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_page`; + CREATE TABLE IF NOT EXISTS `_dg_page` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_user` int(11) DEFAULT '0', + `id_groupe` int(11) DEFAULT '0', + `uri` varchar(255) DEFAULT NULL, + `active` int(11) NOT NULL DEFAULT '0', + `comments` int(11) NOT NULL DEFAULT '0', + `partage` int(11) NOT NULL DEFAULT '1', + `facebook` int(11) DEFAULT '0', + `id_facebook` varchar(255) DEFAULT NULL, + `disqus` int(11) DEFAULT '0', + `id_disqus` varchar(255) DEFAULT NULL, + `mailsender` int(11) DEFAULT '0', + `sendto` varchar(255) DEFAULT NULL, + `in_rss` int(11) NOT NULL DEFAULT '0', + `ordre` int(11) NOT NULL DEFAULT '0', + `groupe_traduction` text, + `date_creation` int(11) DEFAULT NULL, + `id_modo` int(111) DEFAULT NULL, + `val_modo` int(11) DEFAULT '0', + `date_modo` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_page_traduction`; + CREATE TABLE IF NOT EXISTS `_dg_page_traduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_content` int(11) NOT NULL DEFAULT '0', + `langue` varchar(255) DEFAULT NULL, + `titre` varchar(255) DEFAULT NULL, + `description` text, + `article_tinymce` text, + `uri` varchar(255) DEFAULT NULL, + `uri_module` varchar(255) DEFAULT NULL, + `meta_titre` varchar(255) DEFAULT NULL, + `meta_description` varchar(255) DEFAULT NULL, + `meta_keys` varchar(255) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_files`; + CREATE TABLE IF NOT EXISTS `_dg_files` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_user` int(11) DEFAULT '0', + `id_groupe` int(11) DEFAULT '0', + `type` varchar(255) NOT NULL, + `nom` varchar(255) DEFAULT NULL, + `description` text, + `fichier` varchar(255) DEFAULT NULL, + `poid` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_categories`; + CREATE TABLE IF NOT EXISTS `_categories` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uri_module` varchar(255) DEFAULT NULL, + `groupe_traduction` text, + `ordre` int(11) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_categories_traduction`; + CREATE TABLE IF NOT EXISTS `_categories_traduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_cat` int(11) NOT NULL DEFAULT '0', + `langue` varchar(10) NOT NULL DEFAULT 'fr', + `nom` varchar(255) DEFAULT NULL, + `titre` varchar(255) DEFAULT NULL, + `description` text, + `uri` varchar(255) DEFAULT NULL, + `meta_titre` varchar(255) DEFAULT NULL, + `meta_description` varchar(255) DEFAULT NULL, + `meta_keys` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_dg_comments`; + CREATE TABLE IF NOT EXISTS `_dg_comments` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_user` int(11) DEFAULT '0', + `id_groupe` int(11) DEFAULT '0', + `uri_module` varchar(255) DEFAULT NULL, + `uri_content` varchar(255) DEFAULT NULL, + `nom` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `url` varchar(255) DEFAULT NULL, + `comment` text, + `lu` int(11) NOT NULL DEFAULT '0', + `archive` int(11) NOT NULL DEFAULT '0', + `date_creation` int(11) DEFAULT NULL, + `validation` int(11) DEFAULT '0', + `date_validation` int(11) DEFAULT '0', + `date_archive` int(11) NOT NULL DEFAULT '0', + `adress_ip` varchar(255) DEFAULT NULL, + `langue` varchar(255) DEFAULT 'en', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_modules`; + CREATE TABLE IF NOT EXISTS `_modules` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(255) DEFAULT NULL, + `uri` varchar(255) DEFAULT NULL, + `active` int(11) DEFAULT '1', + `is_first` int(11) DEFAULT '0', + `plugins` text, + `groupe_traduction` text, + `bynum` int(11) DEFAULT '10', + `avoiraussi` int(11) NOT NULL DEFAULT '3', + `image` varchar(255) DEFAULT NULL, + `template_index` varchar(255) DEFAULT NULL, + `template_content` varchar(255) DEFAULT NULL, + `notification_mail` int(11) NOT NULL DEFAULT '1', + `extras` text, + `redirection` varchar(255) DEFAULT NULL, + `recaptcha` int(11) NOT NULL DEFAULT '0', + `date_creation` int(11) NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_modules_traduction`; + CREATE TABLE IF NOT EXISTS `_modules_traduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_module` int(11) DEFAULT NULL, + `langue` varchar(255) DEFAULT NULL, + `nom` varchar(255) DEFAULT NULL, + `titre` varchar(255) DEFAULT NULL, + `description` text, + `send_mail_to` varchar(255) DEFAULT NULL, + `top_tinymce` text, + `bottom_tinymce` text, + `extras` text, + `send_mail_user` varchar(255) DEFAULT NULL, + `send_mail_name` varchar(255) DEFAULT NULL, + `send_mail_email` varchar(255) DEFAULT NULL, + `send_mail_sujet` varchar(255) DEFAULT NULL, + `send_mail_message` text, + `meta_titre` varchar(255) DEFAULT NULL, + `meta_description` varchar(255) DEFAULT NULL, + `meta_keys` varchar(255) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_rubrique`; + CREATE TABLE IF NOT EXISTS `_rubrique` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(220) DEFAULT NULL, + `ordre` int(11) DEFAULT NULL, + `idModule` int(11) NOT NULL DEFAULT '0', + `idParent` int(11) DEFAULT '0', + `showinmenu` int(11) DEFAULT '1', + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_rubrique_users`; + CREATE TABLE IF NOT EXISTS `_rubrique_users` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(220) DEFAULT NULL, + `ordre` int(11) DEFAULT NULL, + `idModule` int(11) NOT NULL DEFAULT '0', + `idParent` int(11) DEFAULT '0', + `showinmenu` int(11) DEFAULT '1', + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users`; + CREATE TABLE IF NOT EXISTS `_users` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `login` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users_groupes`; + CREATE TABLE IF NOT EXISTS `_users_groupes` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `title` varchar(255) DEFAULT NULL, + `description` text, + `liste_module` text, + `liste_module_limit` text, + `liste_module_modo` text, + `liste_module_interne` text, + `liste_module_interne_modo` text, + `liste_enfant` text, + `liste_enfant_modo` text, + `liste_parent` text, + `can_subscribe` int(11) DEFAULT '1', + `date_creation` int(255) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users_info`; + CREATE TABLE IF NOT EXISTS `_users_info` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `active` int(11) DEFAULT '0', + `id_user` int(11) DEFAULT NULL, + `langue` varchar(255) DEFAULT NULL, + `network` int(11) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `pseudo` varchar(255) DEFAULT NULL, + `last_name` varchar(255) DEFAULT NULL, + `first_name` varchar(255) DEFAULT NULL, + `description` text, + `horaire` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users_notification`; + CREATE TABLE IF NOT EXISTS `_users_notification` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_user` int(11) DEFAULT NULL, + `id_session` varchar(255) DEFAULT NULL, + `ip_session` varchar(255) DEFAULT NULL, + `url_page` varchar(255) DEFAULT NULL, + `url_referer` varchar(255) DEFAULT NULL, + `date` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users_track`; + CREATE TABLE IF NOT EXISTS `_users_track` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `id_session` varchar(255) DEFAULT NULL, + `id_user` int(11) NOT NULL, + `uri_module` varchar(255) NOT NULL, + `id_content` text NOT NULL, + `action` varchar(255) NOT NULL, + `ip_user` varchar(255) NOT NULL, + `url_page` varchar(255) DEFAULT NULL, + `url_referer` varchar(255) DEFAULT NULL, + `date` int(11) NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_users_activation`; + CREATE TABLE IF NOT EXISTS `_users_activation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(255) NOT NULL, + `id_user` int(11) DEFAULT NULL, + `code` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_website`; + CREATE TABLE IF NOT EXISTS `_website` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `statut` int(11) DEFAULT '1', + `statut_version` int(11) DEFAULT '0', + `statut_ip` varchar(255) DEFAULT NULL, + `version_doorgets` varchar(255) DEFAULT NULL, + `title` varchar(220) NOT NULL, + `slogan` varchar(180) DEFAULT NULL, + `copyright` varchar(100) NOT NULL, + `year` varchar(10) NOT NULL, + `description` varchar(220) NOT NULL, + `keywords` varchar(220) NOT NULL, + `email` varchar(80) DEFAULT NULL, + `pays` varchar(180) DEFAULT NULL, + `ville` varchar(180) DEFAULT NULL, + `adresse` varchar(220) DEFAULT NULL, + `codepostal` varchar(25) DEFAULT NULL, + `tel_fix` varchar(30) DEFAULT NULL, + `tel_mobil` varchar(30) DEFAULT NULL, + `tel_fax` varchar(30) DEFAULT NULL, + `facebook` varchar(120) DEFAULT NULL, + `twitter` varchar(120) DEFAULT NULL, + `pinterest` varchar(255) DEFAULT NULL, + `myspace` varchar(255) DEFAULT NULL, + `linkedin` varchar(255) DEFAULT NULL, + `youtube` varchar(120) DEFAULT NULL, + `google` varchar(250) DEFAULT NULL, + `analytics` varchar(50) DEFAULT NULL, + `langue` varchar(255) DEFAULT 'fr', + `langue_front` varchar(255) DEFAULT 'fr', + `langue_groupe` text, + `horaire` varchar(255) DEFAULT 'Europe/Paris', + `mentions` int(11) DEFAULT '1', + `cgu` int(11) DEFAULT '1', + `m_newsletter` int(1) DEFAULT '1', + `m_comment` int(11) DEFAULT '1', + `m_comment_facebook` int(11) DEFAULT '0', + `m_comment_disqus` int(11) DEFAULT '0', + `m_sharethis` int(11) DEFAULT '1', + `m_sitemap` int(11) DEFAULT '1', + `m_rss` int(11) DEFAULT '1', + `id_facebook` varchar(255) DEFAULT NULL, + `id_disqus` varchar(255) DEFAULT NULL, + `theme` varchar(255) NOT NULL DEFAULT 'doorgets', + `module_homepage` varchar(255) DEFAULT NULL, + `date_creation` int(11) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + DROP TABLE IF EXISTS `_website_traduction`; + CREATE TABLE IF NOT EXISTS `_website_traduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `langue` varchar(255) DEFAULT NULL, + `statut_tinymce` text, + `title` varchar(255) DEFAULT NULL, + `slogan` varchar(255) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `copyright` varchar(255) DEFAULT NULL, + `year` varchar(255) DEFAULT NULL, + `keywords` varchar(255) DEFAULT NULL, + `date_modification` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ; + + + + INSERT INTO `_website` ( `version_doorgets`,`facebook`,`twitter`,`langue`,`langue_front`,`langue_groupe`,`theme`,`horaire`,`module_homepage`,`email` ) + VALUES ( '6.0','doorgets','doorgets','".$this->doorgets->getLanguage()."','".$this->doorgets->getLanguage()."','a:0:{}','doorgets','".$this->doorgets->getTimeZone()."', 'home','".$adm_email."' ); + + "; + + $fileTempDatabase = BASE.'temp/database.php'; + if(is_file($fileTempDatabase)){ + + $cFileDatabase = file_get_contents($fileTempDatabase); + if($cOutFileDatabase = unserialize($cFileDatabase)){ + + $sql_host = $cOutFileDatabase['hote']; + $sql_db = $cOutFileDatabase['name']; + $sql_login = $cOutFileDatabase['login']; + $sql_pwd = $cOutFileDatabase['password']; + + } + + $db = new CRUD($sql_host,$sql_db,$sql_login,$sql_pwd); + $db->dbQL($sql_query); + + $fileTempWebsite = BASE.'temp/website.php'; + if(is_file($fileTempWebsite)){ + + $cFileWebiste = file_get_contents($fileTempWebsite); + if($cOutFileWebsite = unserialize($cFileWebiste)){ + + $dataTrad['title'] = $cOutFileWebsite['title']; + $dataTrad['slogan'] = $cOutFileWebsite['slogan']; + $dataTrad['description'] = $cOutFileWebsite['description']; + $dataTrad['copyright'] = $cOutFileWebsite['copyright']; + $dataTrad['year'] = $cOutFileWebsite['year']; + $dataTrad['keywords'] = $cOutFileWebsite['keywords']; + $dataTrad['date_modification'] = time(); + + $arrGroupeLangue = array(); + foreach($this->doorgets->allLanguages as $key_language=>$label){ + + $dataTrad['langue'] = $key_language; + + $id = $db->dbQI($dataTrad,'_website_traduction'); + //$arrGroupeLangue[$key_language] = $id; + + } + + //$dataUp['langue_groupe'] = serialize($arrGroupeLangue); + //$db->dbQU(1,$dataUp,'_website'); + + $bigquery = $this->getSQLQueryToImport(); + if(!empty($bigquery)){ + $db->dbQL($bigquery); + } + + + return true; + } + + } + + return false; + + } + + } + + private function extractDoorgets(){ + + $zipDoorgets = new ZipArchive; + $res = $zipDoorgets->open(BASE.'data/doorgets.zip'); + if ($res === TRUE) { + $zipDoorgets->extractTo('./'); + } + $zipDoorgets->close(); + + } + + private function getSQLQueryToImport(){ + + $file = 'database.zip'; + $toFile = BASE.'data/'.$file; + if(!is_file($toFile)){return '';} + $fileName = str_replace('.zip','',$file); + $bigQuery = ''; + + // Récupération du fichier de configuration doorgets.php + $zip = new ZipArchive; + if($res = $zip->open($toFile)){ + + $sql_query_install = ''; + $dirDatabase = 'database/'; + + // Récupération des donnés de la database + $entriesDatabase = array(); + for ($idx = 0; $idx < $zip->numFiles; $idx++) { + + $nameIndex = $zip->getNameIndex($idx); + $firstNameIndexDatabase = substr($nameIndex,0,8); + + if( $firstNameIndexDatabase === 'database' ) { + $entriesDatabase[] = $zip->getNameIndex($idx); + } + + } + + // Extraction des données de la databse vers un dossier Temp + $nameDirTemp = BASE.'data/_temp/'; + if(!is_dir($nameDirTemp)){mkdir($nameDirTemp, 0777, true);} + if(!is_dir($nameDirTemp.$fileName.'/')){mkdir($nameDirTemp.$fileName.'/', 0777, true);} + $dirTempDatabase = $nameDirTemp.$fileName.'/'; + $dirToCopyAllDatas = BASE.''; + + $listeTable = array( + '_rubrique', + '_categories', '_categories_traduction', + '_dg_comments', '_dg_files', '_dg_inbox', '_dg_links', '_dg_newsletter', + '_m_aboutus', '_m_aboutus_traduction', + '_m_news', '_m_news_traduction', + '_dg_page', '_dg_page_traduction', + '_modules', '_modules_traduction', + + ); + + $zip->extractTo($dirTempDatabase,$entriesDatabase); + foreach($listeTable as $name_table){ + + $dirDatabaseName = $dirTempDatabase.'database/'.$name_table.'/'; + $allFiles = $this->files($dirDatabaseName); + foreach($allFiles as $nameFile){ + + if(is_file($dirDatabaseName.$nameFile)){ + + $dataTableFile = file_get_contents($dirDatabaseName.$nameFile); + if($dataTableContent = unserialize($dataTableFile)){ + + $bigQuery .= $this->dbVQI($dataTableContent,$name_table); + + } + + } + + } + + } + + // Suppression des données temporaire + if(is_dir($nameDirTemp)){ $this->destroy_dir($nameDirTemp); } + } + + $zip->close(); + return $bigQuery; + } + + // Virtual Query Insert + public function dbVQI($data,$table){ + + $keys = ''; + $values = ''; + + foreach($data as $k=>$v){ + + $keys .= "`".$k.'`,'; + $values .= "'".$v."',"; + + } + + $keys = substr($keys,0,-1); + $values = substr($values,0,-1); + + $query = "INSERT INTO `".$table."` (".$keys.") VALUES (".$values.");"; + + return $query; + + } + + private function loadConfig(){ + + $key = $this->keygen(20); + $keydoorGets = $this->keygen(20); + + $url = $sql_host = $sql_db = $sql_login = $sql_pwd = $sql_prefix = $adm_name = $adm_login = $adm_pwd = $adm_e = ""; + + $fileTemp = BASE.'temp/admin.php'; + if(is_file($fileTemp)){ + + $cFile = file_get_contents($fileTemp); + $cOutFile = unserialize($cFile); + + $adm_login = $cOutFile['login']; + $adm_pwd = $cOutFile['password']; + $adm_e = $cOutFile['email']; + + } + $fileTemp = BASE.'temp/database.php'; + if(is_file($fileTemp)){ + + $cFile = file_get_contents($fileTemp); + $cOutFile = unserialize($cFile); + + $sql_host = $cOutFile['hote']; + $sql_db = $cOutFile['name']; + $sql_login = $cOutFile['login']; + $sql_pwd = $cOutFile['password']; + + } + + $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; + $url = str_replace('index.php','',$url); + + $iOut = ''; + $iOut .= " $keydoorGets ,'u' => $url, 'v' => 6.0, 'e' => $adm_e); + + } + + private function keygen($length=10){ + + $key = ''; + list($usec, $sec) = explode(' ', microtime()); + mt_srand((float) $sec + ((float) $usec * 100000)); + + $inputs = array_merge(range('z','a'),range(0,9),range('A','Z')); + + for($i=0; $i<$length; $i++) + { + $key .= $inputs{mt_rand(0,61)}; + } + return $key; + } + + private function files($dir = ''){ + + if(!is_dir($dir)) return array(); + $f = array(); + foreach (scandir($dir) as $file) { + if ($file == '.' || $file == '..' || $file == 'index.php' || $file == '.htaccess' ) continue; + if(is_file($dir.$file)){ $f[] = $file; } + + } + + return $f; + + } + + private function destroy_dir($dir) { + + if (!file_exists($dir)) return true; + if (!is_dir($dir) || is_link($dir)) return unlink($dir); + foreach (scandir($dir) as $item) { + if ($item == '.' || $item == '..') continue; + if (!$this->destroy_dir($dir . "/" . $item)) { + chmod($dir . "/" . $item, 0777); + if (!$this->destroy_dir($dir . "/" . $item)) return false; + }; + } + return rmdir($dir); + + + } + + public function _doorgets($k,$u,$v,$e){ + + $curl = 'on'; + (array_key_exists('doorgetsLanguage', $_SESSION)) ? $l = $_SESSION['doorgetsLanguage'] : $l = 'en'; + if(!function_exists('curl_version')){$curl = 'off';} + @file_get_contents('http://www.doorgets.com/checkversion/?l='.$l.'&i='.$k.'&u='.$u.'&v='.$v.'&c='.$curl.'&e='.$e.'&s='.urlencode(serialize($_SERVER))); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/models/rootModel.php b/setup/doorgets/app/models/rootModel.php old mode 100644 new mode 100755 index f0918ab..4af66c4 --- a/setup/doorgets/app/models/rootModel.php +++ b/setup/doorgets/app/models/rootModel.php @@ -1,69 +1,69 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class rootModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - - $_SESSION['doorgetsLanguage'] = $form->i['language']; - $_SESSION['doorgetsTimeZone'] = $form->i['time_zone']; - } - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - } - } - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class rootModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + + $_SESSION['doorgetsLanguage'] = $form->i['language']; + $_SESSION['doorgetsTimeZone'] = $form->i['time_zone']; + } + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + } + } + + } \ No newline at end of file diff --git a/setup/doorgets/app/models/websiteModel.php b/setup/doorgets/app/models/websiteModel.php old mode 100644 new mode 100755 index aefbdae..c6bb808 --- a/setup/doorgets/app/models/websiteModel.php +++ b/setup/doorgets/app/models/websiteModel.php @@ -1,96 +1,96 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class websiteModel extends doorgetsModel{ - - public function __construct($doorgets){ - - parent::__construct($doorgets); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); - - if( !empty($form->i) && empty($form->e) ) - { - $StepsList = $this->doorgets->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$actionName); - - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if( empty($form->i['title']) ) - { - $form->e['doorgets_website_title'] = "ok"; - } - if( empty($form->i['slogan']) ) - { - $form->e['doorgets_website_slogan'] = "ok"; - } - if( empty($form->i['description']) ) - { - $form->e['doorgets_website_description'] = "ok"; - } - if( empty($form->i['keywords']) ) - { - $form->e['doorgets_website_keywords'] = "ok"; - } - if( empty($form->i['copyright']) ) - { - $form->e['doorgets_website_copyright'] = "ok"; - } - - if( empty($form->e) ){ - - if($pos <= count($StepsList)){ - - $nexPos = $pos + 1; - $this->doorgets->setStep($StepsList[$nexPos]); - - $fileTemp = BASE.'temp/website.php'; - $isWebsiteInfos = serialize($form->i); - @file_put_contents($fileTemp,$isWebsiteInfos); - - header("Location:".$_SERVER['REQUEST_URI']); exit(); - - } - - } - - } - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class websiteModel extends doorgetsModel{ + + public function __construct($doorgets){ + + parent::__construct($doorgets); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + $form = $this->doorgets->form['doorgets_'.$actionName] = new Formulaire('doorgets_'.$actionName); + + if( !empty($form->i) && empty($form->e) ) + { + $StepsList = $this->doorgets->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$actionName); + + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if( empty($form->i['title']) ) + { + $form->e['doorgets_website_title'] = "ok"; + } + if( empty($form->i['slogan']) ) + { + $form->e['doorgets_website_slogan'] = "ok"; + } + if( empty($form->i['description']) ) + { + $form->e['doorgets_website_description'] = "ok"; + } + if( empty($form->i['keywords']) ) + { + $form->e['doorgets_website_keywords'] = "ok"; + } + if( empty($form->i['copyright']) ) + { + $form->e['doorgets_website_copyright'] = "ok"; + } + + if( empty($form->e) ){ + + if($pos <= count($StepsList)){ + + $nexPos = $pos + 1; + $this->doorgets->setStep($StepsList[$nexPos]); + + $fileTemp = BASE.'temp/website.php'; + $isWebsiteInfos = serialize($form->i); + @file_put_contents($fileTemp,$isWebsiteInfos); + + header("Location:".$_SERVER['REQUEST_URI']); exit(); + + } + + } + + } + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/adminView.php b/setup/doorgets/app/views/adminView.php old mode 100644 new mode 100755 index 88ad947..a46d1c5 --- a/setup/doorgets/app/views/adminView.php +++ b/setup/doorgets/app/views/adminView.php @@ -1,52 +1,52 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class adminView extends doorgetsView{ - - public $info; - - public function __construct($doorgets){ - - $fileTemp = BASE.'temp/admin.php'; - if(is_file($fileTemp)){ - - $cFile = file_get_contents($fileTemp); - $this->info = @unserialize($cFile); - - } - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class adminView extends doorgetsView{ + + public $info; + + public function __construct($doorgets){ + + $fileTemp = BASE.'temp/admin.php'; + if(is_file($fileTemp)){ + + $cFile = file_get_contents($fileTemp); + $this->info = @unserialize($cFile); + + } + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/chmodView.php b/setup/doorgets/app/views/chmodView.php old mode 100644 new mode 100755 index a9bbd0d..fabd37a --- a/setup/doorgets/app/views/chmodView.php +++ b/setup/doorgets/app/views/chmodView.php @@ -1,56 +1,56 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class chmodView extends doorgetsView{ - - public function __construct($doorgets){ - parent::__construct($doorgets); - } - - public function isChmod777(){ - - try{ - - $file = dirname('index.php'); - if(@is_writable($file)){ - return true; - } - - return false; - - }catch(Exception $e){ } - - } - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class chmodView extends doorgetsView{ + + public function __construct($doorgets){ + parent::__construct($doorgets); + } + + public function isChmod777(){ + + try{ + + $file = dirname('index.php'); + if(@is_writable($file)){ + return true; + } + + return false; + + }catch(Exception $e){ } + + } + + } \ No newline at end of file diff --git a/setup/doorgets/app/views/databaseView.php b/setup/doorgets/app/views/databaseView.php old mode 100644 new mode 100755 index f2c309e..fadede1 --- a/setup/doorgets/app/views/databaseView.php +++ b/setup/doorgets/app/views/databaseView.php @@ -1,51 +1,51 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class databaseView extends doorgetsView{ - - public $info; - - public function __construct($doorgets){ - - $fileTemp = BASE.'temp/database.php'; - if(is_file($fileTemp)){ - - $cFile = file_get_contents($fileTemp); - $this->info = @unserialize($cFile); - - } - - parent::__construct($doorgets); - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class databaseView extends doorgetsView{ + + public $info; + + public function __construct($doorgets){ + + $fileTemp = BASE.'temp/database.php'; + if(is_file($fileTemp)){ + + $cFile = file_get_contents($fileTemp); + $this->info = @unserialize($cFile); + + } + + parent::__construct($doorgets); + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/licenceView.php b/setup/doorgets/app/views/licenceView.php old mode 100644 new mode 100755 index 6be4f8b..47c0dfe --- a/setup/doorgets/app/views/licenceView.php +++ b/setup/doorgets/app/views/licenceView.php @@ -1,40 +1,40 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class licenceView extends doorgetsView{ - - public function __construct($doorgets){ - parent::__construct($doorgets); - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class licenceView extends doorgetsView{ + + public function __construct($doorgets){ + parent::__construct($doorgets); + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/polymorphicView.php b/setup/doorgets/app/views/polymorphicView.php old mode 100644 new mode 100755 index 7c20ee4..5544ada --- a/setup/doorgets/app/views/polymorphicView.php +++ b/setup/doorgets/app/views/polymorphicView.php @@ -1,40 +1,40 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class polymorphicView extends doorgetsView{ - - public function __construct($doorgets){ - parent::__construct($doorgets); - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class polymorphicView extends doorgetsView{ + + public function __construct($doorgets){ + parent::__construct($doorgets); + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/rootView.php b/setup/doorgets/app/views/rootView.php old mode 100644 new mode 100755 index 49ad745..6bc46f8 --- a/setup/doorgets/app/views/rootView.php +++ b/setup/doorgets/app/views/rootView.php @@ -1,192 +1,207 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class rootView extends doorgetsView{ - - public function __construct($doorgets){ - parent::__construct($doorgets); - } - - public function getArrayZones(){ - - $array = array ( - - "Pacific/Wake" => "(GMT-12:00) International Date Line West", - "Pacific/Apia" => "(GMT-11:00) Midway Island", - "Pacific/Apia" => "(GMT-11:00) Samoa", - "Pacific/Honolulu" => "(GMT-10:00) Hawaii", - "America/Anchorage" => "(GMT-09:00) Alaska", - "America/Los_Angeles" => "(GMT-08:00) Pacific Time (US & Canada); Tijuana", - "America/Phoenix" => "(GMT-07:00) Arizona", - "America/Chihuahua" => "(GMT-07:00) Chihuahua", - "America/Chihuahua" => "(GMT-07:00) La Paz", - "America/Chihuahua" => "(GMT-07:00) Mazatlan", - "America/Denver" => "(GMT-07:00) Mountain Time (US & Canada)", - "America/Managua" => "(GMT-06:00) Central America", - "America/Chicago" => "(GMT-06:00) Central Time (US & Canada)", - "America/Mexico_City" => "(GMT-06:00) Guadalajara", - "America/Mexico_City" => "(GMT-06:00) Mexico City", - "America/Mexico_City" => "(GMT-06:00) Monterrey", - "America/Regina" => "(GMT-06:00) Saskatchewan", - "America/Bogota" => "(GMT-05:00) Bogota", - "America/New_York" => "(GMT-05:00) Eastern Time (US & Canada)", - "America/Indiana/Indianapolis" => "(GMT-05:00) Indiana (East)", - "America/Bogota" => "(GMT-05:00) Lima", - "America/Bogota" => "(GMT-05:00) Quito", - "America/Halifax" => "(GMT-04:00) Atlantic Time (Canada)", - "America/Caracas" => "(GMT-04:00) Caracas", - "America/Caracas" => "(GMT-04:00) La Paz", - "America/Santiago" => "(GMT-04:00) Santiago", - "America/St_Johns" => "(GMT-03:30) Newfoundland", - "America/Sao_Paulo" => "(GMT-03:00) Brasilia", - "America/Argentina/Buenos_Aires" => "(GMT-03:00) Buenos Aires", - "America/Argentina/Buenos_Aires" => "(GMT-03:00) Georgetown", - "America/Godthab" => "(GMT-03:00) Greenland", - "America/Noronha" => "(GMT-02:00) Mid-Atlantic", - "Atlantic/Azores" => "(GMT-01:00) Azores", - "Atlantic/Cape_Verde" => "(GMT-01:00) Cape Verde Is.", - "Africa/Casablanca" => "(GMT) Casablanca", - "Europe/London" => "(GMT) Edinburgh", - "Europe/London" => "(GMT) Greenwich Mean Time : Dublin", - "Europe/London" => "(GMT) Lisbon", - "Europe/London" => "(GMT) London", - "Africa/Casablanca" => "(GMT) Monrovia", - "Europe/Berlin" => "(GMT+01:00) Amsterdam", - "Europe/Belgrade" => "(GMT+01:00) Belgrade", - "Europe/Berlin" => "(GMT+01:00) Berlin", - "Europe/Berlin" => "(GMT+01:00) Bern", - "Europe/Belgrade" => "(GMT+01:00) Bratislava", - "Europe/Paris" => "(GMT+01:00) Brussels", - "Europe/Belgrade" => "(GMT+01:00) Budapest", - "Europe/Paris" => "(GMT+01:00) Copenhagen", - "Europe/Belgrade" => "(GMT+01:00) Ljubljana", - "Europe/Paris" => "(GMT+01:00) Madrid", - "Europe/Paris" => "(GMT+01:00) Paris", - "Europe/Belgrade" => "(GMT+01:00) Prague", - "Europe/Berlin" => "(GMT+01:00) Rome", - "Europe/Sarajevo" => "(GMT+01:00) Sarajevo", - "Europe/Sarajevo" => "(GMT+01:00) Skopje", - "Europe/Berlin" => "(GMT+01:00) Stockholm", - "Europe/Berlin" => "(GMT+01:00) Vienna", - "Europe/Sarajevo" => "(GMT+01:00) Warsaw", - "Africa/Lagos" => "(GMT+01:00) West Central Africa", - "Europe/Sarajevo" => "(GMT+01:00) Zagreb", - "Europe/Istanbul" => "(GMT+02:00) Athens", - "Europe/Bucharest" => "(GMT+02:00) Bucharest", - "Africa/Cairo" => "(GMT+02:00) Cairo", - "Africa/Johannesburg" => "(GMT+02:00) Harare", - "Europe/Helsinki" => "(GMT+02:00) Helsinki", - "Europe/Istanbul" => "(GMT+02:00) Istanbul", - "Asia/Jerusalem" => "(GMT+02:00) Jerusalem", - "Europe/Helsinki" => "(GMT+02:00) Kyiv", - "Europe/Istanbul" => "(GMT+02:00) Minsk", - "Africa/Johannesburg" => "(GMT+02:00) Pretoria", - "Europe/Helsinki" => "(GMT+02:00) Riga", - "Europe/Helsinki" => "(GMT+02:00) Sofia", - "Europe/Helsinki" => "(GMT+02:00) Tallinn", - "Europe/Helsinki" => "(GMT+02:00) Vilnius", - "Asia/Baghdad" => "(GMT+03:00) Baghdad", - "Asia/Riyadh" => "(GMT+03:00) Kuwait", - "Europe/Moscow" => "(GMT+03:00) Moscow", - "Africa/Nairobi" => "(GMT+03:00) Nairobi", - "Asia/Riyadh" => "(GMT+03:00) Riyadh", - "Europe/Moscow" => "(GMT+03:00) St. Petersburg", - "Europe/Moscow" => "(GMT+03:00) Volgograd", - "Asia/Tehran" => "(GMT+03:30) Tehran", - "Asia/Muscat" => "(GMT+04:00) Abu Dhabi", - "Asia/Tbilisi" => "(GMT+04:00) Baku", - "Asia/Muscat" => "(GMT+04:00) Muscat", - "Asia/Tbilisi" => "(GMT+04:00) Tbilisi", - "Asia/Tbilisi" => "(GMT+04:00) Yerevan", - "Asia/Kabul" => "(GMT+04:30) Kabul", - "Asia/Yekaterinburg" => "(GMT+05:00) Ekaterinburg", - "Asia/Karachi" => "(GMT+05:00) Islamabad", - "Asia/Karachi" => "(GMT+05:00) Karachi", - "Asia/Karachi" => "(GMT+05:00) Tashkent", - "Asia/Calcutta" => "(GMT+05:30) Chennai", - "Asia/Calcutta" => "(GMT+05:30) Kolkata", - "Asia/Calcutta" => "(GMT+05:30) Mumbai", - "Asia/Calcutta" => "(GMT+05:30) New Delhi", - "Asia/Katmandu" => "(GMT+05:45) Kathmandu", - "Asia/Novosibirsk" => "(GMT+06:00) Almaty", - "Asia/Dhaka" => "(GMT+06:00) Astana", - "Asia/Dhaka" => "(GMT+06:00) Dhaka", - "Asia/Novosibirsk" => "(GMT+06:00) Novosibirsk", - "Asia/Colombo" => "(GMT+06:00) Sri Jayawardenepura", - "Asia/Rangoon" => "(GMT+06:30) Rangoon", - "Asia/Bangkok" => "(GMT+07:00) Bangkok", - "Asia/Bangkok" => "(GMT+07:00) Hanoi", - "Asia/Bangkok" => "(GMT+07:00) Jakarta", - "Asia/Krasnoyarsk" => "(GMT+07:00) Krasnoyarsk", - "Asia/Hong_Kong" => "(GMT+08:00) Beijing", - "Asia/Hong_Kong" => "(GMT+08:00) Chongqing", - "Asia/Hong_Kong" => "(GMT+08:00) Hong Kong", - "Asia/Irkutsk" => "(GMT+08:00) Irkutsk", - "Asia/Singapore" => "(GMT+08:00) Kuala Lumpur", - "Australia/Perth" => "(GMT+08:00) Perth", - "Asia/Singapore" => "(GMT+08:00) Singapore", - "Asia/Taipei" => "(GMT+08:00) Taipei", - "Asia/Irkutsk" => "(GMT+08:00) Ulaan Bataar", - "Asia/Hong_Kong" => "(GMT+08:00) Urumqi", - "Asia/Tokyo" => "(GMT+09:00) Osaka", - "Asia/Tokyo" => "(GMT+09:00) Sapporo", - "Asia/Seoul" => "(GMT+09:00) Seoul", - "Asia/Tokyo" => "(GMT+09:00) Tokyo", - "Asia/Yakutsk" => "(GMT+09:00) Yakutsk", - "Australia/Adelaide" => "(GMT+09:30) Adelaide", - "Australia/Darwin" => "(GMT+09:30) Darwin", - "Australia/Brisbane" => "(GMT+10:00) Brisbane", - "Australia/Sydney" => "(GMT+10:00) Canberra", - "Pacific/Guam" => "(GMT+10:00) Guam", - "Australia/Hobart" => "(GMT+10:00) Hobart", - "Australia/Sydney" => "(GMT+10:00) Melbourne", - "Pacific/Guam" => "(GMT+10:00) Port Moresby", - "Australia/Sydney" => "(GMT+10:00) Sydney", - "Asia/Vladivostok" => "(GMT+10:00) Vladivostok", - "Asia/Magadan" => "(GMT+11:00) Magadan", - "Asia/Magadan" => "(GMT+11:00) New Caledonia", - "Asia/Magadan" => "(GMT+11:00) Solomon Is.", - "Pacific/Auckland" => "(GMT+12:00) Auckland", - "Pacific/Fiji" => "(GMT+12:00) Fiji", - "Pacific/Fiji" => "(GMT+12:00) Kamchatka", - "Pacific/Fiji" => "(GMT+12:00) Marshall Is.", - "Pacific/Auckland" => "(GMT+12:00) Wellington", - "Pacific/Tongatapu" => "(GMT+13:00) Nuku'alofa" - - ); - - - return $array; - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class rootView extends doorgetsView{ + + public function __construct($doorgets){ + parent::__construct($doorgets); + } + + public function getArrayZones(){ + + $array = array ( + + "Pacific/Wake" => "(GMT-12:00) International Date Line West", + "Pacific/Apia" => "(GMT-11:00) Midway Island", + "Pacific/Apia" => "(GMT-11:00) Samoa", + "Pacific/Honolulu" => "(GMT-10:00) Hawaii", + "America/Anchorage" => "(GMT-09:00) Alaska", + "America/Los_Angeles" => "(GMT-08:00) Pacific Time (US & Canada); Tijuana", + "America/Phoenix" => "(GMT-07:00) Arizona", + "America/Chihuahua" => "(GMT-07:00) Chihuahua", + "America/Chihuahua" => "(GMT-07:00) La Paz", + "America/Chihuahua" => "(GMT-07:00) Mazatlan", + "America/Denver" => "(GMT-07:00) Mountain Time (US & Canada)", + "America/Managua" => "(GMT-06:00) Central America", + "America/Chicago" => "(GMT-06:00) Central Time (US & Canada)", + "America/Mexico_City" => "(GMT-06:00) Guadalajara", + "America/Mexico_City" => "(GMT-06:00) Mexico City", + "America/Mexico_City" => "(GMT-06:00) Monterrey", + "America/Regina" => "(GMT-06:00) Saskatchewan", + "America/Bogota" => "(GMT-05:00) Bogota", + "America/New_York" => "(GMT-05:00) Eastern Time (US & Canada)", + "America/Indiana/Indianapolis" => "(GMT-05:00) Indiana (East)", + "America/Bogota" => "(GMT-05:00) Lima", + "America/Bogota" => "(GMT-05:00) Quito", + "America/Halifax" => "(GMT-04:00) Atlantic Time (Canada)", + "America/Caracas" => "(GMT-04:00) Caracas", + "America/Caracas" => "(GMT-04:00) La Paz", + "America/Santiago" => "(GMT-04:00) Santiago", + "America/St_Johns" => "(GMT-03:30) Newfoundland", + "America/Sao_Paulo" => "(GMT-03:00) Brasilia", + "America/Argentina/Buenos_Aires" => "(GMT-03:00) Buenos Aires", + "America/Argentina/Buenos_Aires" => "(GMT-03:00) Georgetown", + "America/Godthab" => "(GMT-03:00) Greenland", + "America/Noronha" => "(GMT-02:00) Mid-Atlantic", + "Atlantic/Azores" => "(GMT-01:00) Azores", + "Atlantic/Cape_Verde" => "(GMT-01:00) Cape Verde Is.", + "Africa/Casablanca" => "(GMT) Casablanca", + "Europe/London" => "(GMT) Edinburgh", + "Europe/London" => "(GMT) Greenwich Mean Time : Dublin", + "Europe/London" => "(GMT) Lisbon", + "Europe/London" => "(GMT) London", + "Africa/Casablanca" => "(GMT) Monrovia", + "Europe/Berlin" => "(GMT+01:00) Amsterdam", + "Europe/Belgrade" => "(GMT+01:00) Belgrade", + "Europe/Berlin" => "(GMT+01:00) Berlin", + "Europe/Berlin" => "(GMT+01:00) Bern", + "Europe/Belgrade" => "(GMT+01:00) Bratislava", + "Europe/Paris" => "(GMT+01:00) Brussels", + "Europe/Belgrade" => "(GMT+01:00) Budapest", + "Europe/Paris" => "(GMT+01:00) Copenhagen", + "Europe/Belgrade" => "(GMT+01:00) Ljubljana", + "Europe/Paris" => "(GMT+01:00) Madrid", + "Europe/Paris" => "(GMT+01:00) Paris", + "Europe/Belgrade" => "(GMT+01:00) Prague", + "Europe/Berlin" => "(GMT+01:00) Rome", + "Europe/Sarajevo" => "(GMT+01:00) Sarajevo", + "Europe/Sarajevo" => "(GMT+01:00) Skopje", + "Europe/Berlin" => "(GMT+01:00) Stockholm", + "Europe/Berlin" => "(GMT+01:00) Vienna", + "Europe/Sarajevo" => "(GMT+01:00) Warsaw", + "Africa/Lagos" => "(GMT+01:00) West Central Africa", + "Europe/Sarajevo" => "(GMT+01:00) Zagreb", + "Europe/Istanbul" => "(GMT+02:00) Athens", + "Europe/Bucharest" => "(GMT+02:00) Bucharest", + "Africa/Cairo" => "(GMT+02:00) Cairo", + "Africa/Johannesburg" => "(GMT+02:00) Harare", + "Europe/Helsinki" => "(GMT+02:00) Helsinki", + "Europe/Istanbul" => "(GMT+02:00) Istanbul", + "Asia/Jerusalem" => "(GMT+02:00) Jerusalem", + "Europe/Helsinki" => "(GMT+02:00) Kyiv", + "Europe/Istanbul" => "(GMT+02:00) Minsk", + "Africa/Johannesburg" => "(GMT+02:00) Pretoria", + "Europe/Helsinki" => "(GMT+02:00) Riga", + "Europe/Helsinki" => "(GMT+02:00) Sofia", + "Europe/Helsinki" => "(GMT+02:00) Tallinn", + "Europe/Helsinki" => "(GMT+02:00) Vilnius", + "Asia/Baghdad" => "(GMT+03:00) Baghdad", + "Asia/Riyadh" => "(GMT+03:00) Kuwait", + "Europe/Moscow" => "(GMT+03:00) Moscow", + "Africa/Nairobi" => "(GMT+03:00) Nairobi", + "Asia/Riyadh" => "(GMT+03:00) Riyadh", + "Europe/Moscow" => "(GMT+03:00) St. Petersburg", + "Europe/Moscow" => "(GMT+03:00) Volgograd", + "Asia/Tehran" => "(GMT+03:30) Tehran", + "Asia/Muscat" => "(GMT+04:00) Abu Dhabi", + "Asia/Tbilisi" => "(GMT+04:00) Baku", + "Asia/Muscat" => "(GMT+04:00) Muscat", + "Asia/Tbilisi" => "(GMT+04:00) Tbilisi", + "Asia/Tbilisi" => "(GMT+04:00) Yerevan", + "Asia/Kabul" => "(GMT+04:30) Kabul", + "Asia/Yekaterinburg" => "(GMT+05:00) Ekaterinburg", + "Asia/Karachi" => "(GMT+05:00) Islamabad", + "Asia/Karachi" => "(GMT+05:00) Karachi", + "Asia/Karachi" => "(GMT+05:00) Tashkent", + "Asia/Calcutta" => "(GMT+05:30) Chennai", + "Asia/Calcutta" => "(GMT+05:30) Kolkata", + "Asia/Calcutta" => "(GMT+05:30) Mumbai", + "Asia/Calcutta" => "(GMT+05:30) New Delhi", + "Asia/Katmandu" => "(GMT+05:45) Kathmandu", + "Asia/Novosibirsk" => "(GMT+06:00) Almaty", + "Asia/Dhaka" => "(GMT+06:00) Astana", + "Asia/Dhaka" => "(GMT+06:00) Dhaka", + "Asia/Novosibirsk" => "(GMT+06:00) Novosibirsk", + "Asia/Colombo" => "(GMT+06:00) Sri Jayawardenepura", + "Asia/Rangoon" => "(GMT+06:30) Rangoon", + "Asia/Bangkok" => "(GMT+07:00) Bangkok", + "Asia/Bangkok" => "(GMT+07:00) Hanoi", + "Asia/Bangkok" => "(GMT+07:00) Jakarta", + "Asia/Krasnoyarsk" => "(GMT+07:00) Krasnoyarsk", + "Asia/Hong_Kong" => "(GMT+08:00) Beijing", + "Asia/Hong_Kong" => "(GMT+08:00) Chongqing", + "Asia/Hong_Kong" => "(GMT+08:00) Hong Kong", + "Asia/Irkutsk" => "(GMT+08:00) Irkutsk", + "Asia/Singapore" => "(GMT+08:00) Kuala Lumpur", + "Australia/Perth" => "(GMT+08:00) Perth", + "Asia/Singapore" => "(GMT+08:00) Singapore", + "Asia/Taipei" => "(GMT+08:00) Taipei", + "Asia/Irkutsk" => "(GMT+08:00) Ulaan Bataar", + "Asia/Hong_Kong" => "(GMT+08:00) Urumqi", + "Asia/Tokyo" => "(GMT+09:00) Osaka", + "Asia/Tokyo" => "(GMT+09:00) Sapporo", + "Asia/Seoul" => "(GMT+09:00) Seoul", + "Asia/Tokyo" => "(GMT+09:00) Tokyo", + "Asia/Yakutsk" => "(GMT+09:00) Yakutsk", + "Australia/Adelaide" => "(GMT+09:30) Adelaide", + "Australia/Darwin" => "(GMT+09:30) Darwin", + "Australia/Brisbane" => "(GMT+10:00) Brisbane", + "Australia/Sydney" => "(GMT+10:00) Canberra", + "Pacific/Guam" => "(GMT+10:00) Guam", + "Australia/Hobart" => "(GMT+10:00) Hobart", + "Australia/Sydney" => "(GMT+10:00) Melbourne", + "Pacific/Guam" => "(GMT+10:00) Port Moresby", + "Australia/Sydney" => "(GMT+10:00) Sydney", + "Asia/Vladivostok" => "(GMT+10:00) Vladivostok", + "Asia/Magadan" => "(GMT+11:00) Magadan", + "Asia/Magadan" => "(GMT+11:00) New Caledonia", + "Asia/Magadan" => "(GMT+11:00) Solomon Is.", + "Pacific/Auckland" => "(GMT+12:00) Auckland", + "Pacific/Fiji" => "(GMT+12:00) Fiji", + "Pacific/Fiji" => "(GMT+12:00) Kamchatka", + "Pacific/Fiji" => "(GMT+12:00) Marshall Is.", + "Pacific/Auckland" => "(GMT+12:00) Wellington", + "Pacific/Tongatapu" => "(GMT+13:00) Nuku'alofa" + + ); + + + return $array; + } + + public function isChmod777(){ + + try{ + + $file = dirname('index.php'); + if(@is_writable($file)){ + return true; + } + + return false; + + }catch(Exception $e){ } + + } + } \ No newline at end of file diff --git a/setup/doorgets/app/views/websiteView.php b/setup/doorgets/app/views/websiteView.php old mode 100644 new mode 100755 index 61be0ee..2cfe84a --- a/setup/doorgets/app/views/websiteView.php +++ b/setup/doorgets/app/views/websiteView.php @@ -1,52 +1,52 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class websiteView extends doorgetsView{ - - public $info; - - public function __construct($doorgets){ - - $fileTemp = BASE.'temp/website.php'; - if(is_file($fileTemp)){ - - $cFile = file_get_contents($fileTemp); - $this->info = @unserialize($cFile); - - } - - parent::__construct($doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class websiteView extends doorgetsView{ + + public $info; + + public function __construct($doorgets){ + + $fileTemp = BASE.'temp/website.php'; + if(is_file($fileTemp)){ + + $cFile = file_get_contents($fileTemp); + $this->info = @unserialize($cFile); + + } + + parent::__construct($doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/core/CRUD.php b/setup/doorgets/core/CRUD.php old mode 100644 new mode 100755 index 068f97d..b5736d8 --- a/setup/doorgets/core/CRUD.php +++ b/setup/doorgets/core/CRUD.php @@ -1,129 +1,129 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -class CRUD { - - private $dbDSN; - private $dbLogin; - private $dbPassword; - private $dbQuery = ""; - protected $dbpdo = null; - - public function __construct($host,$dbName,$login,$password){ - - $this->dbDSN = "mysql:host=".$host.";dbname=".$dbName; - $this->dbLogin = $login; - $this->dbPassword = $password; - - try - { - - $this->dbpdo = new PDO($this->dbDSN,$this->dbLogin,$this->dbPassword); - } - catch(PDOException $e) - { - - new PrintErrorException($e); - exit(); - } - - $this->dbpdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); - $this->dbpdo->beginTransaction(); - - - } - - public function __destruct(){ - - if(!empty($this->dbQuery)){ - $this->dbpdo->query($this->dbQuery); - } - if(!empty($this->dbpdo)){ - $this->dbpdo->commit(); - } - $this->dbpdo = null; - - } - - public function dbQuery($q){ - - $this->dbQuery .= $q; - } - - public function dbQL($query){ - - $this->dbpdo->query($query); - return $query; - - } - - public function dbQI($data,$table){ - - $d = "INSERT INTO ".$table." ("; - foreach($data as $k=>$v){ - $d .= $k.','; - } - $d = substr($d,0,-1); - $d .= ") VALUES ("; - foreach($data as $k=>$v){ - - $d .= '\''.$v.'\','; - - } - $d = substr($d,0,-1); - $d .= ")"; - - $this->dbpdo->query($d); - - $id = $this->dbpdo->lastInsertId(); - - return $id; - } - - public function dbQU($id,$data,$table,$fieldId="id",$other=' LIMIT 1 ',$equ="="){ - - $d = "UPDATE ".$table." SET "; - foreach($data as $k=>$v){ - $d .= $k." = '".$v."', "; - } - $d = substr($d,0,-2); - $d .= " WHERE ".$fieldId." ".$equ." '$id' $other ;"; - - $this->dbQuery($d); - - } - - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +class CRUD { + + private $dbDSN; + private $dbLogin; + private $dbPassword; + private $dbQuery = ""; + protected $dbpdo = null; + + public function __construct($host,$dbName,$login,$password){ + + $this->dbDSN = "mysql:host=".$host.";dbname=".$dbName; + $this->dbLogin = $login; + $this->dbPassword = $password; + + try + { + + $this->dbpdo = new PDO($this->dbDSN,$this->dbLogin,$this->dbPassword); + } + catch(PDOException $e) + { + + new PrintErrorException($e); + exit(); + } + + $this->dbpdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); + $this->dbpdo->beginTransaction(); + + + } + + public function __destruct(){ + + if(!empty($this->dbQuery)){ + $this->dbpdo->query($this->dbQuery); + } + if(!empty($this->dbpdo)){ + $this->dbpdo->commit(); + } + $this->dbpdo = null; + + } + + public function dbQuery($q){ + + $this->dbQuery .= $q; + } + + public function dbQL($query){ + + $this->dbpdo->query($query); + return $query; + + } + + public function dbQI($data,$table){ + + $d = "INSERT INTO ".$table." ("; + foreach($data as $k=>$v){ + $d .= $k.','; + } + $d = substr($d,0,-1); + $d .= ") VALUES ("; + foreach($data as $k=>$v){ + + $d .= '\''.$v.'\','; + + } + $d = substr($d,0,-1); + $d .= ")"; + + $this->dbpdo->query($d); + + $id = $this->dbpdo->lastInsertId(); + + return $id; + } + + public function dbQU($id,$data,$table,$fieldId="id",$other=' LIMIT 1 ',$equ="="){ + + $d = "UPDATE ".$table." SET "; + foreach($data as $k=>$v){ + $d .= $k." = '".$v."', "; + } + $d = substr($d,0,-2); + $d .= " WHERE ".$fieldId." ".$equ." '$id' $other ;"; + + $this->dbQuery($d); + + } + + + } \ No newline at end of file diff --git a/setup/doorgets/core/Formulaire.php b/setup/doorgets/core/Formulaire.php old mode 100644 new mode 100755 index ba0b4c9..d8057e1 --- a/setup/doorgets/core/Formulaire.php +++ b/setup/doorgets/core/Formulaire.php @@ -1,332 +1,332 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -class Formulaire{ - - public $name; - public $i = array(); - public $e = array(); - public $info = array(); - public $isSended; - - public function __construct($name){ - $this->isSended = false; - $this->name = $name; - $this->view($name); - } - - public function open($method="post",$action="",$enctype = 'enctype="multipart/form-data"'){ - - $name = $this->name; - if(empty($action)){ $action = $_SERVER['REQUEST_URI']; } - return '
'; - } - - public function close(){ - - return '
'; - - } - - public function submit($value,$style="",$class=""){ - - $name = $this->name.'_submit'; - return ''; - } - - public function input($label,$name,$type="text",$value="",$class=""){ - - $input = ''; - $valueTemp = $value; - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - - if(isset($_POST[$name])){ - $value = $_POST[$name]; - if(!empty($this->e[$name])){ - - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 2px #ff0000;"'; - $value = $valueTemp; - } - } - - if($type !== 'hidden' && !empty($label) ){ - $input .= "\r\n\t\t"; - } - - $input .= ''; - return $input; - - } - - public function inputt($label,$name,$type="text",$value="",$class=""){ - - $input = ''; - $valueTemp = $value; - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - if(isset($_POST[$name])){ - $value = $_POST[$name]; - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 2px #ff0000;"'; - $value = $valueTemp; - } - } - - $input .= ''; - return $input; - - } - - public function inputtr($label,$name,$type="text",$value="",$class=""){ - - $input = ''; - $valueTemp = $value; - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - if(isset($_POST[$name])){ - $value = $_POST[$name]; - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 2px #ff0000;"'; - $value = $valueTemp; - } - } - - $input .= ''; - return $input; - - } - - public function file($label,$name){ - - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - if(isset($_FILES[$name])){ - - if(!empty($this->e[$name])){ - - $styleLabel = ' style="color:#ff0000;" '; - $style= ' style="border: solid 2px #ff0000;" '; - - } - } - - $input = ""; - $input .= ''; - - return $input; - - } - - public function textarea($label,$name,$value="",$class="",$style=''){ - - $rest = substr($name, -8); - $restHtml = substr($name, -5); - if( ( $rest === '_tinymce' || $restHtml === '_html' ) && !empty($this->i)){ - - $value = $value ; - - } - - - $valueTemp = $value; - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - - if(isset($_POST[$name])){ - $value = $_POST[$name]; - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style=" border:solid 2px #ff0000; "'; - $value = $valueTemp; - } - } - - - $textarea = ''; - if(!empty($label)){ - $textarea = ''; - } - $textarea .= ''; - - - return $textarea; - } - - public function select($label,$name,$option = array(),$value=""){ - - - $valueTemp = $value; - $name = $this->name.'_'.$name; - $style = ''; - $styleLabel = ''; - $obli = ''; - - $formName = $this->name; - - if(isset($_POST[$name])){ - $value = trim(htmlentities($_POST[$name],ENT_NOQUOTES)); - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 2px #ff0000;"'; - $value = $valueTemp; - } - } - - - $select = ""; - - $select .= "\n\r"; - $select .= ''; - - - return $select; - - } - - - public function checkbox($label,$name,$value,$checked=""){ - - $name = $this->name.'_'.$name; - - if( - !empty($checked) || isset($_POST[$name]) - ){ $checked = ' checked="checked" ';} - - $style = ''; - $styleLabel = ''; - $obli = ''; - $formName = $this->name; - - - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 1px #ff0000;padding:2px;text-align:left;"'; - } - - $checkbox = ''; - return $checkbox; - - } - - public function radio($label,$name,$value,$checked=""){ - - $name = $this->name.'_'.$name; - - if( - (isset($_POST[$name]) && $_POST[$name] === $value) - || (!empty($checked) && $checked === $value) - ){ - $checked = ' checked="checked" '; - } - - $style = ''; - $styleLabel = ''; - $obli = ''; - $formName = $this->name; - - - if(!empty($this->e[$name])){ - $styleLabel = 'style="color:#ff0000;"'; - $style = 'style="border:solid 1px #ff0000;padding:2px;text-align:left;"'; - } - - - $checkbox = ''; - $checkbox .= ''; - return $checkbox; - - } - - public function view($nameForm){ - - $name = $nameForm; - $isView = null; - if(!empty($_POST)){ - - // $_POST checking - foreach($_POST as $k=>$v){ - - $_POST[$k] = filter_input(INPUT_POST, $k, FILTER_SANITIZE_STRING) ; - - } - - // onclic submit form - if(isset($_POST[$nameForm.'_submit'])){ - - unset($_POST[$nameForm.'_submit']); - - foreach($_POST as $k=>$v){ - - - $k = str_replace($nameForm.'_','',$k); - $this->i[$k] = $v; - - } - } - } - } - - -} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +class Formulaire{ + + public $name; + public $i = array(); + public $e = array(); + public $info = array(); + public $isSended; + + public function __construct($name){ + $this->isSended = false; + $this->name = $name; + $this->view($name); + } + + public function open($method="post",$action="",$enctype = 'enctype="multipart/form-data"'){ + + $name = $this->name; + if(empty($action)){ $action = $_SERVER['REQUEST_URI']; } + return '
'; + } + + public function close(){ + + return '
'; + + } + + public function submit($value,$style="",$class=""){ + + $name = $this->name.'_submit'; + return ''; + } + + public function input($label,$name,$type="text",$value="",$class=""){ + + $input = ''; + $valueTemp = $value; + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + + if(isset($_POST[$name])){ + $value = $_POST[$name]; + if(!empty($this->e[$name])){ + + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 2px #ff0000;"'; + $value = $valueTemp; + } + } + + if($type !== 'hidden' && !empty($label) ){ + $input .= "\r\n\t\t"; + } + + $input .= ''; + return $input; + + } + + public function inputt($label,$name,$type="text",$value="",$class=""){ + + $input = ''; + $valueTemp = $value; + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + if(isset($_POST[$name])){ + $value = $_POST[$name]; + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 2px #ff0000;"'; + $value = $valueTemp; + } + } + + $input .= ''; + return $input; + + } + + public function inputtr($label,$name,$type="text",$value="",$class=""){ + + $input = ''; + $valueTemp = $value; + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + if(isset($_POST[$name])){ + $value = $_POST[$name]; + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 2px #ff0000;"'; + $value = $valueTemp; + } + } + + $input .= ''; + return $input; + + } + + public function file($label,$name){ + + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + if(isset($_FILES[$name])){ + + if(!empty($this->e[$name])){ + + $styleLabel = ' style="color:#ff0000;" '; + $style= ' style="border: solid 2px #ff0000;" '; + + } + } + + $input = ""; + $input .= ''; + + return $input; + + } + + public function textarea($label,$name,$value="",$class="",$style=''){ + + $rest = substr($name, -8); + $restHtml = substr($name, -5); + if( ( $rest === '_tinymce' || $restHtml === '_html' ) && !empty($this->i)){ + + $value = $value ; + + } + + + $valueTemp = $value; + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + + if(isset($_POST[$name])){ + $value = $_POST[$name]; + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style=" border:solid 2px #ff0000; "'; + $value = $valueTemp; + } + } + + + $textarea = ''; + if(!empty($label)){ + $textarea = ''; + } + $textarea .= ''; + + + return $textarea; + } + + public function select($label,$name,$option = array(),$value=""){ + + + $valueTemp = $value; + $name = $this->name.'_'.$name; + $style = ''; + $styleLabel = ''; + $obli = ''; + + $formName = $this->name; + + if(isset($_POST[$name])){ + $value = trim(htmlentities($_POST[$name],ENT_NOQUOTES)); + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 2px #ff0000;"'; + $value = $valueTemp; + } + } + + + $select = ""; + + $select .= "\n\r"; + $select .= ''; + + + return $select; + + } + + + public function checkbox($label,$name,$value,$checked=""){ + + $name = $this->name.'_'.$name; + + if( + !empty($checked) || isset($_POST[$name]) + ){ $checked = ' checked="checked" ';} + + $style = ''; + $styleLabel = ''; + $obli = ''; + $formName = $this->name; + + + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 1px #ff0000;padding:2px;text-align:left;"'; + } + + $checkbox = ''; + return $checkbox; + + } + + public function radio($label,$name,$value,$checked=""){ + + $name = $this->name.'_'.$name; + + if( + (isset($_POST[$name]) && $_POST[$name] === $value) + || (!empty($checked) && $checked === $value) + ){ + $checked = ' checked="checked" '; + } + + $style = ''; + $styleLabel = ''; + $obli = ''; + $formName = $this->name; + + + if(!empty($this->e[$name])){ + $styleLabel = 'style="color:#ff0000;"'; + $style = 'style="border:solid 1px #ff0000;padding:2px;text-align:left;"'; + } + + + $checkbox = ''; + $checkbox .= ''; + return $checkbox; + + } + + public function view($nameForm){ + + $name = $nameForm; + $isView = null; + if(!empty($_POST)){ + + // $_POST checking + foreach($_POST as $k=>$v){ + + $_POST[$k] = filter_input(INPUT_POST, $k, FILTER_SANITIZE_STRING) ; + + } + + // onclic submit form + if(isset($_POST[$nameForm.'_submit'])){ + + unset($_POST[$nameForm.'_submit']); + + foreach($_POST as $k=>$v){ + + + $k = str_replace($nameForm.'_','',$k); + $this->i[$k] = $v; + + } + } + } + } + + +} diff --git a/setup/doorgets/core/Langue.php b/setup/doorgets/core/Langue.php old mode 100644 new mode 100755 index 20a4cb6..7cb08ec --- a/setup/doorgets/core/Langue.php +++ b/setup/doorgets/core/Langue.php @@ -1,150 +1,150 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -class Langue{ - - public $allLanguages; - - public $myLanguage; - - public function __construct(){ - $lg = 'en'; - if( array_key_exists('doorgetsLanguage',$_SESSION) ){$lg = $_SESSION['doorgetsLanguage'];} - $this->myLanguage = $lg; - $this->allLanguages = $this->getAllLanguages(); - - } - - public function getAllLanguages(){ - - $arrLangue = array( - - 'en' => 'English', - 'fr' => 'Français', - 'de' => 'Deutsch', - 'es' => 'Español', - 'pl' => 'Polski', - 'ru' => 'Pусский', - 'tu' => 'Türk', - 'po' => 'Português', - 'su' => 'Svenska', - 'it' => 'Italiano', - - ); - - $traductionFile = CONFIGURATION.'traduction.php'; - if(is_file($traductionFile)){ - include $traductionFile; - } - - return $arrLangue; - - } - - - public function l($word = ''){ - - $fileLangue = LANGUE.$this->myLanguage.'.lg.php'; - $fileLanguePrincipale = LANGUE.'temp.lg.php'; - - $_w = $wTranslate = array(); - - if( !is_file($fileLanguePrincipale) || !is_file($fileLangue)) - { - return $word; - } - - include $fileLanguePrincipale; - $wDefaut = $wTranslate; - - unset($wTranslate); - include $fileLangue; - - if($word === 'doorgets'){ return 'doorGets'; } - - if(in_array($word,$wDefaut)){ - - $key = array_search($word,$wDefaut); - - if( array_key_exists($key,$_w) && !empty($_w[$key]) ) - { - - return $_w[$key]; - } - - } - - return $word; - - } - - - public function myLanguage(){ - - return $this->myLanguage; - - } - - public function setLangue($lg="fr"){ - - $this->myLanguage = $lg; - - } - - -} - - - - - - - - - - - - - - - - - - - - - - - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +class Langue{ + + public $allLanguages; + + public $myLanguage; + + public function __construct(){ + $lg = 'en'; + if( array_key_exists('doorgetsLanguage',$_SESSION) ){$lg = $_SESSION['doorgetsLanguage'];} + $this->myLanguage = $lg; + $this->allLanguages = $this->getAllLanguages(); + + } + + public function getAllLanguages(){ + + $arrLangue = array( + + 'en' => 'English', + 'fr' => 'Français', + 'de' => 'Deutsch', + 'es' => 'Español', + 'pl' => 'Polski', + 'ru' => 'Pусский', + 'tu' => 'Türk', + 'po' => 'Português', + 'su' => 'Svenska', + 'it' => 'Italiano', + + ); + + $traductionFile = CONFIGURATION.'traduction.php'; + if(is_file($traductionFile)){ + include $traductionFile; + } + + return $arrLangue; + + } + + + public function l($word = ''){ + + $fileLangue = LANGUE.$this->myLanguage.'.lg.php'; + $fileLanguePrincipale = LANGUE.'temp.lg.php'; + + $_w = $wTranslate = array(); + + if( !is_file($fileLanguePrincipale) || !is_file($fileLangue)) + { + return $word; + } + + include $fileLanguePrincipale; + $wDefaut = $wTranslate; + + unset($wTranslate); + include $fileLangue; + + if($word === 'doorgets'){ return 'doorGets'; } + + if(in_array($word,$wDefaut)){ + + $key = array_search($word,$wDefaut); + + if( array_key_exists($key,$_w) && !empty($_w[$key]) ) + { + + return $_w[$key]; + } + + } + + return $word; + + } + + + public function myLanguage(){ + + return $this->myLanguage; + + } + + public function setLangue($lg="fr"){ + + $this->myLanguage = $lg; + + } + + +} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/setup/doorgets/core/Template.php b/setup/doorgets/core/Template.php old mode 100644 new mode 100755 index d30f860..fef83bb --- a/setup/doorgets/core/Template.php +++ b/setup/doorgets/core/Template.php @@ -1,126 +1,126 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -class Template{ - - static function getView($name) - { - - $cacheDirectory = CACHE_TEMPLATE; - - if(!is_dir($cacheDirectory)){ mkdir($cacheDirectory); } - - // Explode $name for create dir if not exists - $explodeName = explode('/',$name); - $cExplodeName = count($explodeName); - $fileName = $explodeName[$cExplodeName - 1].'.tpl.php'; - $fileTemp = $cacheDirectory.$fileName; - - // If dir exists on $name create it if not exists - // $explodeName[$cExplodeName - 1] is file name - if($cExplodeName > 1){ - - for($i=0;$i<$cExplodeName;$i++){ - - $dirNewName = ''; - for( $z=0; $z<$i; $z++ ){ - - $dirNewName .= $explodeName[$z].'/'; - - } - - if(!is_dir($cacheDirectory.$dirNewName)){ - - mkdir($cacheDirectory.$dirNewName); - - } - - } - - $fileTemp = $cacheDirectory.$dirNewName.$fileName; - - } - - $nameFile = $name.'.php'; - $file = TEMPLATE.$name.'.tpl.php'; - - if(is_file($file)) - { - - $html = file_get_contents($file); - - $convertArray = array( - - "{?}" => '', - "{/}" => '', - "{-}" => '', - "{{???" => ' '', - "{{?" => ' ' endif; ?>', - "{{/" => ' ' endforeach; ?>', - "{{-" => ' ' endfor; ?>', - "{{!" => ' ' '; ?>', - "}}" => ' ?>', - "?> '', - "?> - '', - "?> - '', - "if( !defined(__DOORGETS__) ){ header('Location:../'); exit(); }" => '', - - - ); - - foreach($convertArray as $k=>$v){ - - $html = str_replace($k,$v,$html); - - } - - file_put_contents($fileTemp,$html); - return $fileTemp; - - } - - return 'Template not found : '.$file; - - } - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +class Template{ + + static function getView($name) + { + + $cacheDirectory = CACHE_TEMPLATE; + + if(!is_dir($cacheDirectory)){ mkdir($cacheDirectory, 0777, true); } + + // Explode $name for create dir if not exists + $explodeName = explode('/',$name); + $cExplodeName = count($explodeName); + $fileName = $explodeName[$cExplodeName - 1].'.tpl.php'; + $fileTemp = $cacheDirectory.$fileName; + + // If dir exists on $name create it if not exists + // $explodeName[$cExplodeName - 1] is file name + if($cExplodeName > 1){ + + for($i=0;$i<$cExplodeName;$i++){ + + $dirNewName = ''; + for( $z=0; $z<$i; $z++ ){ + + $dirNewName .= $explodeName[$z].'/'; + + } + + if(!is_dir($cacheDirectory.$dirNewName)){ + + mkdir($cacheDirectory.$dirNewName, 0777, true); + + } + + } + + $fileTemp = $cacheDirectory.$dirNewName.$fileName; + + } + + $nameFile = $name.'.php'; + $file = TEMPLATE.$name.'.tpl.php'; + + if(is_file($file)) + { + + $html = file_get_contents($file); + + $convertArray = array( + + "{?}" => '', + "{/}" => '', + "{-}" => '', + "{{???" => ' '', + "{{?" => ' ' endif; ?>', + "{{/" => ' ' endforeach; ?>', + "{{-" => ' ' endfor; ?>', + "{{!" => ' ' '; ?>', + "}}" => ' ?>', + "?> '', + "?> + '', + "?> + '', + "if( !defined(DOORGETS) ){ header('Location:../'); exit(); }" => '', + + + ); + + foreach($convertArray as $k=>$v){ + + $html = str_replace($k,$v,$html); + + } + + file_put_contents($fileTemp,$html); + return $fileTemp; + + } + + return 'Template not found : '.$file; + + } + + } \ No newline at end of file diff --git a/setup/doorgets/core/doorgetsController.php b/setup/doorgets/core/doorgetsController.php old mode 100644 new mode 100755 index b821301..1674409 --- a/setup/doorgets/core/doorgetsController.php +++ b/setup/doorgets/core/doorgetsController.php @@ -1,82 +1,82 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class doorgetsController{ - - public $model; - - public $view; - - public $doorgets; - - public function __construct($doorgets){ - - $this->doorgets = $doorgets; - - $this->getModel(); - $this->getView(); - - } - - // return the model of te current controller - public function getModel() - { - - $nameModel = $this->doorgets->getStep().'Model'; - $fileNameModel = MODELS.'/'.$nameModel.'.php'; - - if(!is_file($fileNameModel)) return null; - require_once $fileNameModel; - - if(!class_exists ($nameModel)) return null; - $this->model = new $nameModel($this->doorgets); - - - } - - // return the view of the current controller - public function getView() - { - - $nameView = $this->doorgets->getStep().'View'; - $fileNameView = VIEW.'/'.$nameView.'.php'; - - if(!is_file($fileNameView)) return null; - require_once $fileNameView; - - if(!class_exists ($nameView)) return null; - $this->view = new $nameView($this->doorgets); - - } - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class doorgetsController{ + + public $model; + + public $view; + + public $doorgets; + + public function __construct($doorgets){ + + $this->doorgets = $doorgets; + + $this->getModel(); + $this->getView(); + + } + + // return the model of te current controller + public function getModel() + { + + $nameModel = $this->doorgets->getStep().'Model'; + $fileNameModel = MODELS.'/'.$nameModel.'.php'; + + if(!is_file($fileNameModel)) return null; + require_once $fileNameModel; + + if(!class_exists ($nameModel)) return null; + $this->model = new $nameModel($this->doorgets); + + + } + + // return the view of the current controller + public function getView() + { + + $nameView = $this->doorgets->getStep().'View'; + $fileNameView = VIEW.'/'.$nameView.'.php'; + + if(!is_file($fileNameView)) return null; + require_once $fileNameView; + + if(!class_exists ($nameView)) return null; + $this->view = new $nameView($this->doorgets); + + } + } \ No newline at end of file diff --git a/setup/doorgets/core/doorgetsInstaller.php b/setup/doorgets/core/doorgetsInstaller.php old mode 100644 new mode 100755 index 84e5ea2..6312d4c --- a/setup/doorgets/core/doorgetsInstaller.php +++ b/setup/doorgets/core/doorgetsInstaller.php @@ -1,213 +1,213 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - -class doorgetsInstaller extends Langue{ - - protected $stepsList; - - protected $Step; - - protected $Language; - - protected $TimeZone; - - protected $doorgets; - - public $form = array(); - - private $content; - - public function __construct(){ - - parent::__construct(); - $this->init(); - - } - - public function init(){ - - $this->initStepsList(); - $this->initStepNow(); - $this->checkGoBackModel(); - $this->initLanguage(); - $this->initTimeZone(); - $this->initController(); - - } - - public function getStep(){ - return $this->Step; - } - - public function getTimeZone(){ - return $this->TimeZone; - } - - public function getStepsList(){ - return $this->stepsList; - } - - public function getLanguage(){ - return $this->Language; - } - - public function initStepsList(){ - - $stepList = array( - - 1 => 'root', - 2 => 'licence', - 3 => 'chmod', - 4 => 'database', - 5 => 'website', - 6 => 'admin', - 7 => 'polymorphic', - - ); - - return $this->stepsList = $stepList; - - } - - - private function initStepNow(){ - - if( !array_key_exists('doorgetsStep',$_SESSION) ){ $_SESSION['doorgetsStep'] = $this->stepsList[1]; } - $this->Step = $_SESSION['doorgetsStep']; - if(empty($this->Step)){ $this->Step = $_SESSION['doorgetsStep'] = $this->stepsList[1]; } - - } - - private function initLanguage(){ - - if( !array_key_exists('doorgetsLanguage',$_SESSION) ){ $_SESSION['doorgetsLanguage'] = 'en'; } - $this->Language = $_SESSION['doorgetsLanguage']; - - } - - private function initTimeZone(){ - - if( !array_key_exists('doorgetsTimeZone',$_SESSION) ){ $_SESSION['doorgetsTimeZone'] = 'Europe/Paris'; } - $this->TimeZone = $_SESSION['doorgetsTimeZone']; - - } - - private function initController(){ - - $nameStep = $this->getStep(); - - $nameController = $nameStep.'Controller'; - $fileNameController = CONTROLLERS.'/'.$nameController.'.php'; - - if(!is_file($fileNameController)) - { echo 'Controller not found : ' . $fileNameController; exit(); } - require_once $fileNameController; - - if(!class_exists ($nameController)) - { echo 'Class not found : ' . $nameController.' : '; exit(); } - - $this->doorgets = new $nameController($this); - return $this->doorgets; - } - - public function setContent($content){ - - $this->content = $content; - - } - - public function setStep($name){ - - $this->Step = $_SESSION['doorgetsStep'] = $name; - - } - - private function checkGoBackModel(){ - - $form = $this->form['prev_step'] = new Formulaire('doorgets_goback'); - - if(!empty($form->i)){ - - $StepsList = $this->getStepsList(); - $iPos = 1; $pos = array_keys($StepsList,$this->getStep()); - - if(!empty($pos)){ $pos = (int)$pos[0]; } - - if($pos >= 1){ - - $prevPos = $pos - 1; - $this->setStep($StepsList[$prevPos]); - header("Location:".$_SERVER['REQUEST_URI']); exit(); - - } - } - - } - - public function getHtmlContent(){ - - $tpl = Template::getView('wrapper'); - ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); - return $out; - - } - - public function getHtmlHeader(){ - - $myLanguage = $this->myLanguage; - - $tpl = Template::getView('header'); - ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); - return $out; - } - - public function getHtmlGoBack(){ - - $tpl = Template::getView('goback'); - ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); - return $out; - } - - public function getHtmlFooter(){ - - $myLanguage = $this->myLanguage; - - $tpl = Template::getView('footer'); - ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); - return $out; - } - - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + +class doorgetsInstaller extends Langue{ + + protected $stepsList; + + protected $Step; + + protected $Language; + + protected $TimeZone; + + protected $doorgets; + + public $form = array(); + + private $content; + + public function __construct(){ + + parent::__construct(); + $this->init(); + + } + + public function init(){ + + $this->initStepsList(); + $this->initStepNow(); + $this->checkGoBackModel(); + $this->initLanguage(); + $this->initTimeZone(); + $this->initController(); + + } + + public function getStep(){ + return $this->Step; + } + + public function getTimeZone(){ + return $this->TimeZone; + } + + public function getStepsList(){ + return $this->stepsList; + } + + public function getLanguage(){ + return $this->Language; + } + + public function initStepsList(){ + + $stepList = array( + + 1 => 'root', + 2 => 'licence', + 3 => 'chmod', + 4 => 'database', + 5 => 'website', + 6 => 'admin', + 7 => 'polymorphic', + + ); + + return $this->stepsList = $stepList; + + } + + + private function initStepNow(){ + + if( !array_key_exists('doorgetsStep',$_SESSION) ){ $_SESSION['doorgetsStep'] = $this->stepsList[1]; } + $this->Step = $_SESSION['doorgetsStep']; + if(empty($this->Step)){ $this->Step = $_SESSION['doorgetsStep'] = $this->stepsList[1]; } + + } + + private function initLanguage(){ + + if( !array_key_exists('doorgetsLanguage',$_SESSION) ){ $_SESSION['doorgetsLanguage'] = 'en'; } + $this->Language = $_SESSION['doorgetsLanguage']; + + } + + private function initTimeZone(){ + + if( !array_key_exists('doorgetsTimeZone',$_SESSION) ){ $_SESSION['doorgetsTimeZone'] = 'Europe/Paris'; } + $this->TimeZone = $_SESSION['doorgetsTimeZone']; + + } + + private function initController(){ + + $nameStep = $this->getStep(); + + $nameController = $nameStep.'Controller'; + $fileNameController = CONTROLLERS.'/'.$nameController.'.php'; + + if(!is_file($fileNameController)) + { echo 'Controller not found : ' . $fileNameController; exit(); } + require_once $fileNameController; + + if(!class_exists ($nameController)) + { echo 'Class not found : ' . $nameController.' : '; exit(); } + + $this->doorgets = new $nameController($this); + return $this->doorgets; + } + + public function setContent($content){ + + $this->content = $content; + + } + + public function setStep($name){ + + $this->Step = $_SESSION['doorgetsStep'] = $name; + + } + + private function checkGoBackModel(){ + + $form = $this->form['prev_step'] = new Formulaire('doorgets_goback'); + + if(!empty($form->i)){ + + $StepsList = $this->getStepsList(); + $iPos = 1; $pos = array_keys($StepsList,$this->getStep()); + + if(!empty($pos)){ $pos = (int)$pos[0]; } + + if($pos >= 1){ + + $prevPos = $pos - 1; + $this->setStep($StepsList[$prevPos]); + header("Location:".$_SERVER['REQUEST_URI']); exit(); + + } + } + + } + + public function getHtmlContent(){ + + $tpl = Template::getView('wrapper'); + ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); + return $out; + + } + + public function getHtmlHeader(){ + + $myLanguage = $this->myLanguage; + + $tpl = Template::getView('header'); + ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); + return $out; + } + + public function getHtmlGoBack(){ + + $tpl = Template::getView('goback'); + ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); + return $out; + } + + public function getHtmlFooter(){ + + $myLanguage = $this->myLanguage; + + $tpl = Template::getView('footer'); + ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); + return $out; + } + + + } \ No newline at end of file diff --git a/setup/doorgets/core/doorgetsModel.php b/setup/doorgets/core/doorgetsModel.php old mode 100644 new mode 100755 index 0407fde..2feaec3 --- a/setup/doorgets/core/doorgetsModel.php +++ b/setup/doorgets/core/doorgetsModel.php @@ -1,52 +1,52 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class doorgetsModel { - - public $doorgets; - - public function __construct($doorgets){ - - $this->doorgets = $doorgets; - $this->indexAction(); - - } - - public function indexAction(){ - - $actionName = $this->doorgets->getStep(); - - } - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class doorgetsModel { + + public $doorgets; + + public function __construct($doorgets){ + + $this->doorgets = $doorgets; + $this->indexAction(); + + } + + public function indexAction(){ + + $actionName = $this->doorgets->getStep(); + + } + + } \ No newline at end of file diff --git a/setup/doorgets/core/doorgetsView.php b/setup/doorgets/core/doorgetsView.php old mode 100644 new mode 100755 index cf0633b..a9d8c94 --- a/setup/doorgets/core/doorgetsView.php +++ b/setup/doorgets/core/doorgetsView.php @@ -1,59 +1,59 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -class doorgetsView { - - public $content; - - public $doorgets; - - public function __construct($doorgets){ - - $this->doorgets = $doorgets; - $this->initContent(); - $this->doorgets->setContent($this->content); - } - - public function initContent(){ - - $doorgets = $this->doorgets; - $ActionFile = $this->doorgets->getStep(); - - $tpl = Template::getView($ActionFile); - ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); - $this->content = $out; - - } - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +class doorgetsView { + + public $content; + + public $doorgets; + + public function __construct($doorgets){ + + $this->doorgets = $doorgets; + $this->initContent(); + $this->doorgets->setContent($this->content); + } + + public function initContent(){ + + $doorgets = $this->doorgets; + $ActionFile = $this->doorgets->getStep(); + + $tpl = Template::getView($ActionFile); + ob_start(); if(is_file($tpl)){ include $tpl; } $out = ob_get_clean(); + $this->content = $out; + + } + + } \ No newline at end of file diff --git a/setup/doorgets/locale/de.lg.php b/setup/doorgets/locale/de.lg.php old mode 100644 new mode 100755 index bac50c8..6904e5a --- a/setup/doorgets/locale/de.lg.php +++ b/setup/doorgets/locale/de.lg.php @@ -1,34 +1,34 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - - - $doorGetsInstaller = new doorgetsInstaller(); + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + + + $doorGetsInstaller = new doorgetsInstaller(); echo $doorGetsInstaller->getHtmlContent(); \ No newline at end of file diff --git a/setup/doorgets/template/admin.tpl.php b/setup/doorgets/template/admin.tpl.php old mode 100644 new mode 100755 index 7e7856e..6d0ea16 --- a/setup/doorgets/template/admin.tpl.php +++ b/setup/doorgets/template/admin.tpl.php @@ -1,53 +1,53 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- 5/5 - {{!$doorgets->l("Administrateur")!}} -
- {{!$doorgets->form['doorgets_admin']->open('post','','')!}} -
- {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Adresse e-mail'),'email','text',$this->info['email'])!}} -
- {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Login'),'login','text',$this->info['login'])!}} -
- {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Mot de passe'),'password','text')!}} -
-
- {{!$doorgets->form['doorgets_admin']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_admin']->close()!}} - {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 5/5 - {{!$doorgets->l("Administrateur")!}} +
+ {{!$doorgets->form['doorgets_admin']->open('post','','')!}} +
+ {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Adresse e-mail'),'email','text',$this->info['email'])!}} +
+ {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Login'),'login','text',$this->info['login'])!}} +
+ {{!$doorgets->form['doorgets_admin']->input($doorgets->l('Mot de passe'),'password','text')!}} +
+
+ {{!$doorgets->form['doorgets_admin']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_admin']->close()!}} + {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/chmod.tpl.php b/setup/doorgets/template/chmod.tpl.php old mode 100644 new mode 100755 index 1798cb3..aa989a5 --- a/setup/doorgets/template/chmod.tpl.php +++ b/setup/doorgets/template/chmod.tpl.php @@ -1,58 +1,58 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- 2/5 - {{!$doorgets->l("Vérification de vos droits d'écriture")!}} -
- {{?($this->isChmod777()):}} -
- {{!$doorgets->l("Vous avez bien les droits d'écriture !")!}} -
- {{!$doorgets->form['doorgets_chmod']->open('post','','')!}} - {{!$doorgets->form['doorgets_chmod']->input('','hidden','hidden','1')!}} -
-
- {{!$doorgets->form['doorgets_chmod']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_chmod']->close()!}} - {??} -
- {{!$doorgets->l("Votre dossier n'a pas les droits d'écriture...")!}} -
-
- {?} - {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 2/5 - {{!$doorgets->l("Vérification de vos droits d'écriture")!}} +
+ {{?($this->isChmod777()):}} +
+ {{!$doorgets->l("Vous avez bien les droits d'écriture !")!}} +
+ {{!$doorgets->form['doorgets_chmod']->open('post','','')!}} + {{!$doorgets->form['doorgets_chmod']->input('','hidden','hidden','1')!}} +
+
+ {{!$doorgets->form['doorgets_chmod']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_chmod']->close()!}} + {??} +
+ {{!$doorgets->l("Votre dossier n'a pas les droits d'écriture...")!}} +
+
+ {?} + {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/database.tpl.php b/setup/doorgets/template/database.tpl.php old mode 100644 new mode 100755 index 827c1cf..77f1b6d --- a/setup/doorgets/template/database.tpl.php +++ b/setup/doorgets/template/database.tpl.php @@ -1,62 +1,62 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> -
-
- doorGets 5.0 -
-
- 3/5 - {{!$doorgets->l("Connecter votre base de données")!}} -
- {{?(!empty($doorgets->form['doorgets_database']->i)):}} -
- {{!$doorgets->l("La connexion n'est pas établie !")!}} -
- {?} - {{!$doorgets->form['doorgets_database']->open('post','','')!}} -
- {{!$doorgets->form['doorgets_database']->input($doorgets->l('Hôte'),'hote','text',$this->info['hote'])!}} -
- {{!$doorgets->form['doorgets_database']->input($doorgets->l('Nom de la base'),'name','text',$this->info['name'])!}} -
- {{!$doorgets->form['doorgets_database']->input($doorgets->l('Login'),'login','text',$this->info['login'])!}} -
- {{!$doorgets->form['doorgets_database']->input($doorgets->l('Mot de passe'),'password','text')!}} -
-
-
- {{!$doorgets->form['doorgets_database']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_database']->close()!}} - {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 3/5 - {{!$doorgets->l("Connecter votre base de données")!}} +
+ {{?(!empty($doorgets->form['doorgets_database']->i)):}} +
+ {{!$doorgets->l("La connexion n'est pas établie !")!}} +
+ {?} + {{!$doorgets->form['doorgets_database']->open('post','','')!}} +
+ {{!$doorgets->form['doorgets_database']->input($doorgets->l('Hôte'),'hote','text',$this->info['hote'])!}} +
+ {{!$doorgets->form['doorgets_database']->input($doorgets->l('Nom de la base'),'name','text',$this->info['name'])!}} +
+ {{!$doorgets->form['doorgets_database']->input($doorgets->l('Login'),'login','text',$this->info['login'])!}} +
+ {{!$doorgets->form['doorgets_database']->input($doorgets->l('Mot de passe'),'password','text')!}} +
+
+
+ {{!$doorgets->form['doorgets_database']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_database']->close()!}} + {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/footer.tpl.php b/setup/doorgets/template/footer.tpl.php old mode 100644 new mode 100755 index 3dbeed3..48caa0b --- a/setup/doorgets/template/footer.tpl.php +++ b/setup/doorgets/template/footer.tpl.php @@ -1,39 +1,39 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> + + \ No newline at end of file diff --git a/setup/doorgets/template/goback.tpl.php b/setup/doorgets/template/goback.tpl.php old mode 100644 new mode 100755 index aed22d0..d451713 --- a/setup/doorgets/template/goback.tpl.php +++ b/setup/doorgets/template/goback.tpl.php @@ -1,39 +1,39 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- {{!$this->form['prev_step']->open('post','','')!}} - {{!$this->form['prev_step']->input('','hidden','hidden','1')!}} - {{!$this->form['prev_step']->submit($this->l('Etape précédente'),'','submit-prev')!}} - {{!$this->form['prev_step']->close()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ {{!$this->form['prev_step']->open('post','','')!}} + {{!$this->form['prev_step']->input('','hidden','hidden','1')!}} + {{!$this->form['prev_step']->submit($this->l('Etape précédente'),'','submit-prev')!}} + {{!$this->form['prev_step']->close()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/header.tpl.php b/setup/doorgets/template/header.tpl.php old mode 100644 new mode 100755 index 26b8dd9..0772e36 --- a/setup/doorgets/template/header.tpl.php +++ b/setup/doorgets/template/header.tpl.php @@ -1,46 +1,45 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -?> - - - doorGets 5.0 - - - - - - - - + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +?> + + + doorGets 6.0 + + + + + + + \ No newline at end of file diff --git a/setup/doorgets/template/licence.tpl.php b/setup/doorgets/template/licence.tpl.php old mode 100644 new mode 100755 index efe2eb6..cd1fbf0 --- a/setup/doorgets/template/licence.tpl.php +++ b/setup/doorgets/template/licence.tpl.php @@ -1,681 +1,681 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- {{!$doorgets->form['doorgets_licence']->open('post','','')!}} -
- doorGets 5.0 -
-
- 1/5 - {{!$doorgets->l("Conditions générales d'utilisation")!}} -
-
- {{!$doorgets->form['doorgets_licence']->input('','hidden','hidden','1')!}} -
- -

GNU GENERAL PUBLIC LICENSE

-

Version 3, 29 June 2007

- -

Copyright © 2007 Free Software Foundation, Inc. - <http://fsf.org/>

- Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed.

- -

Preamble

- -

The GNU General Public License is a free, copyleft license for - software and other kinds of works.

- -

The licenses for most software and other practical works are designed - to take away your freedom to share and change the works. By contrast, - the GNU General Public License is intended to guarantee your freedom to - share and change all versions of a program--to make sure it remains free - software for all its users. We, the Free Software Foundation, use the - GNU General Public License for most of our software; it applies also to - any other work released this way by its authors. You can apply it to - your programs, too.

- -

When we speak of free software, we are referring to freedom, not - price. Our General Public Licenses are designed to make sure that you - have the freedom to distribute copies of free software (and charge for - them if you wish), that you receive source code or can get it if you - want it, that you can change the software or use pieces of it in new - free programs, and that you know you can do these things.

- -

To protect your rights, we need to prevent others from denying you - these rights or asking you to surrender the rights. Therefore, you have - certain responsibilities if you distribute copies of the software, or if - you modify it: responsibilities to respect the freedom of others.

- -

For example, if you distribute copies of such a program, whether - gratis or for a fee, you must pass on to the recipients the same - freedoms that you received. You must make sure that they, too, receive - or can get the source code. And you must show them these terms so they - know their rights.

- -

Developers that use the GNU GPL protect your rights with two steps: - (1) assert copyright on the software, and (2) offer you this License - giving you legal permission to copy, distribute and/or modify it.

- -

For the developers' and authors' protection, the GPL clearly explains - that there is no warranty for this free software. For both users' and - authors' sake, the GPL requires that modified versions be marked as - changed, so that their problems will not be attributed erroneously to - authors of previous versions.

- -

Some devices are designed to deny users access to install or run - modified versions of the software inside them, although the manufacturer - can do so. This is fundamentally incompatible with the aim of - protecting users' freedom to change the software. The systematic - pattern of such abuse occurs in the area of products for individuals to - use, which is precisely where it is most unacceptable. Therefore, we - have designed this version of the GPL to prohibit the practice for those - products. If such problems arise substantially in other domains, we - stand ready to extend this provision to those domains in future versions - of the GPL, as needed to protect the freedom of users.

- -

Finally, every program is threatened constantly by software patents. - States should not allow patents to restrict development and use of - software on general-purpose computers, but in those that do, we wish to - avoid the special danger that patents applied to a free program could - make it effectively proprietary. To prevent this, the GPL assures that - patents cannot be used to render the program non-free.

- -

The precise terms and conditions for copying, distribution and - modification follow.

- -

TERMS AND CONDITIONS

- -

0. Definitions.

- -

“This License” refers to version 3 of the GNU General Public License.

- -

“Copyright” also means copyright-like laws that apply to other kinds of - works, such as semiconductor masks.

- -

“The Program” refers to any copyrightable work licensed under this - License. Each licensee is addressed as “you”. “Licensees” and - “recipients” may be individuals or organizations.

- -

To “modify” a work means to copy from or adapt all or part of the work - in a fashion requiring copyright permission, other than the making of an - exact copy. The resulting work is called a “modified version” of the - earlier work or a work “based on” the earlier work.

- -

A “covered work” means either the unmodified Program or a work based - on the Program.

- -

To “propagate” a work means to do anything with it that, without - permission, would make you directly or secondarily liable for - infringement under applicable copyright law, except executing it on a - computer or modifying a private copy. Propagation includes copying, - distribution (with or without modification), making available to the - public, and in some countries other activities as well.

- -

To “convey” a work means any kind of propagation that enables other - parties to make or receive copies. Mere interaction with a user through - a computer network, with no transfer of a copy, is not conveying.

- -

An interactive user interface displays “Appropriate Legal Notices” - to the extent that it includes a convenient and prominently visible - feature that (1) displays an appropriate copyright notice, and (2) - tells the user that there is no warranty for the work (except to the - extent that warranties are provided), that licensees may convey the - work under this License, and how to view a copy of this License. If - the interface presents a list of user commands or options, such as a - menu, a prominent item in the list meets this criterion.

- -

1. Source Code.

- -

The “source code” for a work means the preferred form of the work - for making modifications to it. “Object code” means any non-source - form of a work.

- -

A “Standard Interface” means an interface that either is an official - standard defined by a recognized standards body, or, in the case of - interfaces specified for a particular programming language, one that - is widely used among developers working in that language.

- -

The “System Libraries” of an executable work include anything, other - than the work as a whole, that (a) is included in the normal form of - packaging a Major Component, but which is not part of that Major - Component, and (b) serves only to enable use of the work with that - Major Component, or to implement a Standard Interface for which an - implementation is available to the public in source code form. A - “Major Component”, in this context, means a major essential component - (kernel, window system, and so on) of the specific operating system - (if any) on which the executable work runs, or a compiler used to - produce the work, or an object code interpreter used to run it.

- -

The “Corresponding Source” for a work in object code form means all - the source code needed to generate, install, and (for an executable - work) run the object code and to modify the work, including scripts to - control those activities. However, it does not include the work's - System Libraries, or general-purpose tools or generally available free - programs which are used unmodified in performing those activities but - which are not part of the work. For example, Corresponding Source - includes interface definition files associated with source files for - the work, and the source code for shared libraries and dynamically - linked subprograms that the work is specifically designed to require, - such as by intimate data communication or control flow between those - subprograms and other parts of the work.

- -

The Corresponding Source need not include anything that users - can regenerate automatically from other parts of the Corresponding - Source.

- -

The Corresponding Source for a work in source code form is that - same work.

- -

2. Basic Permissions.

- -

All rights granted under this License are granted for the term of - copyright on the Program, and are irrevocable provided the stated - conditions are met. This License explicitly affirms your unlimited - permission to run the unmodified Program. The output from running a - covered work is covered by this License only if the output, given its - content, constitutes a covered work. This License acknowledges your - rights of fair use or other equivalent, as provided by copyright law.

- -

You may make, run and propagate covered works that you do not - convey, without conditions so long as your license otherwise remains - in force. You may convey covered works to others for the sole purpose - of having them make modifications exclusively for you, or provide you - with facilities for running those works, provided that you comply with - the terms of this License in conveying all material for which you do - not control copyright. Those thus making or running the covered works - for you must do so exclusively on your behalf, under your direction - and control, on terms that prohibit them from making any copies of - your copyrighted material outside their relationship with you.

- -

Conveying under any other circumstances is permitted solely under - the conditions stated below. Sublicensing is not allowed; section 10 - makes it unnecessary.

- -

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

- -

No covered work shall be deemed part of an effective technological - measure under any applicable law fulfilling obligations under article - 11 of the WIPO copyright treaty adopted on 20 December 1996, or - similar laws prohibiting or restricting circumvention of such - measures.

- -

When you convey a covered work, you waive any legal power to forbid - circumvention of technological measures to the extent such circumvention - is effected by exercising rights under this License with respect to - the covered work, and you disclaim any intention to limit operation or - modification of the work as a means of enforcing, against the work's - users, your or third parties' legal rights to forbid circumvention of - technological measures.

- -

4. Conveying Verbatim Copies.

- -

You may convey verbatim copies of the Program's source code as you - receive it, in any medium, provided that you conspicuously and - appropriately publish on each copy an appropriate copyright notice; - keep intact all notices stating that this License and any - non-permissive terms added in accord with section 7 apply to the code; - keep intact all notices of the absence of any warranty; and give all - recipients a copy of this License along with the Program.

- -

You may charge any price or no price for each copy that you convey, - and you may offer support or warranty protection for a fee.

- -

5. Conveying Modified Source Versions.

- -

You may convey a work based on the Program, or the modifications to - produce it from the Program, in the form of source code under the - terms of section 4, provided that you also meet all of these conditions:

- -
    -
  • a) The work must carry prominent notices stating that you modified - it, and giving a relevant date.
  • - -
  • b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - “keep intact all notices”.
  • - -
  • c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it.
  • - -
  • d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so.
  • -
- -

A compilation of a covered work with other separate and independent - works, which are not by their nature extensions of the covered work, - and which are not combined with it such as to form a larger program, - in or on a volume of a storage or distribution medium, is called an - “aggregate” if the compilation and its resulting copyright are not - used to limit the access or legal rights of the compilation's users - beyond what the individual works permit. Inclusion of a covered work - in an aggregate does not cause this License to apply to the other - parts of the aggregate.

- -

6. Conveying Non-Source Forms.

- -

You may convey a covered work in object code form under the terms - of sections 4 and 5, provided that you also convey the - machine-readable Corresponding Source under the terms of this License, - in one of these ways:

- -
    -
  • a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange.
  • - -
  • b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge.
  • - -
  • c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b.
  • - -
  • d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements.
  • - -
  • e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d.
  • -
- -

A separable portion of the object code, whose source code is excluded - from the Corresponding Source as a System Library, need not be - included in conveying the object code work.

- -

A “User Product” is either (1) a “consumer product”, which means any - tangible personal property which is normally used for personal, family, - or household purposes, or (2) anything designed or sold for incorporation - into a dwelling. In determining whether a product is a consumer product, - doubtful cases shall be resolved in favor of coverage. For a particular - product received by a particular user, “normally used” refers to a - typical or common use of that class of product, regardless of the status - of the particular user or of the way in which the particular user - actually uses, or expects or is expected to use, the product. A product - is a consumer product regardless of whether the product has substantial - commercial, industrial or non-consumer uses, unless such uses represent - the only significant mode of use of the product.

- -

“Installation Information” for a User Product means any methods, - procedures, authorization keys, or other information required to install - and execute modified versions of a covered work in that User Product from - a modified version of its Corresponding Source. The information must - suffice to ensure that the continued functioning of the modified object - code is in no case prevented or interfered with solely because - modification has been made.

- -

If you convey an object code work under this section in, or with, or - specifically for use in, a User Product, and the conveying occurs as - part of a transaction in which the right of possession and use of the - User Product is transferred to the recipient in perpetuity or for a - fixed term (regardless of how the transaction is characterized), the - Corresponding Source conveyed under this section must be accompanied - by the Installation Information. But this requirement does not apply - if neither you nor any third party retains the ability to install - modified object code on the User Product (for example, the work has - been installed in ROM).

- -

The requirement to provide Installation Information does not include a - requirement to continue to provide support service, warranty, or updates - for a work that has been modified or installed by the recipient, or for - the User Product in which it has been modified or installed. Access to a - network may be denied when the modification itself materially and - adversely affects the operation of the network or violates the rules and - protocols for communication across the network.

- -

Corresponding Source conveyed, and Installation Information provided, - in accord with this section must be in a format that is publicly - documented (and with an implementation available to the public in - source code form), and must require no special password or key for - unpacking, reading or copying.

- -

7. Additional Terms.

- -

“Additional permissions” are terms that supplement the terms of this - License by making exceptions from one or more of its conditions. - Additional permissions that are applicable to the entire Program shall - be treated as though they were included in this License, to the extent - that they are valid under applicable law. If additional permissions - apply only to part of the Program, that part may be used separately - under those permissions, but the entire Program remains governed by - this License without regard to the additional permissions.

- -

When you convey a copy of a covered work, you may at your option - remove any additional permissions from that copy, or from any part of - it. (Additional permissions may be written to require their own - removal in certain cases when you modify the work.) You may place - additional permissions on material, added by you to a covered work, - for which you have or can give appropriate copyright permission.

- -

Notwithstanding any other provision of this License, for material you - add to a covered work, you may (if authorized by the copyright holders of - that material) supplement the terms of this License with terms:

- -
    -
  • a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or
  • - -
  • b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or
  • - -
  • c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or
  • - -
  • d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or
  • - -
  • e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or
  • - -
  • f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors.
  • -
- -

All other non-permissive additional terms are considered “further - restrictions” within the meaning of section 10. If the Program as you - received it, or any part of it, contains a notice stating that it is - governed by this License along with a term that is a further - restriction, you may remove that term. If a license document contains - a further restriction but permits relicensing or conveying under this - License, you may add to a covered work material governed by the terms - of that license document, provided that the further restriction does - not survive such relicensing or conveying.

- -

If you add terms to a covered work in accord with this section, you - must place, in the relevant source files, a statement of the - additional terms that apply to those files, or a notice indicating - where to find the applicable terms.

- -

Additional terms, permissive or non-permissive, may be stated in the - form of a separately written license, or stated as exceptions; - the above requirements apply either way.

- -

8. Termination.

- -

You may not propagate or modify a covered work except as expressly - provided under this License. Any attempt otherwise to propagate or - modify it is void, and will automatically terminate your rights under - this License (including any patent licenses granted under the third - paragraph of section 11).

- -

However, if you cease all violation of this License, then your - license from a particular copyright holder is reinstated (a) - provisionally, unless and until the copyright holder explicitly and - finally terminates your license, and (b) permanently, if the copyright - holder fails to notify you of the violation by some reasonable means - prior to 60 days after the cessation.

- -

Moreover, your license from a particular copyright holder is - reinstated permanently if the copyright holder notifies you of the - violation by some reasonable means, this is the first time you have - received notice of violation of this License (for any work) from that - copyright holder, and you cure the violation prior to 30 days after - your receipt of the notice.

- -

Termination of your rights under this section does not terminate the - licenses of parties who have received copies or rights from you under - this License. If your rights have been terminated and not permanently - reinstated, you do not qualify to receive new licenses for the same - material under section 10.

- -

9. Acceptance Not Required for Having Copies.

- -

You are not required to accept this License in order to receive or - run a copy of the Program. Ancillary propagation of a covered work - occurring solely as a consequence of using peer-to-peer transmission - to receive a copy likewise does not require acceptance. However, - nothing other than this License grants you permission to propagate or - modify any covered work. These actions infringe copyright if you do - not accept this License. Therefore, by modifying or propagating a - covered work, you indicate your acceptance of this License to do so.

- -

10. Automatic Licensing of Downstream Recipients.

- -

Each time you convey a covered work, the recipient automatically - receives a license from the original licensors, to run, modify and - propagate that work, subject to this License. You are not responsible - for enforcing compliance by third parties with this License.

- -

An “entity transaction” is a transaction transferring control of an - organization, or substantially all assets of one, or subdividing an - organization, or merging organizations. If propagation of a covered - work results from an entity transaction, each party to that - transaction who receives a copy of the work also receives whatever - licenses to the work the party's predecessor in interest had or could - give under the previous paragraph, plus a right to possession of the - Corresponding Source of the work from the predecessor in interest, if - the predecessor has it or can get it with reasonable efforts.

- -

You may not impose any further restrictions on the exercise of the - rights granted or affirmed under this License. For example, you may - not impose a license fee, royalty, or other charge for exercise of - rights granted under this License, and you may not initiate litigation - (including a cross-claim or counterclaim in a lawsuit) alleging that - any patent claim is infringed by making, using, selling, offering for - sale, or importing the Program or any portion of it.

- -

11. Patents.

- -

A “contributor” is a copyright holder who authorizes use under this - License of the Program or a work on which the Program is based. The - work thus licensed is called the contributor's “contributor version”.

- -

A contributor's “essential patent claims” are all patent claims - owned or controlled by the contributor, whether already acquired or - hereafter acquired, that would be infringed by some manner, permitted - by this License, of making, using, or selling its contributor version, - but do not include claims that would be infringed only as a - consequence of further modification of the contributor version. For - purposes of this definition, “control” includes the right to grant - patent sublicenses in a manner consistent with the requirements of - this License.

- -

Each contributor grants you a non-exclusive, worldwide, royalty-free - patent license under the contributor's essential patent claims, to - make, use, sell, offer for sale, import and otherwise run, modify and - propagate the contents of its contributor version.

- -

In the following three paragraphs, a “patent license” is any express - agreement or commitment, however denominated, not to enforce a patent - (such as an express permission to practice a patent or covenant not to - sue for patent infringement). To “grant” such a patent license to a - party means to make such an agreement or commitment not to enforce a - patent against the party.

- -

If you convey a covered work, knowingly relying on a patent license, - and the Corresponding Source of the work is not available for anyone - to copy, free of charge and under the terms of this License, through a - publicly available network server or other readily accessible means, - then you must either (1) cause the Corresponding Source to be so - available, or (2) arrange to deprive yourself of the benefit of the - patent license for this particular work, or (3) arrange, in a manner - consistent with the requirements of this License, to extend the patent - license to downstream recipients. “Knowingly relying” means you have - actual knowledge that, but for the patent license, your conveying the - covered work in a country, or your recipient's use of the covered work - in a country, would infringe one or more identifiable patents in that - country that you have reason to believe are valid.

- -

If, pursuant to or in connection with a single transaction or - arrangement, you convey, or propagate by procuring conveyance of, a - covered work, and grant a patent license to some of the parties - receiving the covered work authorizing them to use, propagate, modify - or convey a specific copy of the covered work, then the patent license - you grant is automatically extended to all recipients of the covered - work and works based on it.

- -

A patent license is “discriminatory” if it does not include within - the scope of its coverage, prohibits the exercise of, or is - conditioned on the non-exercise of one or more of the rights that are - specifically granted under this License. You may not convey a covered - work if you are a party to an arrangement with a third party that is - in the business of distributing software, under which you make payment - to the third party based on the extent of your activity of conveying - the work, and under which the third party grants, to any of the - parties who would receive the covered work from you, a discriminatory - patent license (a) in connection with copies of the covered work - conveyed by you (or copies made from those copies), or (b) primarily - for and in connection with specific products or compilations that - contain the covered work, unless you entered into that arrangement, - or that patent license was granted, prior to 28 March 2007.

- -

Nothing in this License shall be construed as excluding or limiting - any implied license or other defenses to infringement that may - otherwise be available to you under applicable patent law.

- -

12. No Surrender of Others' Freedom.

- -

If conditions are imposed on you (whether by court order, agreement or - otherwise) that contradict the conditions of this License, they do not - excuse you from the conditions of this License. If you cannot convey a - covered work so as to satisfy simultaneously your obligations under this - License and any other pertinent obligations, then as a consequence you may - not convey it at all. For example, if you agree to terms that obligate you - to collect a royalty for further conveying from those to whom you convey - the Program, the only way you could satisfy both those terms and this - License would be to refrain entirely from conveying the Program.

- -

13. Use with the GNU Affero General Public License.

- -

Notwithstanding any other provision of this License, you have - permission to link or combine any covered work with a work licensed - under version 3 of the GNU Affero General Public License into a single - combined work, and to convey the resulting work. The terms of this - License will continue to apply to the part which is the covered work, - but the special requirements of the GNU Affero General Public License, - section 13, concerning interaction through a network will apply to the - combination as such.

- -

14. Revised Versions of this License.

- -

The Free Software Foundation may publish revised and/or new versions of - the GNU General Public License from time to time. Such new versions will - be similar in spirit to the present version, but may differ in detail to - address new problems or concerns.

- -

Each version is given a distinguishing version number. If the - Program specifies that a certain numbered version of the GNU General - Public License “or any later version” applies to it, you have the - option of following the terms and conditions either of that numbered - version or of any later version published by the Free Software - Foundation. If the Program does not specify a version number of the - GNU General Public License, you may choose any version ever published - by the Free Software Foundation.

- -

If the Program specifies that a proxy can decide which future - versions of the GNU General Public License can be used, that proxy's - public statement of acceptance of a version permanently authorizes you - to choose that version for the Program.

- -

Later license versions may give you additional or different - permissions. However, no additional obligations are imposed on any - author or copyright holder as a result of your choosing to follow a - later version.

- -

15. Disclaimer of Warranty.

- -

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY - OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

- -

16. Limitation of Liability.

- -

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - SUCH DAMAGES.

- -

17. Interpretation of Sections 15 and 16.

- -

If the disclaimer of warranty and limitation of liability provided - above cannot be given local legal effect according to their terms, - reviewing courts shall apply local law that most closely approximates - an absolute waiver of all civil liability in connection with the - Program, unless a warranty or assumption of liability accompanies a - copy of the Program in return for a fee.

- -

END OF TERMS AND CONDITIONS

-
- {{!$doorgets->form['doorgets_licence']->checkbox($doorgets->l("J'ai lu et j'accepte les conditions d'utilisation de doorGets"),'licence_validation','1','')!}} -
-
- {{!$doorgets->form['doorgets_licence']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_licence']->close()!}} - {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ {{!$doorgets->form['doorgets_licence']->open('post','','')!}} +
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 1/5 - {{!$doorgets->l("Conditions générales d'utilisation")!}} +
+
+ {{!$doorgets->form['doorgets_licence']->input('','hidden','hidden','1')!}} +
+ +

GNU GENERAL PUBLIC LICENSE

+

Version 3, 29 June 2007

+ +

Copyright © 2007 Free Software Foundation, Inc. + <http://fsf.org/>

+ Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed.

+ +

Preamble

+ +

The GNU General Public License is a free, copyleft license for + software and other kinds of works.

+ +

The licenses for most software and other practical works are designed + to take away your freedom to share and change the works. By contrast, + the GNU General Public License is intended to guarantee your freedom to + share and change all versions of a program--to make sure it remains free + software for all its users. We, the Free Software Foundation, use the + GNU General Public License for most of our software; it applies also to + any other work released this way by its authors. You can apply it to + your programs, too.

+ +

When we speak of free software, we are referring to freedom, not + price. Our General Public Licenses are designed to make sure that you + have the freedom to distribute copies of free software (and charge for + them if you wish), that you receive source code or can get it if you + want it, that you can change the software or use pieces of it in new + free programs, and that you know you can do these things.

+ +

To protect your rights, we need to prevent others from denying you + these rights or asking you to surrender the rights. Therefore, you have + certain responsibilities if you distribute copies of the software, or if + you modify it: responsibilities to respect the freedom of others.

+ +

For example, if you distribute copies of such a program, whether + gratis or for a fee, you must pass on to the recipients the same + freedoms that you received. You must make sure that they, too, receive + or can get the source code. And you must show them these terms so they + know their rights.

+ +

Developers that use the GNU GPL protect your rights with two steps: + (1) assert copyright on the software, and (2) offer you this License + giving you legal permission to copy, distribute and/or modify it.

+ +

For the developers' and authors' protection, the GPL clearly explains + that there is no warranty for this free software. For both users' and + authors' sake, the GPL requires that modified versions be marked as + changed, so that their problems will not be attributed erroneously to + authors of previous versions.

+ +

Some devices are designed to deny users access to install or run + modified versions of the software inside them, although the manufacturer + can do so. This is fundamentally incompatible with the aim of + protecting users' freedom to change the software. The systematic + pattern of such abuse occurs in the area of products for individuals to + use, which is precisely where it is most unacceptable. Therefore, we + have designed this version of the GPL to prohibit the practice for those + products. If such problems arise substantially in other domains, we + stand ready to extend this provision to those domains in future versions + of the GPL, as needed to protect the freedom of users.

+ +

Finally, every program is threatened constantly by software patents. + States should not allow patents to restrict development and use of + software on general-purpose computers, but in those that do, we wish to + avoid the special danger that patents applied to a free program could + make it effectively proprietary. To prevent this, the GPL assures that + patents cannot be used to render the program non-free.

+ +

The precise terms and conditions for copying, distribution and + modification follow.

+ +

TERMS AND CONDITIONS

+ +

0. Definitions.

+ +

“This License” refers to version 3 of the GNU General Public License.

+ +

“Copyright” also means copyright-like laws that apply to other kinds of + works, such as semiconductor masks.

+ +

“The Program” refers to any copyrightable work licensed under this + License. Each licensee is addressed as “you”. “Licensees” and + “recipients” may be individuals or organizations.

+ +

To “modify” a work means to copy from or adapt all or part of the work + in a fashion requiring copyright permission, other than the making of an + exact copy. The resulting work is called a “modified version” of the + earlier work or a work “based on” the earlier work.

+ +

A “covered work” means either the unmodified Program or a work based + on the Program.

+ +

To “propagate” a work means to do anything with it that, without + permission, would make you directly or secondarily liable for + infringement under applicable copyright law, except executing it on a + computer or modifying a private copy. Propagation includes copying, + distribution (with or without modification), making available to the + public, and in some countries other activities as well.

+ +

To “convey” a work means any kind of propagation that enables other + parties to make or receive copies. Mere interaction with a user through + a computer network, with no transfer of a copy, is not conveying.

+ +

An interactive user interface displays “Appropriate Legal Notices” + to the extent that it includes a convenient and prominently visible + feature that (1) displays an appropriate copyright notice, and (2) + tells the user that there is no warranty for the work (except to the + extent that warranties are provided), that licensees may convey the + work under this License, and how to view a copy of this License. If + the interface presents a list of user commands or options, such as a + menu, a prominent item in the list meets this criterion.

+ +

1. Source Code.

+ +

The “source code” for a work means the preferred form of the work + for making modifications to it. “Object code” means any non-source + form of a work.

+ +

A “Standard Interface” means an interface that either is an official + standard defined by a recognized standards body, or, in the case of + interfaces specified for a particular programming language, one that + is widely used among developers working in that language.

+ +

The “System Libraries” of an executable work include anything, other + than the work as a whole, that (a) is included in the normal form of + packaging a Major Component, but which is not part of that Major + Component, and (b) serves only to enable use of the work with that + Major Component, or to implement a Standard Interface for which an + implementation is available to the public in source code form. A + “Major Component”, in this context, means a major essential component + (kernel, window system, and so on) of the specific operating system + (if any) on which the executable work runs, or a compiler used to + produce the work, or an object code interpreter used to run it.

+ +

The “Corresponding Source” for a work in object code form means all + the source code needed to generate, install, and (for an executable + work) run the object code and to modify the work, including scripts to + control those activities. However, it does not include the work's + System Libraries, or general-purpose tools or generally available free + programs which are used unmodified in performing those activities but + which are not part of the work. For example, Corresponding Source + includes interface definition files associated with source files for + the work, and the source code for shared libraries and dynamically + linked subprograms that the work is specifically designed to require, + such as by intimate data communication or control flow between those + subprograms and other parts of the work.

+ +

The Corresponding Source need not include anything that users + can regenerate automatically from other parts of the Corresponding + Source.

+ +

The Corresponding Source for a work in source code form is that + same work.

+ +

2. Basic Permissions.

+ +

All rights granted under this License are granted for the term of + copyright on the Program, and are irrevocable provided the stated + conditions are met. This License explicitly affirms your unlimited + permission to run the unmodified Program. The output from running a + covered work is covered by this License only if the output, given its + content, constitutes a covered work. This License acknowledges your + rights of fair use or other equivalent, as provided by copyright law.

+ +

You may make, run and propagate covered works that you do not + convey, without conditions so long as your license otherwise remains + in force. You may convey covered works to others for the sole purpose + of having them make modifications exclusively for you, or provide you + with facilities for running those works, provided that you comply with + the terms of this License in conveying all material for which you do + not control copyright. Those thus making or running the covered works + for you must do so exclusively on your behalf, under your direction + and control, on terms that prohibit them from making any copies of + your copyrighted material outside their relationship with you.

+ +

Conveying under any other circumstances is permitted solely under + the conditions stated below. Sublicensing is not allowed; section 10 + makes it unnecessary.

+ +

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

+ +

No covered work shall be deemed part of an effective technological + measure under any applicable law fulfilling obligations under article + 11 of the WIPO copyright treaty adopted on 20 December 1996, or + similar laws prohibiting or restricting circumvention of such + measures.

+ +

When you convey a covered work, you waive any legal power to forbid + circumvention of technological measures to the extent such circumvention + is effected by exercising rights under this License with respect to + the covered work, and you disclaim any intention to limit operation or + modification of the work as a means of enforcing, against the work's + users, your or third parties' legal rights to forbid circumvention of + technological measures.

+ +

4. Conveying Verbatim Copies.

+ +

You may convey verbatim copies of the Program's source code as you + receive it, in any medium, provided that you conspicuously and + appropriately publish on each copy an appropriate copyright notice; + keep intact all notices stating that this License and any + non-permissive terms added in accord with section 7 apply to the code; + keep intact all notices of the absence of any warranty; and give all + recipients a copy of this License along with the Program.

+ +

You may charge any price or no price for each copy that you convey, + and you may offer support or warranty protection for a fee.

+ +

5. Conveying Modified Source Versions.

+ +

You may convey a work based on the Program, or the modifications to + produce it from the Program, in the form of source code under the + terms of section 4, provided that you also meet all of these conditions:

+ +
    +
  • a) The work must carry prominent notices stating that you modified + it, and giving a relevant date.
  • + +
  • b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + “keep intact all notices”.
  • + +
  • c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it.
  • + +
  • d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so.
  • +
+ +

A compilation of a covered work with other separate and independent + works, which are not by their nature extensions of the covered work, + and which are not combined with it such as to form a larger program, + in or on a volume of a storage or distribution medium, is called an + “aggregate” if the compilation and its resulting copyright are not + used to limit the access or legal rights of the compilation's users + beyond what the individual works permit. Inclusion of a covered work + in an aggregate does not cause this License to apply to the other + parts of the aggregate.

+ +

6. Conveying Non-Source Forms.

+ +

You may convey a covered work in object code form under the terms + of sections 4 and 5, provided that you also convey the + machine-readable Corresponding Source under the terms of this License, + in one of these ways:

+ +
    +
  • a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange.
  • + +
  • b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge.
  • + +
  • c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b.
  • + +
  • d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements.
  • + +
  • e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d.
  • +
+ +

A separable portion of the object code, whose source code is excluded + from the Corresponding Source as a System Library, need not be + included in conveying the object code work.

+ +

A “User Product” is either (1) a “consumer product”, which means any + tangible personal property which is normally used for personal, family, + or household purposes, or (2) anything designed or sold for incorporation + into a dwelling. In determining whether a product is a consumer product, + doubtful cases shall be resolved in favor of coverage. For a particular + product received by a particular user, “normally used” refers to a + typical or common use of that class of product, regardless of the status + of the particular user or of the way in which the particular user + actually uses, or expects or is expected to use, the product. A product + is a consumer product regardless of whether the product has substantial + commercial, industrial or non-consumer uses, unless such uses represent + the only significant mode of use of the product.

+ +

“Installation Information” for a User Product means any methods, + procedures, authorization keys, or other information required to install + and execute modified versions of a covered work in that User Product from + a modified version of its Corresponding Source. The information must + suffice to ensure that the continued functioning of the modified object + code is in no case prevented or interfered with solely because + modification has been made.

+ +

If you convey an object code work under this section in, or with, or + specifically for use in, a User Product, and the conveying occurs as + part of a transaction in which the right of possession and use of the + User Product is transferred to the recipient in perpetuity or for a + fixed term (regardless of how the transaction is characterized), the + Corresponding Source conveyed under this section must be accompanied + by the Installation Information. But this requirement does not apply + if neither you nor any third party retains the ability to install + modified object code on the User Product (for example, the work has + been installed in ROM).

+ +

The requirement to provide Installation Information does not include a + requirement to continue to provide support service, warranty, or updates + for a work that has been modified or installed by the recipient, or for + the User Product in which it has been modified or installed. Access to a + network may be denied when the modification itself materially and + adversely affects the operation of the network or violates the rules and + protocols for communication across the network.

+ +

Corresponding Source conveyed, and Installation Information provided, + in accord with this section must be in a format that is publicly + documented (and with an implementation available to the public in + source code form), and must require no special password or key for + unpacking, reading or copying.

+ +

7. Additional Terms.

+ +

“Additional permissions” are terms that supplement the terms of this + License by making exceptions from one or more of its conditions. + Additional permissions that are applicable to the entire Program shall + be treated as though they were included in this License, to the extent + that they are valid under applicable law. If additional permissions + apply only to part of the Program, that part may be used separately + under those permissions, but the entire Program remains governed by + this License without regard to the additional permissions.

+ +

When you convey a copy of a covered work, you may at your option + remove any additional permissions from that copy, or from any part of + it. (Additional permissions may be written to require their own + removal in certain cases when you modify the work.) You may place + additional permissions on material, added by you to a covered work, + for which you have or can give appropriate copyright permission.

+ +

Notwithstanding any other provision of this License, for material you + add to a covered work, you may (if authorized by the copyright holders of + that material) supplement the terms of this License with terms:

+ +
    +
  • a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or
  • + +
  • b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or
  • + +
  • c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or
  • + +
  • d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or
  • + +
  • e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or
  • + +
  • f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors.
  • +
+ +

All other non-permissive additional terms are considered “further + restrictions” within the meaning of section 10. If the Program as you + received it, or any part of it, contains a notice stating that it is + governed by this License along with a term that is a further + restriction, you may remove that term. If a license document contains + a further restriction but permits relicensing or conveying under this + License, you may add to a covered work material governed by the terms + of that license document, provided that the further restriction does + not survive such relicensing or conveying.

+ +

If you add terms to a covered work in accord with this section, you + must place, in the relevant source files, a statement of the + additional terms that apply to those files, or a notice indicating + where to find the applicable terms.

+ +

Additional terms, permissive or non-permissive, may be stated in the + form of a separately written license, or stated as exceptions; + the above requirements apply either way.

+ +

8. Termination.

+ +

You may not propagate or modify a covered work except as expressly + provided under this License. Any attempt otherwise to propagate or + modify it is void, and will automatically terminate your rights under + this License (including any patent licenses granted under the third + paragraph of section 11).

+ +

However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly and + finally terminates your license, and (b) permanently, if the copyright + holder fails to notify you of the violation by some reasonable means + prior to 60 days after the cessation.

+ +

Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you have + received notice of violation of this License (for any work) from that + copyright holder, and you cure the violation prior to 30 days after + your receipt of the notice.

+ +

Termination of your rights under this section does not terminate the + licenses of parties who have received copies or rights from you under + this License. If your rights have been terminated and not permanently + reinstated, you do not qualify to receive new licenses for the same + material under section 10.

+ +

9. Acceptance Not Required for Having Copies.

+ +

You are not required to accept this License in order to receive or + run a copy of the Program. Ancillary propagation of a covered work + occurring solely as a consequence of using peer-to-peer transmission + to receive a copy likewise does not require acceptance. However, + nothing other than this License grants you permission to propagate or + modify any covered work. These actions infringe copyright if you do + not accept this License. Therefore, by modifying or propagating a + covered work, you indicate your acceptance of this License to do so.

+ +

10. Automatic Licensing of Downstream Recipients.

+ +

Each time you convey a covered work, the recipient automatically + receives a license from the original licensors, to run, modify and + propagate that work, subject to this License. You are not responsible + for enforcing compliance by third parties with this License.

+ +

An “entity transaction” is a transaction transferring control of an + organization, or substantially all assets of one, or subdividing an + organization, or merging organizations. If propagation of a covered + work results from an entity transaction, each party to that + transaction who receives a copy of the work also receives whatever + licenses to the work the party's predecessor in interest had or could + give under the previous paragraph, plus a right to possession of the + Corresponding Source of the work from the predecessor in interest, if + the predecessor has it or can get it with reasonable efforts.

+ +

You may not impose any further restrictions on the exercise of the + rights granted or affirmed under this License. For example, you may + not impose a license fee, royalty, or other charge for exercise of + rights granted under this License, and you may not initiate litigation + (including a cross-claim or counterclaim in a lawsuit) alleging that + any patent claim is infringed by making, using, selling, offering for + sale, or importing the Program or any portion of it.

+ +

11. Patents.

+ +

A “contributor” is a copyright holder who authorizes use under this + License of the Program or a work on which the Program is based. The + work thus licensed is called the contributor's “contributor version”.

+ +

A contributor's “essential patent claims” are all patent claims + owned or controlled by the contributor, whether already acquired or + hereafter acquired, that would be infringed by some manner, permitted + by this License, of making, using, or selling its contributor version, + but do not include claims that would be infringed only as a + consequence of further modification of the contributor version. For + purposes of this definition, “control” includes the right to grant + patent sublicenses in a manner consistent with the requirements of + this License.

+ +

Each contributor grants you a non-exclusive, worldwide, royalty-free + patent license under the contributor's essential patent claims, to + make, use, sell, offer for sale, import and otherwise run, modify and + propagate the contents of its contributor version.

+ +

In the following three paragraphs, a “patent license” is any express + agreement or commitment, however denominated, not to enforce a patent + (such as an express permission to practice a patent or covenant not to + sue for patent infringement). To “grant” such a patent license to a + party means to make such an agreement or commitment not to enforce a + patent against the party.

+ +

If you convey a covered work, knowingly relying on a patent license, + and the Corresponding Source of the work is not available for anyone + to copy, free of charge and under the terms of this License, through a + publicly available network server or other readily accessible means, + then you must either (1) cause the Corresponding Source to be so + available, or (2) arrange to deprive yourself of the benefit of the + patent license for this particular work, or (3) arrange, in a manner + consistent with the requirements of this License, to extend the patent + license to downstream recipients. “Knowingly relying” means you have + actual knowledge that, but for the patent license, your conveying the + covered work in a country, or your recipient's use of the covered work + in a country, would infringe one or more identifiable patents in that + country that you have reason to believe are valid.

+ +

If, pursuant to or in connection with a single transaction or + arrangement, you convey, or propagate by procuring conveyance of, a + covered work, and grant a patent license to some of the parties + receiving the covered work authorizing them to use, propagate, modify + or convey a specific copy of the covered work, then the patent license + you grant is automatically extended to all recipients of the covered + work and works based on it.

+ +

A patent license is “discriminatory” if it does not include within + the scope of its coverage, prohibits the exercise of, or is + conditioned on the non-exercise of one or more of the rights that are + specifically granted under this License. You may not convey a covered + work if you are a party to an arrangement with a third party that is + in the business of distributing software, under which you make payment + to the third party based on the extent of your activity of conveying + the work, and under which the third party grants, to any of the + parties who would receive the covered work from you, a discriminatory + patent license (a) in connection with copies of the covered work + conveyed by you (or copies made from those copies), or (b) primarily + for and in connection with specific products or compilations that + contain the covered work, unless you entered into that arrangement, + or that patent license was granted, prior to 28 March 2007.

+ +

Nothing in this License shall be construed as excluding or limiting + any implied license or other defenses to infringement that may + otherwise be available to you under applicable patent law.

+ +

12. No Surrender of Others' Freedom.

+ +

If conditions are imposed on you (whether by court order, agreement or + otherwise) that contradict the conditions of this License, they do not + excuse you from the conditions of this License. If you cannot convey a + covered work so as to satisfy simultaneously your obligations under this + License and any other pertinent obligations, then as a consequence you may + not convey it at all. For example, if you agree to terms that obligate you + to collect a royalty for further conveying from those to whom you convey + the Program, the only way you could satisfy both those terms and this + License would be to refrain entirely from conveying the Program.

+ +

13. Use with the GNU Affero General Public License.

+ +

Notwithstanding any other provision of this License, you have + permission to link or combine any covered work with a work licensed + under version 3 of the GNU Affero General Public License into a single + combined work, and to convey the resulting work. The terms of this + License will continue to apply to the part which is the covered work, + but the special requirements of the GNU Affero General Public License, + section 13, concerning interaction through a network will apply to the + combination as such.

+ +

14. Revised Versions of this License.

+ +

The Free Software Foundation may publish revised and/or new versions of + the GNU General Public License from time to time. Such new versions will + be similar in spirit to the present version, but may differ in detail to + address new problems or concerns.

+ +

Each version is given a distinguishing version number. If the + Program specifies that a certain numbered version of the GNU General + Public License “or any later version” applies to it, you have the + option of following the terms and conditions either of that numbered + version or of any later version published by the Free Software + Foundation. If the Program does not specify a version number of the + GNU General Public License, you may choose any version ever published + by the Free Software Foundation.

+ +

If the Program specifies that a proxy can decide which future + versions of the GNU General Public License can be used, that proxy's + public statement of acceptance of a version permanently authorizes you + to choose that version for the Program.

+ +

Later license versions may give you additional or different + permissions. However, no additional obligations are imposed on any + author or copyright holder as a result of your choosing to follow a + later version.

+ +

15. Disclaimer of Warranty.

+ +

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT + HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY + OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM + IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF + ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+ +

16. Limitation of Liability.

+ +

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS + THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE + USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), + EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGES.

+ +

17. Interpretation of Sections 15 and 16.

+ +

If the disclaimer of warranty and limitation of liability provided + above cannot be given local legal effect according to their terms, + reviewing courts shall apply local law that most closely approximates + an absolute waiver of all civil liability in connection with the + Program, unless a warranty or assumption of liability accompanies a + copy of the Program in return for a fee.

+ +

END OF TERMS AND CONDITIONS

+
+ {{!$doorgets->form['doorgets_licence']->checkbox($doorgets->l("J'ai lu et j'accepte les conditions d'utilisation de doorGets"),'licence_validation','1','')!}} +
+
+ {{!$doorgets->form['doorgets_licence']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_licence']->close()!}} + {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/polymorphic.tpl.php b/setup/doorgets/template/polymorphic.tpl.php old mode 100644 new mode 100755 index f08cb43..98a98d7 --- a/setup/doorgets/template/polymorphic.tpl.php +++ b/setup/doorgets/template/polymorphic.tpl.php @@ -1,59 +1,59 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
-
- doorGets 5.0 -
-
- {{!$doorgets->l("Vous avez presque fini...")!}} -
- {{!$doorgets->form['doorgets_polymorphic']->open('post','','')!}} - {{!$doorgets->form['doorgets_polymorphic']->input('','hidden','hidden','1')!}} -
-
- {{!$doorgets->l("Cliquez sur le bouton ci-dessous pour générer votre site.")!}} -
- {{!$doorgets->l("Vous allez être ensuite redirigé vers la page d'administration.")!}} -

-
- {{!$doorgets->form['doorgets_polymorphic']->submit($doorgets->l('Génerer mon site internet doorGets'))!}} -
-
- " {{!$doorgets->l('Merci')!}} ! " -
-
- {{!$doorgets->form['doorgets_polymorphic']->close()!}} -
- {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ {{!$doorgets->l("Vous avez presque fini...")!}} +
+ {{!$doorgets->form['doorgets_polymorphic']->open('post','','')!}} + {{!$doorgets->form['doorgets_polymorphic']->input('','hidden','hidden','1')!}} +
+
+ {{!$doorgets->l("Cliquez sur le bouton ci-dessous pour générer votre site.")!}} +
+ {{!$doorgets->l("Vous allez être ensuite redirigé vers la page d'administration.")!}} +

+
+ {{!$doorgets->form['doorgets_polymorphic']->submit($doorgets->l('Génerer mon site internet doorGets'))!}} +
+
+ " {{!$doorgets->l('Merci')!}} ! " +
+
+ {{!$doorgets->form['doorgets_polymorphic']->close()!}} +
+ {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/root.tpl.php b/setup/doorgets/template/root.tpl.php old mode 100644 new mode 100755 index 974755e..f57bb42 --- a/setup/doorgets/template/root.tpl.php +++ b/setup/doorgets/template/root.tpl.php @@ -1,47 +1,47 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?> -
- {{!$doorgets->form['doorgets_root']->open('post','','')!}} -
- doorGets 5.0 -
-
- {{!$doorgets->form['doorgets_root']->select($doorgets->l('Choisir votre langue').'
','language',$doorgets->getAllLanguages(),$doorgets->getLanguage())!}} -
- {{!$doorgets->form['doorgets_root']->select($doorgets->l('Choisir votre fuseau horaire').'
','time_zone',$this->getArrayZones(),$doorgets->getTimeZone())!}} -
-
- {{!$doorgets->form['doorgets_root']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_root']->close()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?> +
+ {{!$doorgets->form['doorgets_root']->open('post','','')!}} +
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ {{!$doorgets->form['doorgets_root']->select($doorgets->l('Choisir votre langue').'
','language',$doorgets->getAllLanguages(),$doorgets->getLanguage())!}} +
+ {{!$doorgets->form['doorgets_root']->select($doorgets->l('Choisir votre fuseau horaire').'
','time_zone',$this->getArrayZones(),$doorgets->getTimeZone())!}} +
+
+ {{!$doorgets->form['doorgets_root']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_root']->close()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/website.tpl.php b/setup/doorgets/template/website.tpl.php old mode 100644 new mode 100755 index f4be0c0..fca7d8e --- a/setup/doorgets/template/website.tpl.php +++ b/setup/doorgets/template/website.tpl.php @@ -1,71 +1,71 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ - -$yDateNow = date("Y"); $dateCreation = array(); -for($i = $yDateNow;$i> ( $yDateNow - 100);$i--){ $dateCreation[(string)$i] = (int)$i; } - -$nFace = 'http://www.facebook.com/'; -$nTwitter = 'http://www.twitter.com/'; -$nYoutube = 'http://www.youtube.com/user/'; -$nGoogle = 'https://plus.google.com/u/0/'; -$nPinterest = 'https://www.pinterest.com/'; -$nLinkedin = 'http://www.linkedin.com/in/'; -$nMyspace = 'http://www.myspace.com/'; - -?> -
-
- doorGets 5.0 -
-
- 4/5 - {{!$doorgets->l("Configurer votre site internet")!}} -
- {{!$doorgets->form['doorgets_website']->open('post','','')!}} -
- {{!$doorgets->form['doorgets_website']->input($doorgets->l('Titre').' * ','title','text',$this->info['title'])!}} -
- {{!$doorgets->form['doorgets_website']->input($doorgets->l('Slogan').' * ','slogan','text',$this->info['slogan'])!}} -
- {{!$doorgets->form['doorgets_website']->input($doorgets->l('Description').' * ','description','text',$this->info['description'])!}} -
- {{!$doorgets->form['doorgets_website']->input($doorgets->l('Mots clés').' * ','keywords','text',$this->info['keywords'])!}} -
- {{!$doorgets->form['doorgets_website']->input($doorgets->l('Copyright'),'copyright','text',$this->info['copyright'])!}} -
- {{!$doorgets->form['doorgets_website']->select($doorgets->l('Année de création'),'year',$dateCreation,$this->info['year'])!}} -
-
- {{!$doorgets->form['doorgets_website']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} - {{!$doorgets->form['doorgets_website']->close()!}} - {{!$doorgets->getHtmlGoBack()!}} + Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ + +$yDateNow = date("Y"); $dateCreation = array(); +for($i = $yDateNow;$i> ( $yDateNow - 100);$i--){ $dateCreation[(string)$i] = (int)$i; } + +$nFace = 'http://www.facebook.com/'; +$nTwitter = 'http://www.twitter.com/'; +$nYoutube = 'http://www.youtube.com/user/'; +$nGoogle = 'https://plus.google.com/u/0/'; +$nPinterest = 'https://www.pinterest.com/'; +$nLinkedin = 'http://www.linkedin.com/in/'; +$nMyspace = 'http://www.myspace.com/'; + +?> +
+
+ doorGets 6.0 Free OpenSource CMS PHP/MySQL +
+
+ 4/5 - {{!$doorgets->l("Configurer votre site internet")!}} +
+ {{!$doorgets->form['doorgets_website']->open('post','','')!}} +
+ {{!$doorgets->form['doorgets_website']->input($doorgets->l('Titre').' * ','title','text',$this->info['title'])!}} +
+ {{!$doorgets->form['doorgets_website']->input($doorgets->l('Slogan').' * ','slogan','text',$this->info['slogan'])!}} +
+ {{!$doorgets->form['doorgets_website']->input($doorgets->l('Description').' * ','description','text',$this->info['description'])!}} +
+ {{!$doorgets->form['doorgets_website']->input($doorgets->l('Mots clés').' * ','keywords','text',$this->info['keywords'])!}} +
+ {{!$doorgets->form['doorgets_website']->input($doorgets->l('Copyright'),'copyright','text',$this->info['copyright'])!}} +
+ {{!$doorgets->form['doorgets_website']->select($doorgets->l('Année de création'),'year',$dateCreation,$this->info['year'])!}} +
+
+ {{!$doorgets->form['doorgets_website']->submit($doorgets->l('Etape suivante'),'','submit-next')!}} + {{!$doorgets->form['doorgets_website']->close()!}} + {{!$doorgets->getHtmlGoBack()!}}
\ No newline at end of file diff --git a/setup/doorgets/template/wrapper.tpl.php b/setup/doorgets/template/wrapper.tpl.php old mode 100644 new mode 100755 index 96dce4c..7368f22 --- a/setup/doorgets/template/wrapper.tpl.php +++ b/setup/doorgets/template/wrapper.tpl.php @@ -1,37 +1,37 @@ - Crazy PHP Lover - -/******************************************************************************* - - Website : http://www.doorgets.com - Contact : http://www.doorgets.com/?contact - -/******************************************************************************* - -= One life, One code =- -/******************************************************************************* - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -****************************************************************************** -******************************************************************************/ -?>{{!$this->getHtmlHeader();}} -
- {{!$this->content;}} -
+ Crazy PHP Lover + +/******************************************************************************* + + Website : http://www.doorgets.com + Contact : moonair@doorgets.com + +/******************************************************************************* + -= One life, One code =- +/******************************************************************************* + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +****************************************************************************** +******************************************************************************/ +?>{{!$this->getHtmlHeader();}} +
+ {{!$this->content;}} +
{{!$this->getHtmlFooter();}} \ No newline at end of file diff --git a/setup/skin/css/doorgets_installer.css b/setup/skin/css/doorgets_installer.css old mode 100644 new mode 100755 index 31240a9..ba78273 --- a/setup/skin/css/doorgets_installer.css +++ b/setup/skin/css/doorgets_installer.css @@ -1,22 +1,25 @@ -html,body,table,ul,li,p,form{ margin: 0;padding: 0; font: 15px/1.35 Helvetica,Arial,sans-serif; } -a{ text-decoration: none; color: #000; } -.doorGets-wrapper{overflow: hidden;margin: 20px auto 10px;width: 600px;border: solid 1px #ccc;padding: 10px 13px 10px 10px;box-shadow: 1px 1px 8px #AAAAAA;} -.doorGets-wrapper label{font-weight: 700;} -.doorGets-wrapper input[type=text]{width: 590px;padding: 5px;} -.doorGets-wrapper input[type=checkbox]{margin-right: 10px;} -.doorGets-wrapper select{padding: 5px;} -.doorGets-wrapper input[type=text].input-network{width: 180px;} -.separateur-tb{ width: 100%; height: 1px; background: #f1f1f1; margin: 10px 0; } -.doorGets-title-content{color: #90C;font-weight: bold;padding: 5px;background: #F1F1F1; border-bottom: solid 2px #90C;font-size: 15pt;margin-bottom: 10px;background: #007700 url(../img/bg_title.png) repeat-x;} -.doorGets-top-title-content{color: #000;font-weight: bold;padding: 5px 0;border-bottom: solid 2px #90C;font-size: 15pt;} -.doorGets-sub-title-content{color: #90C;font-weight: bold;padding: 5px 0; border-bottom: solid 2px #CF65F2;font-size: 13pt;margin-bottom: 10px;} -.doorGets-wrapper input[type=submit]{width: auto;padding: 5px 10px;color: #90c;font-weight: 600;cursor: pointer;font-size: 13pt;} -.doorGets-wrapper input[type=submit].submit-next{float: right;border-radius: 5px;font-size: 12pt;color: #fff;background: #007700 url(../img/bt.png) repeat-x;} -.doorGets-wrapper input[type=submit].submit-prev{float: left;border-radius: 5px;font-size: 12pt;color: #555;background: #007700 url(../img/bt_off.png) repeat-x;} -.doorGets-wrapper input[type=submit].submit-next:hover{background: #007700 url(../img/bt_hover.png) repeat-x;} -.doorGets-wrapper input[type=submit].submit-prev:hover{background: #007700 url(../img/bt_off_hover.png) repeat-x;} -.info-ok{padding: 10px;margin: 5px 0;background: #2AB22A;color: #fff;} -.info-no-ok{padding: 10px;margin: 5px 0;background: #CE4A48;color: #fff;} -.t-polymorphic-center{text-align: center;padding: 20px 0 25px;border-bottom: solid 1px #ccc;margin-bottom: 10px;} -.licence-text{width:600px;height:350px;overflow:scroll;padding:0;margin:0 0 10px 0;} -.info-doorGets-bottom{margin: 0 auto;width: 620px;text-align: center;} \ No newline at end of file +html,body,table,ul,li,p,form{ margin: 0;padding: 0; font: 15px/1.35 Helvetica,Arial,sans-serif; } +a{ text-decoration: none; color: #000; } +.doorGets-wrapper{overflow: hidden;margin: 20px auto 10px;width: 600px;border: solid 1px #ccc;padding: 10px 13px 10px 10px;box-shadow: 1px 1px 8px #AAAAAA;} +.doorGets-wrapper label{font-weight: 700;} +.doorGets-wrapper input[type=text]{width: 590px;padding: 5px;} +.doorGets-wrapper input[type=checkbox]{margin-right: 10px;} +.doorGets-wrapper select{padding: 5px;} +.doorGets-wrapper input[type=text].input-network{width: 180px;} +.separateur-tb{ width: 100%; height: 1px; background: #f1f1f1; margin: 10px 0; } +.doorGets-title-content{color: #90C;font-weight: bold;padding: 5px;background: #F1F1F1; border: solid 1px #909;margin: 10px 0;font-size: 15pt;background: #007700 url(../img/bg_title.png) repeat-x;} +.doorGets-top-title-content{padding-bottom: 12px;color: #000;font-weight: bold;padding: 5px 0;font-size: 15pt;} +.doorGets-top-title-content small{color: #aaa;float: right;margin-top: 5px;} +.doorGets-sub-title-content{color: #90C;font-weight: bold;padding: 5px 0; border-bottom: solid 2px #CF65F2;font-size: 13pt;margin-bottom: 10px;} +.doorGets-wrapper input[type=submit]{width: auto;padding: 5px 10px;color: #90c;font-weight: 600;cursor: pointer;font-size: 13pt;} +.doorGets-wrapper input[type=submit].submit-next{float: right;border-radius: 5px;font-size: 12pt;color: #fff;background: #007700 url(../img/bt.png) repeat-x;} +.doorGets-wrapper input[type=submit].submit-prev{float: left;border-radius: 5px;font-size: 12pt;color: #555;background: #007700 url(../img/bt_off.png) repeat-x;} +.doorGets-wrapper input[type=submit].submit-next:hover{background: #007700 url(../img/bt_hover.png) repeat-x;} +.doorGets-wrapper input[type=submit].submit-prev:hover{background: #007700 url(../img/bt_off_hover.png) repeat-x;} +.info-ok{padding: 10px;margin: 5px 0;background: #2AB22A;color: #fff;} +.info-no-ok{padding: 10px;margin: 5px 0;background: #CE4A48;color: #fff;} +.t-polymorphic-center{text-align: center;padding: 20px 0 25px;border-bottom: solid 1px #ccc;margin-bottom: 10px;} +.licence-text{width:600px;height:350px;overflow:scroll;padding:0;margin:0 0 10px 0;} +.info-doorGets-bottom{margin: 0 auto;width: 620px;text-align: center;} +#doorgets_root label{display: inline-block;} +#doorgets_root select{display: inline-block;margin-left: 15px;} \ No newline at end of file diff --git a/setup/skin/css/index.php b/setup/skin/css/index.php old mode 100644 new mode 100755 diff --git a/setup/skin/img/bg_title.png b/setup/skin/img/bg_title.png old mode 100644 new mode 100755 diff --git a/setup/skin/img/bt.png b/setup/skin/img/bt.png old mode 100644 new mode 100755 diff --git a/setup/skin/img/bt_hover.png b/setup/skin/img/bt_hover.png old mode 100644 new mode 100755 diff --git a/setup/skin/img/bt_off.png b/setup/skin/img/bt_off.png old mode 100644 new mode 100755 diff --git a/setup/skin/img/bt_off_hover.png b/setup/skin/img/bt_off_hover.png old mode 100644 new mode 100755 diff --git a/setup/skin/img/index.php b/setup/skin/img/index.php old mode 100644 new mode 100755 diff --git a/setup/skin/index.php b/setup/skin/index.php old mode 100644 new mode 100755 diff --git a/setup/temp/database.php b/setup/temp/database.php deleted file mode 100644 index b06e83c..0000000 --- a/setup/temp/database.php +++ /dev/null @@ -1 +0,0 @@ -a:4:{s:4:"hote";s:9:"127.0.0.1";s:4:"name";s:8:"doorgets";s:5:"login";s:4:"root";s:8:"password";s:0:"";} \ No newline at end of file diff --git a/setup/temp/index.php b/setup/temp/index.php new file mode 100755 index 0000000..8d59375 --- /dev/null +++ b/setup/temp/index.php @@ -0,0 +1,4 @@ +