diff --git a/Automation/Php/Newbb2Phpbb/GPL b/Automation/Php/Newbb2Phpbb/GPL deleted file mode 100755 index 5b6e7c6..0000000 --- a/Automation/Php/Newbb2Phpbb/GPL +++ /dev/null @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) 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 -this service 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 make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. 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. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -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 -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the 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 a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE 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. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - 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 2 of the License, or - (at your option) 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/Automation/Php/Newbb2Phpbb/classes/db_mysql.php b/Automation/Php/Newbb2Phpbb/classes/db_mysql.php deleted file mode 100755 index 60c9893..0000000 --- a/Automation/Php/Newbb2Phpbb/classes/db_mysql.php +++ /dev/null @@ -1,208 +0,0 @@ - - ***/ - -class DB_MYSQL -{ - public $db_conn; - - public $db_host; - public $db_user; - public $db_pass; - public $db_xoops_db; - public $db_xoops_tbl; - public $db_phpbb_db; - public $db_phpbb_tbl; - - /*** - * Class Construct - ***/ - - function __construct() - { - // Initialize configuration values - $this->db_host = 'localhost'; - $this->db_user = 'root'; - $this->db_pass = ''; - $this->db_xoops_db = 'xoops'; - $this->db_xoops_tbl = 'xoops_'; - $this->db_phpbb_db = 'phpBB'; - $this->db_phpbb_tbl = 'phpbb_'; - - // Reinitialize configuration values - $config = array('db_host', 'db_user', 'db_pass', 'db_xoops_db', - 'db_xoops_tbl', 'db_phpbb_db', 'db_phpbb_tbl'); - - foreach ( $config as $param ) - { - if ( ! isset( $_SESSION[$param] ) ) - { - $_SESSION[$param] = $this->$param; - } - - $_SESSION[$param] = isset($_POST[$param])?$_POST[$param]:$_SESSION[$param]; - - $this->$param = $_SESSION[$param]; - } - } - - /*** - * Connect - */ - function connect() - { - // Connect to MySQL database - $this->db_conn = mysql_connect( $this->db_host, - $this->db_user, - $this->db_pass ); - if ( $this->db_conn ) - { - return true; - } - else - { - return false; - } - } - - /*** - * DB Configuration - */ - function get_configForm( $disabled = '' ) - { - $htmlblock = array(); - - array_push( $htmlblock, - // Common DB Configuration - '

Common DB configuration:

', - '
', - '
Server:
', - '
', - - '
Username:
', - '
', - - '
Password:
', - '
', - '
', - - // Xoops Configuration - '

Xoops configuration:

', - '
', - '
Xoops database name:
', - '
', - - '
Xoops table prefix:
', - '
', - - '
', - - // phpBB Configuration - '

phpBB configuration:

', - '
', - '
Phpbb database name:
', - '
', - - '
Phpbb table prefix:
', - '
', - '
'); - - return $htmlblock; - } - - /*** - * Query - */ - function query( $sql ) - { - $this->connect(); - $result = mysql_query( $sql, $this->db_conn ); - if ( $result ) - { - return $result; - } - else - { - return false; - } - } - - /*** - * Check existance - */ - function check_existance( $name ) - { - - switch ( $name ) - { - case 'phpbb': - $check_dbname = $this->db_phpbb_db; - $check_suffix = $this->db_phpbb_tbl; - $check_tables = array('users', 'forums', 'topics', 'posts'); - break; - - case 'xoops': - $check_dbname = $this->db_xoops_db; - $check_suffix = $this->db_xoops_tbl; - $check_tables = array('users', 'bb_forums', 'bb_topics', 'bb_posts', 'bb_posts_text'); - break; - } - - $error = 0; - $table_list = array(); - - // Check database existance - if ( ! mysql_select_db( $check_dbname ) ) - { - $error++; - } - - // Check tables existance - else - { - $sql = 'SHOW TABLES FROM ' . $check_dbname . ';'; - $result = $this->query( $sql ); - while ( $row = mysql_fetch_row ($result) ) - { - array_push($table_list, $row[0]); - } - - foreach ($check_tables as $tablename) - { - $tablename = $check_suffix . $tablename; - if (in_array($tablename, $table_list) === false ) - { - $error++; - } - } - } - - if ( $error == 0 ) - { - return true; - } - else - { - return false; - } - } - - /*** - * Class Destruct - ***/ - - function disconnect() - { - mysql_close( $this->db_conn ); - } -} - -$db = new DB_MYSQL; -?> diff --git a/Automation/Php/Newbb2Phpbb/classes/html.php b/Automation/Php/Newbb2Phpbb/classes/html.php deleted file mode 100755 index 6c85f07..0000000 --- a/Automation/Php/Newbb2Phpbb/classes/html.php +++ /dev/null @@ -1,132 +0,0 @@ - '', - 1 => "\t", - 2 => "\t\t", - 3 => "\t\t\t", - 4 => "\t\t\t\t", - 5 => "\t\t\t\t\t"); - - // Define indententaion level by tags - $levels = array('/<\/?html/' => 0, - '/<\/?(body|head)( .+|>)/' => 1, - '/<\/?(title)( .+|>)/' => 2, - '/<\/?(br|hr) \/>/' => 2, - '/<\/?(p|pre|table|dl|ul|ol|div|h[1-9]|form|link)( .+|>)/' => 3, - '/<\/?(li|dt|dd|span|select|option|tr)( .+|>)/' => 4, - '/<\/?(th|td)( .+|>)/' => 5); - - // Set line level, line by line - foreach ( $htmlblock as $line ) - { - foreach ( $levels as $tag => $level ) - { - if ( preg_match( $tag, $line ) ) - { - $html_formatted .= $tabs[$level] . $line . "\n"; - } - - } - } - - return $html_formatted; - } - - /*** - * Format messages - * - * $message : the message text itself. - * $color : grey|green|orange|blue|violet|red - * if no color is specified grey color is assumed as default - */ - function format_message( $message = 'Empty', $color = '' ) - { - // Validate color to be used - $valid_colors = array('grey', 'green', 'orange', 'violet', 'blue', 'red'); - if ( ! in_array( $color, $valid_colors ) ) - { - $color = ''; - } - - // Build message html - $html = '
' . strtoupper($message) . '
'; - - return $html; - } - - /*** - * Where is my position in the migration ? - * ---------------------------------------------------- - * It is somehow a breadcrumb of where you are in the migration process. - */ - function get_stepPosition() - { - // Define migration process stepts - $steps = array(0 => 'Configuration', - 1 => 'Verification', - 2 => 'Migration', - 3 => 'Reset Passwords'); - - $position = isset( $_POST['step'] )?$_POST['step']:0; - - $htmlblock = array(''); - - return $htmlblock; - } - - /*** - * Navibar - */ - function get_navibar() - { - global $db; - - $htmlblock = array(''); - - return $htmlblock; - } -} - -$html = new HTML; -?> diff --git a/Automation/Php/Newbb2Phpbb/classes/ldap.php b/Automation/Php/Newbb2Phpbb/classes/ldap.php deleted file mode 100755 index 63d78b0..0000000 --- a/Automation/Php/Newbb2Phpbb/classes/ldap.php +++ /dev/null @@ -1,321 +0,0 @@ - - ***/ - -class LDAP -{ - public $this_conn; - public $this_host; - public $this_port; - public $this_rootdn; - public $this_rootpw; - public $this_authschema; - public $this_basedn; - - /*** - * Class initialization - */ - function __construct() - { - // Initialize configuration values - $this->ldap_host = 'localhost'; - $this->ldap_port = '389'; - $this->ldap_rootdn = 'cn=manager,dc=example,dc=com'; - $this->ldap_rootpw = ''; - $this->ldap_authschema = '{MD5}'; - $this->ldap_basedn = 'ou=people,dc=example,dc=com'; - - // Reinitialize configuration values - $config = array('ldap_host', 'ldap_port', 'ldap_rootdn', - 'ldap_rootpw', 'ldap_authschema','ldap_basedn'); - - foreach ( $config as $param ) - { - if ( ! isset($_SESSION[$param] ) ) - { - $_SESSION[$param] = $this->$param; - } - - $_SESSION[$param] = isset($_POST[$param])?$_POST[$param]:$_SESSION[$param]; - - $this->$param = $_SESSION[$param]; - } - - // Open connection against ldap server - if ( $this->ldap_host && $this->ldap_port ) - { - $this->ldap_conn = ldap_connect( $this->ldap_host, $this->ldap_port ); - } - - // Set protocol version to use LDAPv3 - ldap_set_option( $this->ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3); - } - - /*** - * LDAP configuration - */ - function get_configForm( $disabled = "" ) - { - $htmlblock = array(); - - array_push( $htmlblock, - - '

LDAP configuration:

', '
', - - '
Host:
', - '
', - - '
Port:
', - '
', - - '
Bind DN:
', - '
', - - '
Base DN:
', - '
', - - '
Bind Password:
', - '
', - - - '
Schema:
', - '
', - '', - '
', - - '
'); - - return $htmlblock; - } - - - /*** - * Verify configuration - */ - function verify_configuration() - { - - } - - /*** - * Bind to LDAP server - */ - function do_bind() - { - return ldap_bind( $this->ldap_conn, $this->ldap_rootdn, $this->ldap_rootpw ); - } - - /*** - * Verify LDAP uid's value uniqness - */ - function is_uid_present( $uid ) - { - $filter = 'uid=' . $uid; - $result = ldap_search( $this->ldap_conn, $this->ldap_basedn, $filter); - $entry = ldap_get_entries( $this->ldap_conn, $result); - - if ( $uid != '' && $entry['count'] == 1 ) - { - return true; - } - else - { - return false; - } - } - - /*** - * Prepare LDAP userPassword attribute - */ - function prepare_userpassword( $userpassword ) - { - $dirty['userpassword'] = $userpassword; - $clean['userpassword'] = ''; - - switch ( $this->ldap_authschema ) - { - case '{MD5}': - $clean['userpassword'] = '{MD5}' . base64_encode( pack( 'H*', md5( $dirty['userpassword'] ) ) ); - break; - - case '{SHA}': - $clean['userpassword'] = '{SHA}' . base64_encode( pack( 'H*', sha1( $dirty['userpassword'] ) ) ); - break; - } - - return $clean['userpassword']; - } - - - /*** - * Add User - */ - function add_User( $entry ) - { - $this_entry = array(); - - // Define user DN - $dn = 'uid=' . $entry['email'] . ',' . $this->ldap_basedn; - - // Remove user if exists - if ( $this->is_uid_present( $entry['uname'] ) === true ) - { - $this->delete_User( $entry ); - } - - // Prepare userPassword and other attributes for insertion in LDAP directory. - $this_entry['objectclass'] = 'inetOrgPerson'; - $this_entry['cn'] = $entry['name']; - $this_entry['mail'] = $entry['email']; - $this_entry['userpassword'] = $this->prepare_userpassword($entry['pass']); - $this_entry['sn'] = preg_replace('/^([a-zA-Z0-9_]+ ?)/','', $this_entry['cn']); - $this_entry['uid'][0] = $this_entry['mail']; - $this_entry['uid'][1] = $entry['uname']; - $this_entry['displayname'] = $entry['uname']; - $this_entry['employeetype'] = 'writer'; - $this_entry['preferredlanguage'] = 'en'; - - if ( $this->do_bind() && ldap_add( $this->ldap_conn, $dn, $this_entry )) - { - return true; - } - else - { - return false; - } - } - - /*** - * Delete User - */ - function delete_User( $entry ) - { - // Define user DN - $dn = 'uid=' . $entry['email'] . ',' . $this->ldap_basedn; - - if ( $this->do_bind() && ldap_delete( $this->ldap_conn, $dn ) ) - { - return true; - } - else - { - return false; - } - } - - /*** - * Update LDAP userPassword only. - */ - function update_userPassword( $dn, $userPassword ) - { - $entry = array('userpassword' => $userPassword ); - - if ( $this->do_bind() && ldap_modify( $this->ldap_conn, $dn, $entry) ) - { - return true; - } - else - { - return false; - } - } - - /*** - * Get LDAP user list - * ---------------------------------------------------- - * 1. Show a form with a list of all users inserted from xoops.users table. - * 2. Generate random passwords for each user and codify them into - * userPassword format. - * 3. Real passwords are not displayed. - */ - function get_userList() - { - global $newbb_to_phpbb; - global $mail; - - // Get users from LDAP server - $filter = 'objectclass=inetorgperson'; - $result = ldap_search( $this->ldap_conn, $this->ldap_basedn, $filter); - $users = ldap_get_entries( $this->ldap_conn, $result ); - - $htmlblock = array('

'.$users['count'].' password(s) reset under: '.$this->ldap_basedn.'

', - '', - '', - '', - '', - '', - '', - '', - '', - ''); - - for ($i = 0; $i < $users['count']; $i++) - { - // Reset userPassword value in a random manner - $newPassword = $newbb_to_phpbb->get_randomPass(); - $userPassword = $this->prepare_userpassword($newPassword); - - array_push($htmlblock, '', - '', - '', - '', - ''); - - // Update LDAP userPassword field - if ( $this->update_userPassword( $users[$i]['dn'], $userPassword ) === true ) - { - array_push($htmlblock,''); - } - else - { - array_push($htmlblock,''); - } - - // Send email notification - $info = array('mailto' => $users[$i]['mail'][0], - 'cn' => $users[$i]['cn'][0], - 'dn' => $users[$i]['dn'], - 'uid1' => $users[$i]['uid'][0], - 'uid2' => $users[$i]['uid'][1], - 'sn' => $users[$i]['sn'][0], - 'employeetype' => $users[$i]['employeetype'][0], - 'preferredlanguage' => $users[$i]['preferredlanguage'][0], - 'displayname' => $users[$i]['displayname'][0], - 'userpassword' => $newPassword); - if ( $mail->send( $info ) === true ) - { - array_push($htmlblock,''); - } - else - { - array_push($htmlblock,''); - } - array_push($htmlblock,''); - } - - array_push($htmlblock,'
DNCNNewPassuserPasswordPassword UpdatedEmail Notification
' . $users[$i]['dn'] . '' . $users[$i]['cn'][0] . '' . $newPassword . '' . $userPassword . 'YESNOSENTNOT SENT
'); - - return $htmlblock; - } - - /*** - * Class destruct - */ - function __destruct() - { - if ( isset( $this->ldap_conn ) ) - { - ldap_unbind( $this->ldap_conn ); - } - } -} - -$ldap = new LDAP; -?> diff --git a/Automation/Php/Newbb2Phpbb/classes/mail.php b/Automation/Php/Newbb2Phpbb/classes/mail.php deleted file mode 100755 index ead6bfc..0000000 --- a/Automation/Php/Newbb2Phpbb/classes/mail.php +++ /dev/null @@ -1,157 +0,0 @@ -notification = 'NO'; - $this->notification_subject = '[CentOS Forum] User account notification.'; - $this->notification_message = "Dear =USER_FIRST_NAME=, - -The CentOS Forums (http://centos.org/forums/) were migrated from -Xoops+CBB(newbb) to phpBB3 and the user accounts were moved to an LDAP -server. As consequence your user account is now on that LDAP server. - -In order to make this happen, it was needed to reset your account -password. Your password(userPassword) is here with the rest of your -user account information. - -The following LDAP entry has the information of your user account: - - dn: =DN= - uid: =UID1= - uid: =UID2= - userPassword: =PASS= - mail: =MAIL= - cn: =CN= - sn: =SN= - employeeType: =TYPE= -preferredLanguage: =LANG= - displayName: =DISPLAYNAME= - -With this migration we are preparing the ground to unify all CentOS -user accounts into a common place. If you need to authenticate -somewhere under centos.org domain use any of your uids and the -password provided above. - -Best Regards, --- -The CentOS Team"; - - // Reinitialize variables with form values - $config = array('notification', 'notification_subject', 'notification_message'); - foreach ( $config as $param ) - { - if ( ! isset($_SESSION[$param])) - { - $_SESSION[$param] = $this->$param; - } - - $_SESSION[$param] = isset($_POST[$param])?$_POST[$param]:$_SESSION[$param]; - - $this->$param = $_SESSION[$param]; - } - } - - /*** - * Send - * ------- - * $info is an array with the following indexes: - * - mailto - * - name - * - dn - * - newpass - */ - - function send( $info ) - { - // Do replacements in message template - $this->notification_message = preg_replace('/=MAIL=/', $info['mailto'],$this->notification_message); - $this->notification_message = preg_replace('/=DN=/', $info['dn'],$this->notification_message); - $this->notification_message = preg_replace('/=UID1=/', $info['uid1'],$this->notification_message); - $this->notification_message = preg_replace('/=UID2=/', $info['uid2'],$this->notification_message); - $this->notification_message = preg_replace('/=PASS=/', $info['userpassword'],$this->notification_message); - $this->notification_message = preg_replace('/=CN=/', $info['cn'],$this->notification_message); - $this->notification_message = preg_replace('/=SN=/', $info['sn'],$this->notification_message); - $this->notification_message = preg_replace('/=TYPE=/', $info['employeetype'],$this->notification_message); - $this->notification_message = preg_replace('/=LANG=/', $info['preferredlanguage'],$this->notification_message); - $this->notification_message = preg_replace('/=DISPLAYNAME=/',$info['displayname'],$this->notification_message); - $this->notification_message = preg_replace('/=USER_FIRST_NAME=/', preg_replace('/ .+$/','',$info['cn']), $this->notification_message); - - $to = $info['mailto']; - $subject = $this->notification_subject; - $message = $this->notification_message; - $headers = 'From: webmaster'; - $extra_params = '-fwebmaster'; - if ( $this->notification == 'YES' ) - { - return mail( $to, $subject, $message, $headers, $extra_params ); - } - } - - /*** - * Send notification ? - * Show form selector - */ - - function get_configForm( $disabled = '' ) - { - $htmlblock = array('

Mail Notification:

','
'); - - // Mail template - array_push($htmlblock, - - '
Subject:
', - '
', - - '
Message:
', - '
', - - '
Send notifications ?:
', - '
Use it with care!
'); - - array_push($htmlblock, '
'); - - return $htmlblock; - } - - /*** - * Class destructor - */ - - function __destruct() - { - - } -} - -$mail = new MAIL; -?> diff --git a/Automation/Php/Newbb2Phpbb/classes/newbb_to_phpbb.php b/Automation/Php/Newbb2Phpbb/classes/newbb_to_phpbb.php deleted file mode 100755 index 2eb5e64..0000000 --- a/Automation/Php/Newbb2Phpbb/classes/newbb_to_phpbb.php +++ /dev/null @@ -1,424 +0,0 @@ - - ***/ - - -class NEWBB_TO_PHPBB -{ - - /*** - * Class Construct - * ---------------------------------------------------- - */ - function __construct() - { - // Initialize session - session_start(); - - // Check action: usedefaults - if ( isset( $_GET['action'] ) && $_GET['action'] == 'restore' ) - { - // Unset session values - session_unset(); - - // Reload page - header('Location: index.php'); - } - } - - /*** - * Verify Configuration - * - * This verification is needed to be sure new information entered - * is valid. - */ - function config_verification( $next_step ) - { - global $db; - global $ldap; - global $html; - - $htmlblock = array(); - $error = 0; - - // Verify LDAP bind - if ( $ldap->do_bind() ) - { - array_push($htmlblock, $html->format_message('LDAP Configuration is correct', 'green')); - } - else - { - array_push( $htmlblock, $html->format_message('LDAP Configuration is incorrect', 'orange')); - $error++; - } - - // Verify Database - if ( $db->connect() === true ) - { - array_push( $htmlblock, $html->format_message('Common DB Configuration is correct', 'green')); - - // Verify XOOPS database and table - if ( $db->check_existance('xoops') === true ) - { - array_push( $htmlblock, $html->format_message('Xoops configuration is correct', 'green')); - } - else - { - array_push( $htmlblock, $html->format_message('Xoops configuration is incorrect', 'orange')); - $error++; - } - - // Verify PHPBB database and table - if ( $db->check_existance('phpbb') === true ) - { - array_push( $htmlblock, $html->format_message('phpBB configuration is correct', 'green')); - } - else - { - array_push( $htmlblock, $html->format_message('phpBB configuration is incorrect', 'orange')); - $error++; - } - } - else - { - array_push( $htmlblock, $html->format_message('Common DB Configuration is incorrect', 'orange')); - $error++; - } - - // Add action button - if ( $error == 0 ) - { - $next_step++; - array_push( $htmlblock, - '

- - -

'); - } - else - { - array_push($htmlblock, '

PreviousCheck your configuration

'); - } - - return $html->format_htmlblock($htmlblock); - } - - /*** - * Groups - * - * All users in xoops.users will be inserted into phpBB.users - * using the REGISTERED group (group_id = 2). Forums administrators should - * be redifined after migration. - */ - - /*** - * Users - * - * Basic fields are copied from xoops.users to phpBB.users. - * - * Password field should be redifined by the user in order to get logged in - * after the migration. - * - * If LDAP authentication is used the directory structure should be design - * to receive uid and userPassword attributes. In this case the migration - * should be focused from xoops.users to LDAP directory not phpBB.users. - * - * The LDAP registration process is (as my understanding): 1. Add an entry - * for the user in the LDAP directory. 2. Add an entry for the user in the - * DB (this is automatically done by phpBB). This is needed to relate user - * against user specific information like topics, posts, etc. - * - * As we are using LDAP server for users. This function use php's ldap - * extension to add users into LDAP directory. If the user do no exist in - * the Database but in LDAP server, phpBB will automatically insert a - * record for that user in the phpBB.user table. It is needed to relate - * user identity to posts, topics, etc . - * - * User passwords need to be reseted and a notification could be send to each - * user telling the new password set. This is requiered because the - * password codification used in newbb, phpbb and LDAP is different. - * - * The structure of LDAP user entries was built with rfc2377 in mind. - */ - function copy_Users() - { - global $ldap; - global $db; - - $htmlblock = array('

Users

','
    '); - - // Remove phpBB.users. Number 52 seems to be the greatest user_id - // value when no user has been created. - - array_push($htmlblock,'
  • Cleanning up ...
  • '); - - $sql = sprintf('DELETE FROM %s.%susers WHERE user_id > 52;', - $db->db_phpbb_db, - $db->db_phpbb_tbl ); - $db->query( $sql ); - - // Add users into LDAP directory - - array_push($htmlblock,'
  • Copying ...
  • '); - - $sql = sprintf("SELECT uname, - name, - email, - pass - FROM %s.%susers WHERE uid > 1", - $db->db_xoops_db, - $db->db_xoops_tbl ); - - $result = $db->query( $sql ); - - $counter = 0; - - while ( $entry = mysql_fetch_array( $result ) ) - { - // Add xoops.users into LDAP directory - if ( $ldap->add_User( $entry ) === true ) - { - $counter++; - } - } - - array_push($htmlblock,'
  • '. $counter .' user(s) copied successfully.
  • ','
'); - - return $htmlblock; - } - - /*** - * Categories - * - * Not copied. In phpBB there is no category. - */ - - /*** - * Copy Forum - */ - function copy_Forums() - { - global $db; - - $htmlblock = array('

Forums

', '
    '); - - // Clean up Forums - - array_push( $htmlblock, '
  • Cleanning up ...
  • ' ); - - $sql = sprintf("TRUNCATE %s.%sforums;", - $db->db_phpbb_db, - $db->db_phpbb_tbl ); - - $db->query( $sql ); - - // Copy Forums - - array_push($htmlblock,'
  • Copying ...
  • '); - - $sql = sprintf("INSERT INTO %s.%sforums (forum_name, - forum_desc, - forum_topics, - forum_topics_real, - forum_type, - forum_posts) SELECT forum_name, - forum_desc, - forum_topics, - forum_topics, - (SELECT 1 AS forum_type), - forum_posts FROM %s.%sbb_forums;", - $db->db_phpbb_db, $db->db_phpbb_tbl, - $db->db_xoops_db, $db->db_xoops_tbl); - - $db->query( $sql ); - - // Get forums recently added and update their order, ownership, and type. - - $sql = sprintf('SELECT forum_id, left_id, right_id FROM %s.%sforums;', - $db->db_phpbb_db, - $db->db_phpbb_tbl ); - - $result = $db->query( $sql ); - - // Sanitize forum's order one by one - - $left_id = 1; - $right_id = 2; - $counter = 0; - - while ( $row = mysql_fetch_array( $result ) ) - { - $sql = sprintf("UPDATE %s.%sforums SET left_id = %d, right_id = %d WHERE forum_id = %d;", - $db->db_phpbb_db, - $db->db_phpbb_tbl, - $left_id, - $right_id, - $row['forum_id']); - - $db->query( $sql ); - - $left_id = $left_id + 2; - $right_id = $left_id + 1; - - // Counter - - $counter++; - } - - // Get amount of forums copied. - array_push( $htmlblock, '
  • ' . $counter . ' forum(s) copied successfully.
  • ', '
'); - - return $htmlblock; - } - - /*** - * Topics - * - * When doing Topic copying the user used will be administrator. This means - * that all topics and posts after migration will be own by the - * administrator user. - */ - function copy_Topics() - { - global $db; - - $htmlblock = array('

Topics

','
    '); - - // Claen up topics - - array_push( $htmlblock, '
  • Cleanning up ...
  • ' ); - - $sql = sprintf("TRUNCATE %s.%stopics;", - $db->db_phpbb_db, - $db->db_phpbb_tbl ); - - $db->query( $sql ); - - // Copy topics - - array_push( $htmlblock, '
  • Copying ...
  • ' ); - - $sql = sprintf("INSERT INTO %s.%stopics (forum_id, - topic_title, - topic_time, - topic_last_post_time, - topic_views, - topic_last_poster_id, - topic_poster, - topic_replies, - topic_replies_real) SELECT forum_id, - topic_title, - topic_time, - topic_time, - topic_views, - (SELECT 2 AS last_poster_id), - (SELECT 2 AS last_poster_id), - topic_replies, - topic_replies - FROM %s.%sbb_topics", - $db->db_phpbb_db, $db->db_phpbb_tbl, - $db->db_xoops_db, $db->db_xoops_tbl ); - - $db->query( $sql ); - - array_push( $htmlblock, '
  • ' . mysql_affected_rows() . ' topic(s) copied successfully.
  • ', '
' ); - - return $htmlblock; - } - - /*** - * Posts - */ - function copy_Posts() - { - global $db; - - $htmlblock = array('

Posts

','
    '); - - // Clean Up posts - - array_push($htmlblock,'
  • Cleanning up ...
  • '); - - $sql = sprintf("TRUNCATE %s.%sposts;", $db->db_phpbb_db, $db->db_phpbb_tbl); - - $db->query( $sql ); - - // Copy Posts - - array_push( $htmlblock, '
  • Copying ...
  • '); - - $sql = sprintf("INSERT INTO %s.%sposts (topic_id, - forum_id, - poster_id, - post_time, - post_subject, - post_text) SELECT t1.topic_id, - t1.forum_id, - (SELECT 2 AS poster_id), - t1.post_time, - t1.subject, - t2.post_text - FROM %s.%sbb_posts t1 - LEFT JOIN %s.%sbb_posts_text t2 - ON t2.post_id = t1.post_id;", - $db->db_phpbb_db, $db->db_phpbb_tbl, - $db->db_xoops_db, $db->db_xoops_tbl, - $db->db_xoops_db, $db->db_xoops_tbl); - - $db->query( $sql ); - - array_push( $htmlblock, '
  • ' . mysql_affected_rows() .' posts(s) copied successfully.
  • ', '
'); - - return $htmlblock; - } - - /*** - * Generate random password - */ - function get_randomPass() - { - // Add lower case letters - $seed = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', - 'i', 'j', 'k', 'i', 'l', 'm', 'n', 'o', - 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', - 'y', 'z'); - - // Add upper case letters - foreach ( $seed as $value ) - { - array_push( $seed, strtoupper($value) ); - } - - // Add numbers - array_push( $seed, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' ); - - // Use some symbols chars - array_push( $seed, '!', '@', '#', '$', '%', '=', '/','+' ); - - // Build password based on seed - $userPassword = ''; - $passwordLength = 20; - for ($i = 0; $i < $passwordLength; $i++) - { - $userPassword = $userPassword . $seed[array_rand($seed)]; - } - - return $userPassword; - } - - /*** - * Class Destruct - * ---------------------------------------------------- - */ - - function __destruct() - { - } -} - -$newbb_to_phpbb = new NEWBB_TO_PHPBB; -?> diff --git a/Automation/Php/Newbb2Phpbb/contents/content.php b/Automation/Php/Newbb2Phpbb/contents/content.php deleted file mode 100755 index b1cbb49..0000000 --- a/Automation/Php/Newbb2Phpbb/contents/content.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/Automation/Php/Newbb2Phpbb/contents/footer.php b/Automation/Php/Newbb2Phpbb/contents/footer.php deleted file mode 100755 index 0c54f0d..0000000 --- a/Automation/Php/Newbb2Phpbb/contents/footer.php +++ /dev/null @@ -1,6 +0,0 @@ -', - '', - '', - ''); -?> diff --git a/Automation/Php/Newbb2Phpbb/contents/header.php b/Automation/Php/Newbb2Phpbb/contents/header.php deleted file mode 100755 index 9b9851d..0000000 --- a/Automation/Php/Newbb2Phpbb/contents/header.php +++ /dev/null @@ -1,27 +0,0 @@ - -', - '', - '', - 'newbb to phpbb :: Migrating Xoops+CBB(newbb) to phpBB', - '', - '', - '', - ''); - - // Where am I in the migration process ? - if ( ! isset($_GET['p'] ) ) - { - $htmlblock = array_merge($htmlblock, $html->get_stepPosition()); - } - - array_push($htmlblock,'
'); -?> diff --git a/Automation/Php/Newbb2Phpbb/contents/p_help.php b/Automation/Php/Newbb2Phpbb/contents/p_help.php deleted file mode 100755 index 111af2e..0000000 --- a/Automation/Php/Newbb2Phpbb/contents/p_help.php +++ /dev/null @@ -1,36 +0,0 @@ - - newbb to phpbb :: Migrating from Xoops+CBB(newbb) to phpBB+LDAP - Copyright (C) 2009 Alain Reguera Delgado - - 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 2 of the License, or - (at your option) 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -"; - -array_push($htmlblock,'

Help

', '
', - '

About

', - '

newbb to phpbb do two things mainly:

', - '
    ', - '
  1. Migrate users from Xoops to LDAP.
  2. ', - '
  3. Migrate Forums, Topics, and Posts from Xoops\' CBB module (a.k.a newbb) to phpBB3.
  4. ', - '
', - '

Documentation works are in the project\'s page.

', - '

Authors

', - '', - '

Lisence

', - $lisence); diff --git a/Automation/Php/Newbb2Phpbb/contents/p_main.php b/Automation/Php/Newbb2Phpbb/contents/p_main.php deleted file mode 100755 index 75f66c9..0000000 --- a/Automation/Php/Newbb2Phpbb/contents/p_main.php +++ /dev/null @@ -1,59 +0,0 @@ -'); - // Configuration - if ( $next_step == 0 ) - { - $next_step++; - array_push($htmlblock,'

Configuration

', '
'); - $htmlblock = array_merge($htmlblock,$ldap->get_configForm()); - $htmlblock = array_merge($htmlblock,$db->get_configForm()); - $htmlblock = array_merge($htmlblock,$mail->get_configForm()); - - array_push($htmlblock, '

', - 'ReloadReload default configuration - ', - '', - '

'); - } - - // Verification - else if ( $next_step == 1 ) - { - array_push($htmlblock,'

Verification

', - '
', - $newbb_to_phpbb->config_verification( $next_step )); - } - - // Migration - else if ( $next_step == 2 ) - { - array_push($htmlblock,'

Migration

', '
'); - $htmlblock = array_merge($htmlblock, $newbb_to_phpbb->copy_Forums(), - $newbb_to_phpbb->copy_Users(), - $newbb_to_phpbb->copy_Topics(), - $newbb_to_phpbb->copy_Posts()); - $next_step++; - array_push($htmlblock,'

- - -

'); - } - - // Reset Passwords - else if ( $next_step == 3 ) - { - $next_step++; - array_push($htmlblock,'

Reset Passwords

', '
'); - $htmlblock = array_merge($htmlblock, $ldap->get_userList()); - array_push($htmlblock,'

That\'s all! smile

'); - } - - array_push($htmlblock,''); - -?> diff --git a/Automation/Php/Newbb2Phpbb/img/header-bg.png b/Automation/Php/Newbb2Phpbb/img/header-bg.png deleted file mode 100755 index ff2a7b0..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/header-bg.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/html-bg.png b/Automation/Php/Newbb2Phpbb/img/html-bg.png deleted file mode 100755 index 30f7d70..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/html-bg.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-blue.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-blue.png deleted file mode 100755 index 7a816cf..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-blue.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-gray.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-gray.png deleted file mode 100755 index 43d1a55..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-gray.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-green.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-green.png deleted file mode 100755 index f4ca7ca..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-green.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-orange.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-orange.png deleted file mode 100755 index 25a57b5..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-orange.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-red.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-red.png deleted file mode 100755 index 2dfcf09..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-red.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-violet.png b/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-violet.png deleted file mode 100755 index 657824d..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/moin-msg-bg-violet.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/navibartop-bg.png b/Automation/Php/Newbb2Phpbb/img/navibartop-bg.png deleted file mode 100755 index 936da33..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/navibartop-bg.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/navibartop-hover-bg.png b/Automation/Php/Newbb2Phpbb/img/navibartop-hover-bg.png deleted file mode 100755 index 1d5596e..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/navibartop-hover-bg.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/previous.png b/Automation/Php/Newbb2Phpbb/img/previous.png deleted file mode 100644 index d3bc514..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/previous.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/reload.png b/Automation/Php/Newbb2Phpbb/img/reload.png deleted file mode 100644 index e46da27..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/reload.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/img/smile.png b/Automation/Php/Newbb2Phpbb/img/smile.png deleted file mode 100755 index 44cc239..0000000 Binary files a/Automation/Php/Newbb2Phpbb/img/smile.png and /dev/null differ diff --git a/Automation/Php/Newbb2Phpbb/index.php b/Automation/Php/Newbb2Phpbb/index.php deleted file mode 100755 index 58d93dc..0000000 --- a/Automation/Php/Newbb2Phpbb/index.php +++ /dev/null @@ -1,13 +0,0 @@ -format_htmlblock( $htmlblock ); -?> diff --git a/Automation/Php/Newbb2Phpbb/schemas/newbb-mysql.sql b/Automation/Php/Newbb2Phpbb/schemas/newbb-mysql.sql deleted file mode 100755 index a3f14f6..0000000 --- a/Automation/Php/Newbb2Phpbb/schemas/newbb-mysql.sql +++ /dev/null @@ -1,311 +0,0 @@ --- phpMyAdmin SQL Dump --- version 2.6.4-pl4 --- http://www.phpmyadmin.net --- --- Host: localhost --- Generation Time: May 07, 2006 at 01:26 PM --- Server version: 5.0.16 --- PHP Version: 5.1.0 --- --- CBB 3.04 --- --- --- Database: `cbb` --- - --- -------------------------------------------------------- - --- --- Table structure for table `bb_archive` --- - -CREATE TABLE `bb_archive` ( - `topic_id` int(8) unsigned NOT NULL default '0', - `post_id` int(10) unsigned NOT NULL default '0', - `post_text` text NOT NULL -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_attachments` --- - -CREATE TABLE `bb_attachments` ( - `attach_id` int(8) unsigned NOT NULL auto_increment, - `post_id` int(10) unsigned NOT NULL default '0', - `name_saved` varchar(255) NOT NULL default '', - `name_disp` varchar(255) NOT NULL default '', - `mimetype` varchar(255) NOT NULL default '', - `online` tinyint(1) unsigned NOT NULL default '1', - `attach_time` int(10) unsigned NOT NULL default '0', - `download` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`attach_id`), - KEY `post_id` (`post_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_categories` --- - -CREATE TABLE `bb_categories` ( - `cat_id` smallint(3) unsigned NOT NULL auto_increment, - `cat_image` varchar(50) NOT NULL default '', - `cat_title` varchar(100) NOT NULL default '', - `cat_description` text NOT NULL, - `cat_order` smallint(3) unsigned NOT NULL default '0', - `cat_url` varchar(255) NOT NULL default '', - PRIMARY KEY (`cat_id`), - KEY `cat_order` (`cat_order`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_digest` --- - -CREATE TABLE `bb_digest` ( - `digest_id` int(8) unsigned NOT NULL auto_increment, - `digest_time` int(10) unsigned NOT NULL default '0', - `digest_content` text, - PRIMARY KEY (`digest_id`), - KEY `digest_time` (`digest_time`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_forums` --- - -CREATE TABLE `bb_forums` ( - `forum_id` smallint(4) unsigned NOT NULL auto_increment, - `forum_name` varchar(150) NOT NULL default '', - `forum_desc` text, - `parent_forum` smallint(4) unsigned NOT NULL default '0', - `forum_moderator` varchar(255) NOT NULL default '', - `forum_topics` int(8) unsigned NOT NULL default '0', - `forum_posts` int(10) unsigned NOT NULL default '0', - `forum_last_post_id` int(10) unsigned NOT NULL default '0', - `cat_id` smallint(3) unsigned NOT NULL default '0', - `forum_type` tinyint(1) unsigned NOT NULL default '0', - `allow_html` tinyint(1) unsigned NOT NULL default '1', - `allow_sig` tinyint(1) unsigned NOT NULL default '1', - `allow_subject_prefix` tinyint(1) unsigned NOT NULL default '0', - `hot_threshold` tinyint(3) unsigned NOT NULL default '10', - `forum_order` smallint(4) unsigned NOT NULL default '0', -# `allow_attachments` tinyint(1) unsigned NOT NULL default '1', - `attach_maxkb` smallint(3) unsigned NOT NULL default '1000', - `attach_ext` varchar(255) NOT NULL default '', - `allow_polls` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`forum_id`), - KEY `forum_last_post_id` (`forum_last_post_id`), - KEY `cat_forum` (`cat_id`,`forum_order`), - KEY `forum_order` (`forum_order`), - KEY `cat_id` (`cat_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_moderates` --- - -CREATE TABLE `bb_moderates` ( - `mod_id` int(10) unsigned NOT NULL auto_increment, - `mod_start` int(10) unsigned NOT NULL default '0', - `mod_end` int(10) unsigned NOT NULL default '0', - `mod_desc` varchar(255) NOT NULL default '', - `uid` int(10) unsigned NOT NULL default '0', - `ip` varchar(32) NOT NULL default '', - `forum_id` smallint(4) unsigned NOT NULL default '0', - PRIMARY KEY (`mod_id`), - KEY `uid` (`uid`), - KEY `mod_end` (`mod_end`), - KEY `forum_id` (`forum_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_online` --- - -CREATE TABLE `bb_online` ( - `online_forum` int(10) unsigned NOT NULL default '0', - `online_topic` int(8) unsigned NOT NULL default '0', - `online_uid` int(10) unsigned NOT NULL default '0', - `online_uname` varchar(255) NOT NULL default '', - `online_ip` varchar(32) NOT NULL default '', - `online_updated` int(10) unsigned NOT NULL default '0', - KEY `online_forum` (`online_forum`), - KEY `online_topic` (`online_topic`), - KEY `online_updated` (`online_updated`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_posts` --- - -CREATE TABLE `bb_posts` ( - `post_id` int(10) unsigned NOT NULL auto_increment, - `pid` int(10) unsigned NOT NULL default '0', - `topic_id` int(8) unsigned NOT NULL default '0', - `forum_id` smallint(4) unsigned NOT NULL default '0', - `post_time` int(10) unsigned NOT NULL default '0', - `uid` int(10) unsigned NOT NULL default '0', - `poster_name` varchar(255) NOT NULL default '', - `poster_ip` int(11) NOT NULL default '0', - `subject` varchar(255) NOT NULL default '', - `dohtml` tinyint(1) unsigned NOT NULL default '0', - `dosmiley` tinyint(1) unsigned NOT NULL default '1', - `doxcode` tinyint(1) unsigned NOT NULL default '1', - `dobr` tinyint(1) unsigned NOT NULL default '1', - `doimage` tinyint(1) unsigned NOT NULL default '1', - `icon` varchar(25) NOT NULL default '', - `attachsig` tinyint(1) unsigned NOT NULL default '0', - `approved` smallint(2) NOT NULL default '1', - `post_karma` int(10) unsigned NOT NULL default '0', - `attachment` text, - `require_reply` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`post_id`), - KEY `uid` (`uid`), - KEY `pid` (`pid`), - KEY `forum_id` (`forum_id`), - KEY `topic_id` (`topic_id`), - KEY `subject` (`subject`(40)), - KEY `forumid_uid` (`forum_id`,`uid`), - KEY `topicid_uid` (`topic_id`,`uid`), - KEY `post_time` (`post_time`), - KEY `topicid_postid_pid` (`topic_id`,`post_id`,`pid`), - FULLTEXT KEY `search` (`subject`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_posts_text` --- - -CREATE TABLE `bb_posts_text` ( - `post_id` int(10) unsigned NOT NULL default '0', - `post_text` text, - `post_edit` text, - PRIMARY KEY (`post_id`), - FULLTEXT KEY `search` (`post_text`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_reads_forum` --- - -CREATE TABLE `bb_reads_forum` ( - `read_id` int(10) unsigned NOT NULL auto_increment, - `uid` int(10) unsigned NOT NULL default '0', - `read_time` int(10) unsigned NOT NULL default '0', - `read_item` smallint(4) unsigned NOT NULL default '0', - `post_id` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`read_id`), - KEY `uid` (`uid`), - KEY `read_item` (`read_item`), - KEY `post_id` (`post_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_reads_topic` --- - -CREATE TABLE `bb_reads_topic` ( - `read_id` int(10) unsigned NOT NULL auto_increment, - `uid` int(10) unsigned NOT NULL default '0', - `read_time` int(10) unsigned NOT NULL default '0', - `read_item` int(8) unsigned NOT NULL default '0', - `post_id` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`read_id`), - KEY `uid` (`uid`), - KEY `read_item` (`read_item`), - KEY `post_id` (`post_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_report` --- - -CREATE TABLE `bb_report` ( - `report_id` int(8) unsigned NOT NULL auto_increment, - `post_id` int(10) unsigned NOT NULL default '0', - `reporter_uid` int(10) unsigned NOT NULL default '0', - `reporter_ip` int(11) NOT NULL default '0', - `report_time` int(10) unsigned NOT NULL default '0', - `report_text` varchar(255) NOT NULL default '', - `report_result` tinyint(1) unsigned NOT NULL default '0', - `report_memo` varchar(255) NOT NULL default '', - PRIMARY KEY (`report_id`), - KEY `post_id` (`post_id`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_topics` --- - -CREATE TABLE `bb_topics` ( - `topic_id` int(8) unsigned NOT NULL auto_increment, - `topic_title` varchar(255) NOT NULL default '', - `topic_poster` int(10) unsigned NOT NULL default '0', - `topic_time` int(10) unsigned NOT NULL default '0', - `topic_views` int(10) unsigned NOT NULL default '0', - `topic_replies` mediumint(8) unsigned NOT NULL default '0', - `topic_last_post_id` int(8) unsigned NOT NULL default '0', - `forum_id` smallint(4) unsigned NOT NULL default '0', - `topic_status` tinyint(1) unsigned NOT NULL default '0', - `topic_subject` smallint(3) unsigned NOT NULL default '0', - `topic_sticky` tinyint(1) unsigned NOT NULL default '0', - `topic_digest` tinyint(1) unsigned NOT NULL default '0', - `digest_time` int(10) unsigned NOT NULL default '0', - `approved` tinyint(2) NOT NULL default '1', - `poster_name` varchar(255) NOT NULL default '', - `rating` double(6,4) NOT NULL default '0.0000', - `votes` int(11) unsigned NOT NULL default '0', - `topic_haspoll` tinyint(1) unsigned NOT NULL default '0', - `poll_id` mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (`topic_id`), - KEY `forum_id` (`forum_id`), - KEY `topic_last_post_id` (`topic_last_post_id`), - KEY `topic_poster` (`topic_poster`), - KEY `topic_forum` (`topic_id`,`forum_id`), - KEY `topic_sticky` (`topic_sticky`), - KEY `topic_digest` (`topic_digest`), - KEY `digest_time` (`digest_time`) -) TYPE=MyISAM; - --- -------------------------------------------------------- - --- --- Table structure for table `bb_votedata` --- - -CREATE TABLE `bb_votedata` ( - `ratingid` int(11) unsigned NOT NULL auto_increment, - `topic_id` int(8) unsigned NOT NULL default '0', - `ratinguser` int(10) unsigned NOT NULL default '0', - `rating` tinyint(3) unsigned NOT NULL default '0', - `ratinghostname` varchar(60) NOT NULL default '', - `ratingtimestamp` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`ratingid`), - KEY `ratinguser` (`ratinguser`), - KEY `ratinghostname` (`ratinghostname`), - KEY `topic_id` (`topic_id`) -) TYPE=MyISAM; diff --git a/Automation/Php/Newbb2Phpbb/schemas/phpBB3_mysql_41_schema.sql b/Automation/Php/Newbb2Phpbb/schemas/phpBB3_mysql_41_schema.sql deleted file mode 100755 index ad25ef5..0000000 --- a/Automation/Php/Newbb2Phpbb/schemas/phpBB3_mysql_41_schema.sql +++ /dev/null @@ -1,1003 +0,0 @@ -# -# $Id: mysql_41_schema.sql 9129 2008-11-27 13:44:24Z acydburn $ -# - -# Table: 'phpbb_attachments' -CREATE TABLE phpbb_attachments ( - attach_id mediumint(8) UNSIGNED NOT NULL auto_increment, - post_msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - in_message tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - is_orphan tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - physical_filename varchar(255) DEFAULT '' NOT NULL, - real_filename varchar(255) DEFAULT '' NOT NULL, - download_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - attach_comment text NOT NULL, - extension varchar(100) DEFAULT '' NOT NULL, - mimetype varchar(100) DEFAULT '' NOT NULL, - filesize int(20) UNSIGNED DEFAULT '0' NOT NULL, - filetime int(11) UNSIGNED DEFAULT '0' NOT NULL, - thumbnail tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (attach_id), - KEY filetime (filetime), - KEY post_msg_id (post_msg_id), - KEY topic_id (topic_id), - KEY poster_id (poster_id), - KEY is_orphan (is_orphan) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_acl_groups' -CREATE TABLE phpbb_acl_groups ( - group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_setting tinyint(2) DEFAULT '0' NOT NULL, - KEY group_id (group_id), - KEY auth_opt_id (auth_option_id), - KEY auth_role_id (auth_role_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_acl_options' -CREATE TABLE phpbb_acl_options ( - auth_option_id mediumint(8) UNSIGNED NOT NULL auto_increment, - auth_option varchar(50) DEFAULT '' NOT NULL, - is_global tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - is_local tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - founder_only tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (auth_option_id), - KEY auth_option (auth_option) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_acl_roles' -CREATE TABLE phpbb_acl_roles ( - role_id mediumint(8) UNSIGNED NOT NULL auto_increment, - role_name varchar(255) DEFAULT '' NOT NULL, - role_description text NOT NULL, - role_type varchar(10) DEFAULT '' NOT NULL, - role_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (role_id), - KEY role_type (role_type), - KEY role_order (role_order) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_acl_roles_data' -CREATE TABLE phpbb_acl_roles_data ( - role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_setting tinyint(2) DEFAULT '0' NOT NULL, - PRIMARY KEY (role_id, auth_option_id), - KEY ath_op_id (auth_option_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_acl_users' -CREATE TABLE phpbb_acl_users ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_role_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - auth_setting tinyint(2) DEFAULT '0' NOT NULL, - KEY user_id (user_id), - KEY auth_option_id (auth_option_id), - KEY auth_role_id (auth_role_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_banlist' -CREATE TABLE phpbb_banlist ( - ban_id mediumint(8) UNSIGNED NOT NULL auto_increment, - ban_userid mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - ban_ip varchar(40) DEFAULT '' NOT NULL, - ban_email varchar(100) DEFAULT '' NOT NULL, - ban_start int(11) UNSIGNED DEFAULT '0' NOT NULL, - ban_end int(11) UNSIGNED DEFAULT '0' NOT NULL, - ban_exclude tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - ban_reason varchar(255) DEFAULT '' NOT NULL, - ban_give_reason varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (ban_id), - KEY ban_end (ban_end), - KEY ban_user (ban_userid, ban_exclude), - KEY ban_email (ban_email, ban_exclude), - KEY ban_ip (ban_ip, ban_exclude) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_bbcodes' -CREATE TABLE phpbb_bbcodes ( - bbcode_id tinyint(3) DEFAULT '0' NOT NULL, - bbcode_tag varchar(16) DEFAULT '' NOT NULL, - bbcode_helpline varchar(255) DEFAULT '' NOT NULL, - display_on_posting tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - bbcode_match text NOT NULL, - bbcode_tpl mediumtext NOT NULL, - first_pass_match mediumtext NOT NULL, - first_pass_replace mediumtext NOT NULL, - second_pass_match mediumtext NOT NULL, - second_pass_replace mediumtext NOT NULL, - PRIMARY KEY (bbcode_id), - KEY display_on_post (display_on_posting) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_bookmarks' -CREATE TABLE phpbb_bookmarks ( - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (topic_id, user_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_bots' -CREATE TABLE phpbb_bots ( - bot_id mediumint(8) UNSIGNED NOT NULL auto_increment, - bot_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - bot_name varchar(255) DEFAULT '' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - bot_agent varchar(255) DEFAULT '' NOT NULL, - bot_ip varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (bot_id), - KEY bot_active (bot_active) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_config' -CREATE TABLE phpbb_config ( - config_name varchar(255) DEFAULT '' NOT NULL, - config_value varchar(255) DEFAULT '' NOT NULL, - is_dynamic tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (config_name), - KEY is_dynamic (is_dynamic) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_confirm' -CREATE TABLE phpbb_confirm ( - confirm_id char(32) DEFAULT '' NOT NULL, - session_id char(32) DEFAULT '' NOT NULL, - confirm_type tinyint(3) DEFAULT '0' NOT NULL, - code varchar(8) DEFAULT '' NOT NULL, - seed int(10) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (session_id, confirm_id), - KEY confirm_type (confirm_type) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_disallow' -CREATE TABLE phpbb_disallow ( - disallow_id mediumint(8) UNSIGNED NOT NULL auto_increment, - disallow_username varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (disallow_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_drafts' -CREATE TABLE phpbb_drafts ( - draft_id mediumint(8) UNSIGNED NOT NULL auto_increment, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - save_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - draft_subject varchar(255) DEFAULT '' NOT NULL, - draft_message mediumtext NOT NULL, - PRIMARY KEY (draft_id), - KEY save_time (save_time) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_extensions' -CREATE TABLE phpbb_extensions ( - extension_id mediumint(8) UNSIGNED NOT NULL auto_increment, - group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - extension varchar(100) DEFAULT '' NOT NULL, - PRIMARY KEY (extension_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_extension_groups' -CREATE TABLE phpbb_extension_groups ( - group_id mediumint(8) UNSIGNED NOT NULL auto_increment, - group_name varchar(255) DEFAULT '' NOT NULL, - cat_id tinyint(2) DEFAULT '0' NOT NULL, - allow_group tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - download_mode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - upload_icon varchar(255) DEFAULT '' NOT NULL, - max_filesize int(20) UNSIGNED DEFAULT '0' NOT NULL, - allowed_forums text NOT NULL, - allow_in_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (group_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_forums' -CREATE TABLE phpbb_forums ( - forum_id mediumint(8) UNSIGNED NOT NULL auto_increment, - parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - left_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - right_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_parents mediumtext NOT NULL, - forum_name varchar(255) DEFAULT '' NOT NULL, - forum_desc text NOT NULL, - forum_desc_bitfield varchar(255) DEFAULT '' NOT NULL, - forum_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL, - forum_desc_uid varchar(8) DEFAULT '' NOT NULL, - forum_link varchar(255) DEFAULT '' NOT NULL, - forum_password varchar(40) DEFAULT '' NOT NULL, - forum_style mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_image varchar(255) DEFAULT '' NOT NULL, - forum_rules text NOT NULL, - forum_rules_link varchar(255) DEFAULT '' NOT NULL, - forum_rules_bitfield varchar(255) DEFAULT '' NOT NULL, - forum_rules_options int(11) UNSIGNED DEFAULT '7' NOT NULL, - forum_rules_uid varchar(8) DEFAULT '' NOT NULL, - forum_topics_per_page tinyint(4) DEFAULT '0' NOT NULL, - forum_type tinyint(4) DEFAULT '0' NOT NULL, - forum_status tinyint(4) DEFAULT '0' NOT NULL, - forum_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_topics mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_topics_real mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_last_post_subject varchar(255) DEFAULT '' NOT NULL, - forum_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - forum_last_poster_name varchar(255) DEFAULT '' NOT NULL, - forum_last_poster_colour varchar(6) DEFAULT '' NOT NULL, - forum_flags tinyint(4) DEFAULT '32' NOT NULL, - display_subforum_list tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_indexing tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_icons tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_prune tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - prune_next int(11) UNSIGNED DEFAULT '0' NOT NULL, - prune_days mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - prune_viewed mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - prune_freq mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (forum_id), - KEY left_right_id (left_id, right_id), - KEY forum_lastpost_id (forum_last_post_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_forums_access' -CREATE TABLE phpbb_forums_access ( - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - session_id char(32) DEFAULT '' NOT NULL, - PRIMARY KEY (forum_id, user_id, session_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_forums_track' -CREATE TABLE phpbb_forums_track ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (user_id, forum_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_forums_watch' -CREATE TABLE phpbb_forums_watch ( - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - KEY forum_id (forum_id), - KEY user_id (user_id), - KEY notify_stat (notify_status) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_groups' -CREATE TABLE phpbb_groups ( - group_id mediumint(8) UNSIGNED NOT NULL auto_increment, - group_type tinyint(4) DEFAULT '1' NOT NULL, - group_founder_manage tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - group_name varchar(255) DEFAULT '' NOT NULL, - group_desc text NOT NULL, - group_desc_bitfield varchar(255) DEFAULT '' NOT NULL, - group_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL, - group_desc_uid varchar(8) DEFAULT '' NOT NULL, - group_display tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - group_avatar varchar(255) DEFAULT '' NOT NULL, - group_avatar_type tinyint(2) DEFAULT '0' NOT NULL, - group_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - group_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - group_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_colour varchar(6) DEFAULT '' NOT NULL, - group_sig_chars mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_receive_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - group_message_limit mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_max_recipients mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_legend tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - PRIMARY KEY (group_id), - KEY group_legend_name (group_legend, group_name) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_icons' -CREATE TABLE phpbb_icons ( - icons_id mediumint(8) UNSIGNED NOT NULL auto_increment, - icons_url varchar(255) DEFAULT '' NOT NULL, - icons_width tinyint(4) DEFAULT '0' NOT NULL, - icons_height tinyint(4) DEFAULT '0' NOT NULL, - icons_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - PRIMARY KEY (icons_id), - KEY display_on_posting (display_on_posting) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_lang' -CREATE TABLE phpbb_lang ( - lang_id tinyint(4) NOT NULL auto_increment, - lang_iso varchar(30) DEFAULT '' NOT NULL, - lang_dir varchar(30) DEFAULT '' NOT NULL, - lang_english_name varchar(100) DEFAULT '' NOT NULL, - lang_local_name varchar(255) DEFAULT '' NOT NULL, - lang_author varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (lang_id), - KEY lang_iso (lang_iso) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_log' -CREATE TABLE phpbb_log ( - log_id mediumint(8) UNSIGNED NOT NULL auto_increment, - log_type tinyint(4) DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - reportee_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - log_ip varchar(40) DEFAULT '' NOT NULL, - log_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - log_operation text NOT NULL, - log_data mediumtext NOT NULL, - PRIMARY KEY (log_id), - KEY log_type (log_type), - KEY forum_id (forum_id), - KEY topic_id (topic_id), - KEY reportee_id (reportee_id), - KEY user_id (user_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_moderator_cache' -CREATE TABLE phpbb_moderator_cache ( - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - username varchar(255) DEFAULT '' NOT NULL, - group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_name varchar(255) DEFAULT '' NOT NULL, - display_on_index tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - KEY disp_idx (display_on_index), - KEY forum_id (forum_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_modules' -CREATE TABLE phpbb_modules ( - module_id mediumint(8) UNSIGNED NOT NULL auto_increment, - module_enabled tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - module_display tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - module_basename varchar(255) DEFAULT '' NOT NULL, - module_class varchar(10) DEFAULT '' NOT NULL, - parent_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - left_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - right_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - module_langname varchar(255) DEFAULT '' NOT NULL, - module_mode varchar(255) DEFAULT '' NOT NULL, - module_auth varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (module_id), - KEY left_right_id (left_id, right_id), - KEY module_enabled (module_enabled), - KEY class_left_id (module_class, left_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_poll_options' -CREATE TABLE phpbb_poll_options ( - poll_option_id tinyint(4) DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - poll_option_text text NOT NULL, - poll_option_total mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - KEY poll_opt_id (poll_option_id), - KEY topic_id (topic_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_poll_votes' -CREATE TABLE phpbb_poll_votes ( - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - poll_option_id tinyint(4) DEFAULT '0' NOT NULL, - vote_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - vote_user_ip varchar(40) DEFAULT '' NOT NULL, - KEY topic_id (topic_id), - KEY vote_user_id (vote_user_id), - KEY vote_user_ip (vote_user_ip) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_posts' -CREATE TABLE phpbb_posts ( - post_id mediumint(8) UNSIGNED NOT NULL auto_increment, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - poster_ip varchar(40) DEFAULT '' NOT NULL, - post_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - post_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - post_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - post_username varchar(255) DEFAULT '' NOT NULL, - post_subject varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci, - post_text mediumtext NOT NULL, - post_checksum varchar(32) DEFAULT '' NOT NULL, - post_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, - bbcode_uid varchar(8) DEFAULT '' NOT NULL, - post_postcount tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - post_edit_reason varchar(255) DEFAULT '' NOT NULL, - post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - post_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (post_id), - KEY forum_id (forum_id), - KEY topic_id (topic_id), - KEY poster_ip (poster_ip), - KEY poster_id (poster_id), - KEY post_approved (post_approved), - KEY tid_post_time (topic_id, post_time) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_privmsgs' -CREATE TABLE phpbb_privmsgs ( - msg_id mediumint(8) UNSIGNED NOT NULL auto_increment, - root_level mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - author_ip varchar(40) DEFAULT '' NOT NULL, - message_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - message_subject varchar(255) DEFAULT '' NOT NULL, - message_text mediumtext NOT NULL, - message_edit_reason varchar(255) DEFAULT '' NOT NULL, - message_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - message_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, - bbcode_uid varchar(8) DEFAULT '' NOT NULL, - message_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - message_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - to_address text NOT NULL, - bcc_address text NOT NULL, - PRIMARY KEY (msg_id), - KEY author_ip (author_ip), - KEY message_time (message_time), - KEY author_id (author_id), - KEY root_level (root_level) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_privmsgs_folder' -CREATE TABLE phpbb_privmsgs_folder ( - folder_id mediumint(8) UNSIGNED NOT NULL auto_increment, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - folder_name varchar(255) DEFAULT '' NOT NULL, - pm_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (folder_id), - KEY user_id (user_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_privmsgs_rules' -CREATE TABLE phpbb_privmsgs_rules ( - rule_id mediumint(8) UNSIGNED NOT NULL auto_increment, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_check mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_connection mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_string varchar(255) DEFAULT '' NOT NULL, - rule_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_action mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rule_folder_id int(11) DEFAULT '0' NOT NULL, - PRIMARY KEY (rule_id), - KEY user_id (user_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_privmsgs_to' -CREATE TABLE phpbb_privmsgs_to ( - msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - author_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - pm_deleted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - pm_new tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - pm_unread tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - pm_replied tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - pm_marked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - pm_forwarded tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - folder_id int(11) DEFAULT '0' NOT NULL, - KEY msg_id (msg_id), - KEY author_id (author_id), - KEY usr_flder_id (user_id, folder_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_profile_fields' -CREATE TABLE phpbb_profile_fields ( - field_id mediumint(8) UNSIGNED NOT NULL auto_increment, - field_name varchar(255) DEFAULT '' NOT NULL, - field_type tinyint(4) DEFAULT '0' NOT NULL, - field_ident varchar(20) DEFAULT '' NOT NULL, - field_length varchar(20) DEFAULT '' NOT NULL, - field_minlen varchar(255) DEFAULT '' NOT NULL, - field_maxlen varchar(255) DEFAULT '' NOT NULL, - field_novalue varchar(255) DEFAULT '' NOT NULL, - field_default_value varchar(255) DEFAULT '' NOT NULL, - field_validation varchar(20) DEFAULT '' NOT NULL, - field_required tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_show_on_reg tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_show_profile tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_hide tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_no_view tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_active tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - field_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (field_id), - KEY fld_type (field_type), - KEY fld_ordr (field_order) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_profile_fields_data' -CREATE TABLE phpbb_profile_fields_data ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (user_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_profile_fields_lang' -CREATE TABLE phpbb_profile_fields_lang ( - field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - lang_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - option_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - field_type tinyint(4) DEFAULT '0' NOT NULL, - lang_value varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (field_id, lang_id, option_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_profile_lang' -CREATE TABLE phpbb_profile_lang ( - field_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - lang_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - lang_name varchar(255) DEFAULT '' NOT NULL, - lang_explain text NOT NULL, - lang_default_value varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (field_id, lang_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_ranks' -CREATE TABLE phpbb_ranks ( - rank_id mediumint(8) UNSIGNED NOT NULL auto_increment, - rank_title varchar(255) DEFAULT '' NOT NULL, - rank_min mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - rank_special tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - rank_image varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (rank_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_reports' -CREATE TABLE phpbb_reports ( - report_id mediumint(8) UNSIGNED NOT NULL auto_increment, - reason_id smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - report_closed tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - report_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - report_text mediumtext NOT NULL, - PRIMARY KEY (report_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_reports_reasons' -CREATE TABLE phpbb_reports_reasons ( - reason_id smallint(4) UNSIGNED NOT NULL auto_increment, - reason_title varchar(255) DEFAULT '' NOT NULL, - reason_description mediumtext NOT NULL, - reason_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (reason_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_search_results' -CREATE TABLE phpbb_search_results ( - search_key varchar(32) DEFAULT '' NOT NULL, - search_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - search_keywords mediumtext NOT NULL, - search_authors mediumtext NOT NULL, - PRIMARY KEY (search_key) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_search_wordlist' -CREATE TABLE phpbb_search_wordlist ( - word_id mediumint(8) UNSIGNED NOT NULL auto_increment, - word_text varchar(255) DEFAULT '' NOT NULL, - word_common tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - word_count mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (word_id), - UNIQUE wrd_txt (word_text), - KEY wrd_cnt (word_count) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_search_wordmatch' -CREATE TABLE phpbb_search_wordmatch ( - post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - word_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - title_match tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - UNIQUE unq_mtch (word_id, post_id, title_match), - KEY word_id (word_id), - KEY post_id (post_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_sessions' -CREATE TABLE phpbb_sessions ( - session_id char(32) DEFAULT '' NOT NULL, - session_user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - session_forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - session_last_visit int(11) UNSIGNED DEFAULT '0' NOT NULL, - session_start int(11) UNSIGNED DEFAULT '0' NOT NULL, - session_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - session_ip varchar(40) DEFAULT '' NOT NULL, - session_browser varchar(150) DEFAULT '' NOT NULL, - session_forwarded_for varchar(255) DEFAULT '' NOT NULL, - session_page varchar(255) DEFAULT '' NOT NULL, - session_viewonline tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - session_autologin tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - session_admin tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (session_id), - KEY session_time (session_time), - KEY session_user_id (session_user_id), - KEY session_fid (session_forum_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_sessions_keys' -CREATE TABLE phpbb_sessions_keys ( - key_id char(32) DEFAULT '' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - last_ip varchar(40) DEFAULT '' NOT NULL, - last_login int(11) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (key_id, user_id), - KEY last_login (last_login) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_sitelist' -CREATE TABLE phpbb_sitelist ( - site_id mediumint(8) UNSIGNED NOT NULL auto_increment, - site_ip varchar(40) DEFAULT '' NOT NULL, - site_hostname varchar(255) DEFAULT '' NOT NULL, - ip_exclude tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (site_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_smilies' -CREATE TABLE phpbb_smilies ( - smiley_id mediumint(8) UNSIGNED NOT NULL auto_increment, - code varchar(50) DEFAULT '' NOT NULL, - emotion varchar(50) DEFAULT '' NOT NULL, - smiley_url varchar(50) DEFAULT '' NOT NULL, - smiley_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - smiley_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - smiley_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - PRIMARY KEY (smiley_id), - KEY display_on_post (display_on_posting) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles' -CREATE TABLE phpbb_styles ( - style_id mediumint(8) UNSIGNED NOT NULL auto_increment, - style_name varchar(255) DEFAULT '' NOT NULL, - style_copyright varchar(255) DEFAULT '' NOT NULL, - style_active tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - theme_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (style_id), - UNIQUE style_name (style_name), - KEY template_id (template_id), - KEY theme_id (theme_id), - KEY imageset_id (imageset_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles_template' -CREATE TABLE phpbb_styles_template ( - template_id mediumint(8) UNSIGNED NOT NULL auto_increment, - template_name varchar(255) DEFAULT '' NOT NULL, - template_copyright varchar(255) DEFAULT '' NOT NULL, - template_path varchar(100) DEFAULT '' NOT NULL, - bbcode_bitfield varchar(255) DEFAULT 'kNg=' NOT NULL, - template_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - template_inherits_id int(4) UNSIGNED DEFAULT '0' NOT NULL, - template_inherit_path varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (template_id), - UNIQUE tmplte_nm (template_name) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles_template_data' -CREATE TABLE phpbb_styles_template_data ( - template_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - template_filename varchar(100) DEFAULT '' NOT NULL, - template_included text NOT NULL, - template_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL, - template_data mediumtext NOT NULL, - KEY tid (template_id), - KEY tfn (template_filename) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles_theme' -CREATE TABLE phpbb_styles_theme ( - theme_id mediumint(8) UNSIGNED NOT NULL auto_increment, - theme_name varchar(255) DEFAULT '' NOT NULL, - theme_copyright varchar(255) DEFAULT '' NOT NULL, - theme_path varchar(100) DEFAULT '' NOT NULL, - theme_storedb tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - theme_mtime int(11) UNSIGNED DEFAULT '0' NOT NULL, - theme_data mediumtext NOT NULL, - PRIMARY KEY (theme_id), - UNIQUE theme_name (theme_name) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles_imageset' -CREATE TABLE phpbb_styles_imageset ( - imageset_id mediumint(8) UNSIGNED NOT NULL auto_increment, - imageset_name varchar(255) DEFAULT '' NOT NULL, - imageset_copyright varchar(255) DEFAULT '' NOT NULL, - imageset_path varchar(100) DEFAULT '' NOT NULL, - PRIMARY KEY (imageset_id), - UNIQUE imgset_nm (imageset_name) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_styles_imageset_data' -CREATE TABLE phpbb_styles_imageset_data ( - image_id mediumint(8) UNSIGNED NOT NULL auto_increment, - image_name varchar(200) DEFAULT '' NOT NULL, - image_filename varchar(200) DEFAULT '' NOT NULL, - image_lang varchar(30) DEFAULT '' NOT NULL, - image_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - image_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - imageset_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (image_id), - KEY i_d (imageset_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_topics' -CREATE TABLE phpbb_topics ( - topic_id mediumint(8) UNSIGNED NOT NULL auto_increment, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - topic_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - topic_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - topic_title varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci, - topic_poster mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - topic_time_limit int(11) UNSIGNED DEFAULT '0' NOT NULL, - topic_views mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_replies mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_replies_real mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_status tinyint(3) DEFAULT '0' NOT NULL, - topic_type tinyint(3) DEFAULT '0' NOT NULL, - topic_first_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_first_poster_name varchar(255) DEFAULT '' NOT NULL, - topic_first_poster_colour varchar(6) DEFAULT '' NOT NULL, - topic_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_last_poster_name varchar(255) DEFAULT '' NOT NULL, - topic_last_poster_colour varchar(6) DEFAULT '' NOT NULL, - topic_last_post_subject varchar(255) DEFAULT '' NOT NULL, - topic_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - topic_last_view_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_bumped tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - topic_bumper mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - poll_title varchar(255) DEFAULT '' NOT NULL, - poll_start int(11) UNSIGNED DEFAULT '0' NOT NULL, - poll_length int(11) UNSIGNED DEFAULT '0' NOT NULL, - poll_max_options tinyint(4) DEFAULT '1' NOT NULL, - poll_last_vote int(11) UNSIGNED DEFAULT '0' NOT NULL, - poll_vote_change tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (topic_id), - KEY forum_id (forum_id), - KEY forum_id_type (forum_id, topic_type), - KEY last_post_time (topic_last_post_time), - KEY topic_approved (topic_approved), - KEY forum_appr_last (forum_id, topic_approved, topic_last_post_id), - KEY fid_time_moved (forum_id, topic_last_post_time, topic_moved_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_topics_track' -CREATE TABLE phpbb_topics_track ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - mark_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (user_id, topic_id), - KEY forum_id (forum_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_topics_posted' -CREATE TABLE phpbb_topics_posted ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - topic_posted tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (user_id, topic_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_topics_watch' -CREATE TABLE phpbb_topics_watch ( - topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - notify_status tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - KEY topic_id (topic_id), - KEY user_id (user_id), - KEY notify_stat (notify_status) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_user_group' -CREATE TABLE phpbb_user_group ( - group_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - group_leader tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - user_pending tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - KEY group_id (group_id), - KEY user_id (user_id), - KEY group_leader (group_leader) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_users' -CREATE TABLE phpbb_users ( - user_id mediumint(8) UNSIGNED NOT NULL auto_increment, - user_type tinyint(2) DEFAULT '0' NOT NULL, - group_id mediumint(8) UNSIGNED DEFAULT '3' NOT NULL, - user_permissions mediumtext NOT NULL, - user_perm_from mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_ip varchar(40) DEFAULT '' NOT NULL, - user_regdate int(11) UNSIGNED DEFAULT '0' NOT NULL, - username varchar(255) DEFAULT '' NOT NULL, - username_clean varchar(255) DEFAULT '' NOT NULL, - user_password varchar(40) DEFAULT '' NOT NULL, - user_passchg int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_pass_convert tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - user_email varchar(100) DEFAULT '' NOT NULL, - user_email_hash bigint(20) DEFAULT '0' NOT NULL, - user_birthday varchar(10) DEFAULT '' NOT NULL, - user_lastvisit int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_lastmark int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_lastpost_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_lastpage varchar(200) DEFAULT '' NOT NULL, - user_last_confirm_key varchar(10) DEFAULT '' NOT NULL, - user_last_search int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_warnings tinyint(4) DEFAULT '0' NOT NULL, - user_last_warning int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_login_attempts tinyint(4) DEFAULT '0' NOT NULL, - user_inactive_reason tinyint(2) DEFAULT '0' NOT NULL, - user_inactive_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_lang varchar(30) DEFAULT '' NOT NULL, - user_timezone decimal(5,2) DEFAULT '0' NOT NULL, - user_dst tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - user_dateformat varchar(30) DEFAULT 'd M Y H:i' NOT NULL, - user_style mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - user_colour varchar(6) DEFAULT '' NOT NULL, - user_new_privmsg int(4) DEFAULT '0' NOT NULL, - user_unread_privmsg int(4) DEFAULT '0' NOT NULL, - user_last_privmsg int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_message_rules tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - user_full_folder int(11) DEFAULT '-3' NOT NULL, - user_emailtime int(11) UNSIGNED DEFAULT '0' NOT NULL, - user_topic_show_days smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - user_topic_sortby_type varchar(1) DEFAULT 't' NOT NULL, - user_topic_sortby_dir varchar(1) DEFAULT 'd' NOT NULL, - user_post_show_days smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - user_post_sortby_type varchar(1) DEFAULT 't' NOT NULL, - user_post_sortby_dir varchar(1) DEFAULT 'a' NOT NULL, - user_notify tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - user_notify_pm tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - user_notify_type tinyint(4) DEFAULT '0' NOT NULL, - user_allow_pm tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - user_allow_viewonline tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - user_allow_viewemail tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - user_allow_massemail tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - user_options int(11) UNSIGNED DEFAULT '895' NOT NULL, - user_avatar varchar(255) DEFAULT '' NOT NULL, - user_avatar_type tinyint(2) DEFAULT '0' NOT NULL, - user_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - user_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, - user_sig mediumtext NOT NULL, - user_sig_bbcode_uid varchar(8) DEFAULT '' NOT NULL, - user_sig_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, - user_from varchar(100) DEFAULT '' NOT NULL, - user_icq varchar(15) DEFAULT '' NOT NULL, - user_aim varchar(255) DEFAULT '' NOT NULL, - user_yim varchar(255) DEFAULT '' NOT NULL, - user_msnm varchar(255) DEFAULT '' NOT NULL, - user_jabber varchar(255) DEFAULT '' NOT NULL, - user_website varchar(200) DEFAULT '' NOT NULL, - user_occ text NOT NULL, - user_interests text NOT NULL, - user_actkey varchar(32) DEFAULT '' NOT NULL, - user_newpasswd varchar(40) DEFAULT '' NOT NULL, - user_form_salt varchar(32) DEFAULT '' NOT NULL, - PRIMARY KEY (user_id), - KEY user_birthday (user_birthday), - KEY user_email_hash (user_email_hash), - KEY user_type (user_type), - UNIQUE username_clean (username_clean) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_warnings' -CREATE TABLE phpbb_warnings ( - warning_id mediumint(8) UNSIGNED NOT NULL auto_increment, - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - log_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - warning_time int(11) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (warning_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_words' -CREATE TABLE phpbb_words ( - word_id mediumint(8) UNSIGNED NOT NULL auto_increment, - word varchar(255) DEFAULT '' NOT NULL, - replacement varchar(255) DEFAULT '' NOT NULL, - PRIMARY KEY (word_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - -# Table: 'phpbb_zebra' -CREATE TABLE phpbb_zebra ( - user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - zebra_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL, - friend tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - foe tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, - PRIMARY KEY (user_id, zebra_id) -) CHARACTER SET `utf8` COLLATE `utf8_bin`; - - diff --git a/Automation/Php/Newbb2Phpbb/schemas/xoops_mysql_schema.sql b/Automation/Php/Newbb2Phpbb/schemas/xoops_mysql_schema.sql deleted file mode 100755 index ae6b895..0000000 --- a/Automation/Php/Newbb2Phpbb/schemas/xoops_mysql_schema.sql +++ /dev/null @@ -1,570 +0,0 @@ -# -# Table structure for table `avatar` -# - -CREATE TABLE avatar ( - avatar_id mediumint(8) unsigned NOT NULL auto_increment, - avatar_file varchar(30) NOT NULL default '', - avatar_name varchar(100) NOT NULL default '', - avatar_mimetype varchar(30) NOT NULL default '', - avatar_created int(10) NOT NULL default '0', - avatar_display tinyint(1) unsigned NOT NULL default '0', - avatar_weight smallint(5) unsigned NOT NULL default '0', - avatar_type char(1) NOT NULL default '', - PRIMARY KEY (avatar_id), - KEY avatar_type (avatar_type, avatar_display) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `avatar_user_link` -# - -CREATE TABLE avatar_user_link ( - avatar_id mediumint(8) unsigned NOT NULL default '0', - user_id mediumint(8) unsigned NOT NULL default '0', - KEY avatar_user_id (avatar_id,user_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `banner` -# - -CREATE TABLE banner ( - bid smallint(5) unsigned NOT NULL auto_increment, - cid tinyint(3) unsigned NOT NULL default '0', - imptotal mediumint(8) unsigned NOT NULL default '0', - impmade mediumint(8) unsigned NOT NULL default '0', - clicks mediumint(8) unsigned NOT NULL default '0', - imageurl varchar(255) NOT NULL default '', - clickurl varchar(255) NOT NULL default '', - date int(10) NOT NULL default '0', - htmlbanner tinyint(1) NOT NULL default '0', - htmlcode text, - PRIMARY KEY (bid), - KEY idxbannercid (cid), - KEY idxbannerbidcid (bid,cid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `bannerclient` -# - -CREATE TABLE bannerclient ( - cid smallint(5) unsigned NOT NULL auto_increment, - name varchar(60) NOT NULL default '', - contact varchar(60) NOT NULL default '', - email varchar(60) NOT NULL default '', - login varchar(10) NOT NULL default '', - passwd varchar(10) NOT NULL default '', - extrainfo text, - PRIMARY KEY (cid), - KEY login (login) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `bannerfinish` -# - -CREATE TABLE bannerfinish ( - bid smallint(5) unsigned NOT NULL auto_increment, - cid smallint(5) unsigned NOT NULL default '0', - impressions mediumint(8) unsigned NOT NULL default '0', - clicks mediumint(8) unsigned NOT NULL default '0', - datestart int(10) unsigned NOT NULL default '0', - dateend int(10) unsigned NOT NULL default '0', - PRIMARY KEY (bid), - KEY cid (cid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `block_module_link` -# - -CREATE TABLE block_module_link ( - block_id mediumint(8) unsigned NOT NULL default '0', - module_id smallint(5) NOT NULL default '0', - PRIMARY KEY (`module_id`, `block_id`) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `comments` -# - -CREATE TABLE xoopscomments ( - com_id mediumint(8) unsigned NOT NULL auto_increment, - com_pid mediumint(8) unsigned NOT NULL default '0', - com_rootid mediumint(8) unsigned NOT NULL default '0', - com_modid smallint(5) unsigned NOT NULL default '0', - com_itemid mediumint(8) unsigned NOT NULL default '0', - com_icon varchar(25) NOT NULL default '', - com_created int(10) unsigned NOT NULL default '0', - com_modified int(10) unsigned NOT NULL default '0', - com_uid mediumint(8) unsigned NOT NULL default '0', - com_ip varchar(15) NOT NULL default '', - com_title varchar(255) NOT NULL default '', - com_text text, - com_sig tinyint(1) unsigned NOT NULL default '0', - com_status tinyint(1) unsigned NOT NULL default '0', - com_exparams varchar(255) NOT NULL default '', - dohtml tinyint(1) unsigned NOT NULL default '0', - dosmiley tinyint(1) unsigned NOT NULL default '0', - doxcode tinyint(1) unsigned NOT NULL default '0', - doimage tinyint(1) unsigned NOT NULL default '0', - dobr tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (com_id), - KEY com_pid (com_pid), - KEY com_itemid (com_itemid), - KEY com_uid (com_uid), - KEY com_title (com_title(40)) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# RMV-NOTIFY -# Table structure for table `notifications` -# - -CREATE TABLE xoopsnotifications ( - not_id mediumint(8) unsigned NOT NULL auto_increment, - not_modid smallint(5) unsigned NOT NULL default '0', - not_itemid mediumint(8) unsigned NOT NULL default '0', - not_category varchar(30) NOT NULL default '', - not_event varchar(30) NOT NULL default '', - not_uid mediumint(8) unsigned NOT NULL default '0', - not_mode tinyint(1) NOT NULL default 0, - PRIMARY KEY (not_id), - KEY not_modid (not_modid), - KEY not_itemid (not_itemid), - KEY not_class (not_category), - KEY not_uid (not_uid), - KEY not_event (not_event) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `config` -# - -CREATE TABLE config ( - conf_id smallint(5) unsigned NOT NULL auto_increment, - conf_modid smallint(5) unsigned NOT NULL default '0', - conf_catid smallint(5) unsigned NOT NULL default '0', - conf_name varchar(25) NOT NULL default '', - conf_title varchar(255) NOT NULL default '', - conf_value text, - conf_desc varchar(255) NOT NULL default '', - conf_formtype varchar(15) NOT NULL default '', - conf_valuetype varchar(10) NOT NULL default '', - conf_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (conf_id), - KEY conf_mod_cat_id (conf_modid, conf_catid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configcategory` -# - -CREATE TABLE configcategory ( - confcat_id smallint(5) unsigned NOT NULL auto_increment, - confcat_name varchar(255) NOT NULL default '', - confcat_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confcat_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configoption` -# - -CREATE TABLE configoption ( - confop_id mediumint(8) unsigned NOT NULL auto_increment, - confop_name varchar(255) NOT NULL default '', - confop_value varchar(255) NOT NULL default '', - conf_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confop_id), - KEY conf_id (conf_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `groups` -# - -CREATE TABLE groups ( - groupid smallint(5) unsigned NOT NULL auto_increment, - name varchar(50) NOT NULL default '', - description text, - group_type varchar(10) NOT NULL default '', - PRIMARY KEY (groupid), - KEY group_type (group_type) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `group_permission` -# - -CREATE TABLE group_permission ( - gperm_id int(10) unsigned NOT NULL auto_increment, - gperm_groupid smallint(5) unsigned NOT NULL default '0', - gperm_itemid mediumint(8) unsigned NOT NULL default '0', - gperm_modid mediumint(5) unsigned NOT NULL default '0', - gperm_name varchar(50) NOT NULL default '', - PRIMARY KEY (gperm_id), - KEY groupid (gperm_groupid), - KEY itemid (gperm_itemid), - KEY gperm_modid (gperm_modid,gperm_name(10)) -) TYPE=MyISAM; -# -------------------------------------------------------- - - -# -# Table structure for table `groups_users_link` -# - -CREATE TABLE groups_users_link ( - linkid mediumint(8) unsigned NOT NULL auto_increment, - groupid smallint(5) unsigned NOT NULL default '0', - uid mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (linkid), - KEY groupid_uid (groupid,uid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `image` -# - -CREATE TABLE image ( - image_id mediumint(8) unsigned NOT NULL auto_increment, - image_name varchar(30) NOT NULL default '', - image_nicename varchar(255) NOT NULL default '', - image_mimetype varchar(30) NOT NULL default '', - image_created int(10) unsigned NOT NULL default '0', - image_display tinyint(1) unsigned NOT NULL default '0', - image_weight smallint(5) unsigned NOT NULL default '0', - imgcat_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (image_id), - KEY imgcat_id (imgcat_id), - KEY image_display (image_display) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imagebody` -# - -CREATE TABLE imagebody ( - image_id mediumint(8) unsigned NOT NULL default '0', - image_body mediumblob, - KEY image_id (image_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imagecategory` -# - -CREATE TABLE imagecategory ( - imgcat_id smallint(5) unsigned NOT NULL auto_increment, - imgcat_name varchar(100) NOT NULL default '', - imgcat_maxsize int(8) unsigned NOT NULL default '0', - imgcat_maxwidth smallint(3) unsigned NOT NULL default '0', - imgcat_maxheight smallint(3) unsigned NOT NULL default '0', - imgcat_display tinyint(1) unsigned NOT NULL default '0', - imgcat_weight smallint(3) unsigned NOT NULL default '0', - imgcat_type char(1) NOT NULL default '', - imgcat_storetype varchar(5) NOT NULL default '', - PRIMARY KEY (imgcat_id), - KEY imgcat_display (imgcat_display) -) TYPE=MyISAM; -# -------------------------------------------------------- - - -# -# Table structure for table `imgset` -# - -CREATE TABLE imgset ( - imgset_id smallint(5) unsigned NOT NULL auto_increment, - imgset_name varchar(50) NOT NULL default '', - imgset_refid mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (imgset_id), - KEY imgset_refid (imgset_refid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imgset_tplset_link` -# - -CREATE TABLE imgset_tplset_link ( - imgset_id smallint(5) unsigned NOT NULL default '0', - tplset_name varchar(50) NOT NULL default '', - KEY tplset_name (tplset_name(10)) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imgsetimg` -# - -CREATE TABLE imgsetimg ( - imgsetimg_id mediumint(8) unsigned NOT NULL auto_increment, - imgsetimg_file varchar(50) NOT NULL default '', - imgsetimg_body blob, - imgsetimg_imgset smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (imgsetimg_id), - KEY imgsetimg_imgset (imgsetimg_imgset) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `modules` -# - -CREATE TABLE modules ( - mid smallint(5) unsigned NOT NULL auto_increment, - name varchar(150) NOT NULL default '', - version smallint(5) unsigned NOT NULL default '100', - last_update int(10) unsigned NOT NULL default '0', - weight smallint(3) unsigned NOT NULL default '0', - isactive tinyint(1) unsigned NOT NULL default '0', - dirname varchar(25) NOT NULL default '', - hasmain tinyint(1) unsigned NOT NULL default '0', - hasadmin tinyint(1) unsigned NOT NULL default '0', - hassearch tinyint(1) unsigned NOT NULL default '0', - hasconfig tinyint(1) unsigned NOT NULL default '0', - hascomments tinyint(1) unsigned NOT NULL default '0', - hasnotification tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (mid), - KEY hasmain (hasmain), - KEY hasadmin (hasadmin), - KEY hassearch (hassearch), - KEY hasnotification (hasnotification), - KEY dirname (dirname), - KEY name (name(15)) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `newblocks` -# - -CREATE TABLE newblocks ( - bid mediumint(8) unsigned NOT NULL auto_increment, - mid smallint(5) unsigned NOT NULL default '0', - func_num tinyint(3) unsigned NOT NULL default '0', - options varchar(255) NOT NULL default '', - name varchar(150) NOT NULL default '', - title varchar(255) NOT NULL default '', - content text, - side tinyint(1) unsigned NOT NULL default '0', - weight smallint(5) unsigned NOT NULL default '0', - visible tinyint(1) unsigned NOT NULL default '0', - block_type char(1) NOT NULL default '', - c_type char(1) NOT NULL default '', - isactive tinyint(1) unsigned NOT NULL default '0', - dirname varchar(50) NOT NULL default '', - func_file varchar(50) NOT NULL default '', - show_func varchar(50) NOT NULL default '', - edit_func varchar(50) NOT NULL default '', - template varchar(50) NOT NULL default '', - bcachetime int(10) unsigned NOT NULL default '0', - last_modified int(10) unsigned NOT NULL default '0', - PRIMARY KEY (bid), - KEY mid (mid), - KEY visible (visible), - KEY isactive_visible_mid (isactive,visible,mid), - KEY mid_funcnum (mid,func_num) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `online` -# - -CREATE TABLE online ( - online_uid mediumint(8) unsigned NOT NULL default '0', - online_uname varchar(25) NOT NULL default '', - online_updated int(10) unsigned NOT NULL default '0', - online_module smallint(5) unsigned NOT NULL default '0', - online_ip varchar(15) NOT NULL default '', - KEY online_module (online_module) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `priv_msgs` -# - -CREATE TABLE priv_msgs ( - msg_id mediumint(8) unsigned NOT NULL auto_increment, - msg_image varchar(100) default NULL, - subject varchar(255) NOT NULL default '', - from_userid mediumint(8) unsigned NOT NULL default '0', - to_userid mediumint(8) unsigned NOT NULL default '0', - msg_time int(10) unsigned NOT NULL default '0', - msg_text text, - read_msg tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (msg_id), - KEY to_userid (to_userid), - KEY touseridreadmsg (to_userid,read_msg), - KEY msgidfromuserid (msg_id,from_userid) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `ranks` -# - -CREATE TABLE ranks ( - rank_id smallint(5) unsigned NOT NULL auto_increment, - rank_title varchar(50) NOT NULL default '', - rank_min mediumint(8) unsigned NOT NULL default '0', - rank_max mediumint(8) unsigned NOT NULL default '0', - rank_special tinyint(1) unsigned NOT NULL default '0', - rank_image varchar(255) default NULL, - PRIMARY KEY (rank_id), - KEY rank_min (rank_min), - KEY rank_max (rank_max), - KEY rankminrankmaxranspecial (rank_min,rank_max,rank_special), - KEY rankspecial (rank_special) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `session` -# - -CREATE TABLE session ( - sess_id varchar(32) NOT NULL default '', - sess_updated int(10) unsigned NOT NULL default '0', - sess_ip varchar(15) NOT NULL default '', - sess_data text, - PRIMARY KEY (sess_id), - KEY updated (sess_updated) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `smiles` -# - -CREATE TABLE smiles ( - id smallint(5) unsigned NOT NULL auto_increment, - code varchar(50) NOT NULL default '', - smile_url varchar(100) NOT NULL default '', - emotion varchar(75) NOT NULL default '', - display tinyint(1) NOT NULL default '0', - PRIMARY KEY (id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplset` -# - -CREATE TABLE tplset ( - tplset_id int(7) unsigned NOT NULL auto_increment, - tplset_name varchar(50) NOT NULL default '', - tplset_desc varchar(255) NOT NULL default '', - tplset_credits text, - tplset_created int(10) unsigned NOT NULL default '0', - PRIMARY KEY (tplset_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplfile` -# - -CREATE TABLE tplfile ( - tpl_id mediumint(7) unsigned NOT NULL auto_increment, - tpl_refid smallint(5) unsigned NOT NULL default '0', - tpl_module varchar(25) NOT NULL default '', - tpl_tplset varchar(50) NOT NULL default '', - tpl_file varchar(50) NOT NULL default '', - tpl_desc varchar(255) NOT NULL default '', - tpl_lastmodified int(10) unsigned NOT NULL default '0', - tpl_lastimported int(10) unsigned NOT NULL default '0', - tpl_type varchar(20) NOT NULL default '', - PRIMARY KEY (tpl_id), - KEY tpl_refid (tpl_refid,tpl_type), - KEY tpl_tplset (tpl_tplset,tpl_file(10)) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplsource` -# - -CREATE TABLE tplsource ( - tpl_id mediumint(7) unsigned NOT NULL default '0', - tpl_source mediumtext, - KEY tpl_id (tpl_id) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# Table structure for table `users` -# - -CREATE TABLE users ( - uid mediumint(8) unsigned NOT NULL auto_increment, - name varchar(60) NOT NULL default '', - uname varchar(25) NOT NULL default '', - email varchar(60) NOT NULL default '', - url varchar(100) NOT NULL default '', - user_avatar varchar(30) NOT NULL default 'blank.gif', - user_regdate int(10) unsigned NOT NULL default '0', - user_icq varchar(15) NOT NULL default '', - user_from varchar(100) NOT NULL default '', - user_sig tinytext, - user_viewemail tinyint(1) unsigned NOT NULL default '0', - actkey varchar(8) NOT NULL default '', - user_aim varchar(18) NOT NULL default '', - user_yim varchar(25) NOT NULL default '', - user_msnm varchar(100) NOT NULL default '', - pass varchar(32) NOT NULL default '', - posts mediumint(8) unsigned NOT NULL default '0', - attachsig tinyint(1) unsigned NOT NULL default '0', - rank smallint(5) unsigned NOT NULL default '0', - level tinyint(3) unsigned NOT NULL default '1', - theme varchar(100) NOT NULL default '', - timezone_offset float(3,1) NOT NULL default '0.0', - last_login int(10) unsigned NOT NULL default '0', - umode varchar(10) NOT NULL default '', - uorder tinyint(1) unsigned NOT NULL default '0', - notify_method tinyint(1) NOT NULL default '1', - notify_mode tinyint(1) NOT NULL default '0', - user_occ varchar(100) NOT NULL default '', - bio tinytext, - user_intrest varchar(150) NOT NULL default '', - user_mailok tinyint(1) unsigned NOT NULL default '1', - PRIMARY KEY (uid), - KEY uname (uname), - KEY email (email), - KEY uiduname (uid,uname), - KEY unamepass (uname,pass) -) TYPE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `cache_model` -# - -CREATE TABLE cache_model ( - `cache_key` varchar(64) NOT NULL default '', - `cache_expires` int(10) unsigned NOT NULL default '0', - `cache_data` text, - - PRIMARY KEY (`cache_key`), - KEY `cache_expires` (`cache_expires`) -) TYPE=MyISAM; -# -------------------------------------------------------- diff --git a/Automation/Php/Newbb2Phpbb/style.css b/Automation/Php/Newbb2Phpbb/style.css deleted file mode 100755 index 6c13dba..0000000 --- a/Automation/Php/Newbb2Phpbb/style.css +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Convert Xoops + CBB (newbb) to phpBB - * Style Sheet. - * - */ - -html { - background-image:url(img/html-bg.png); - background-color: #FFF; - font-family: "DejaVu Sans", "Liberation Sans", sans-serif; - font-size: 0.85em; - line-height: 1.25em; - /* margin: 0; /* <- full screen */ - /* margin: 0 1% 0 1%; /* <- with 1% of left and right margin */ - /* margin: 0 2% 0 2%; /* <- with 2% of left and right margin */ - margin: 0 4% 0 4%; /* <- with 4% of left and right margin */ - /* margin: 0 10% 0 10%; /* <- with 10% of left and right margin */ - } - -body { - background: #FFF; - border-width: 10px; - border-style: solid; - border-color: #FFF; - padding:0; - margin:0; - } - -/* Links */ - -a:link { text-decoration: none; color: #204C8D; } -a:hover { text-decoration: underline; color: green; } -a:active { text-decoration: underline; color: green; } -a:visited { text-decoration: none; color: #204C8D; } -a:visited:hover { text-decoration: underline; color: green; } -a.nonexistent, a.badinterwiki { color: gray; } - -/* Header */ - -#header { - margin:0; - padding-top: 1em; - background-color: #204C8D; - background-image: url("img/header-bg.png"); - line-height: 1.0em; - border:none; - } - -#header h1 { - color: #fff; - margin: 0; - line-height: 1.7em; - text-align: center; - margin-bottom: 0; -} - -#header p.description { - color: #fff; - text-align: center; - margin: 0; - font-size: 0.9em; - -} - -/* Sublinks */ - -.sublinks { - clear: both; - display: block; - margin: 0; - white-space: nowrap; - background: #EDF4FF; - font-size: 0.9em; - padding: 0.5em; - padding-left: 20px; - border-top: 1px solid #ddd; - border-bottom: 2px dotted #628ECA; - } - -.sublinks li { - display: inline; - padding: 0; - margin-right: 5px; - } - -.sublinks li.current { - font-weight: bold; -} - -.sublinks li:after { - margin-left: 5px; - content: " » "; - } - -.sublinks li:last-child:after { - content: ""; - } - - -/* Page */ - -#page { - padding-top: 1em; - padding-right: 20px; - padding-bottom: 0; - padding-left: 20px; - background: #FFF; -} - -dd span.description { - margin-left: 0.5em; -} - -.navibar { - /* Problem: clear: right; aligns nicely right of - * logo, but lets it float high in the header, - * disconnected from ground */ - clear: both; - display: block; - height: 20px; - padding: 0; - padding-left: 20px; - margin: 0; - font-size: 0.9em; - - /* For avoiding a gap between navibar and pageline - * on IE */ - zoom: 1; - } - -.navibar li { - display: inline; - white-space: nowrap; - padding-top: 5px; - padding-bottom: 5px; - border-width: 1px; - border-style: solid; - border-color: #628ECA; - background-color: #FFF; - background-image: url("img/navibartop-bg.png"); - background-position: left top; - background-repeat: repeat-x; - } - -.navibar li a { - /* To cover the box area as linkable */ - padding: 8px; - padding-top: 4px; - padding-bottom: 5px; - } - -.navibar a, .navibar a:visited { - color: #204C8D; - text-decoration: none; - } - -.navibar li.current a { - color: #FFFFFF; - text-decoration: none; - font-weight: bold; - } - -.navibar li:hover { - background-color: #628ECA; - background-image: url("img/navibartop-hover-bg.png"); - background-position: left top; - background-repeat: repeat-x; - } - -.navibar li:hover a { - color: #FFFFFF; - text-decoration: none; - } - -.navibar li.current, -.navibar li.current:hover, -.navibar li.current:hover a, -.navibar li.current:active a { - color: #FFFFFF; - background-color: #628ECA; - background-image: url("img/navibartop-hover-bg.png"); - background-position: left top; - background-repeat: repeat-x; - } - -/* Alignment */ - -.right { text-align: right; } -.left { text-align: left; } -.center { text-align: center; } - -.floatr { float:right; } -.floatl { float:left; } - -/* Lists */ - -dl { - clear: both; - } - -dt { - float: left;; - width: 200px; - padding-top: 3px; - padding-right: 1em; - text-align: right; - } - -/* Form */ - -textarea { - padding: 3px; - padding-left: 0.5em; -} - -/* Tables */ - -td { - font-size: 0.85em; - padding: 0.5em; - font-family: monospace; -} - -th { - padding: 0.5em; - font-size: 0.85em; - font-family: monospace; - background: #f8f8f8; -} - -#footer{ - background: #fafafa; - padding: 3px; - margin-top: 1em; -} - -/* Messages */ - -.lm { - background-color: #ECECEC; - background-image: url("img/moin-msg-bg-gray.png"); - width: -10px; - border-width: 1px; - border-style: solid; - border-color: #CFCFCF; - border-left-width: 4px; - padding: 1em !important; - } - -.lm.red { - border-color: #E0B7B7; - background-color: #FFECEC; - background-image: url("img/moin-msg-bg-red.png"); - } -.lm.green { - border-color: #D6F6D2; - background-color: #EEFFEC; - background-image: url("img/moin-msg-bg-green.png"); - } - -.lm.violet { - border-color: #F6D2F6; - background-color: #FFECFF; - background-image: url("img/moin-msg-bg-violet.png"); - } - -.lm.blue { - border-color: #D2E0F6; - background-color: #ECF4FF; - background-image: url("img/moin-msg-bg-blue.png"); - } - -.lm.orange { - border-color: #F6E7D2; - background-color: #FFF8EC; - background-image: url("img/moin-msg-bg-orange.png"); - } - -.message { - margin-left: 20%; - margin-right: 20%; - margin-bottom: 0.5em; - padding-top: 1em; - padding-bottom: 1em; - padding-left: 1.5em; - border-width: 0; - border-top-width: 4px; - border-top-style: solid; - border-bottom-width: 4px; - border-bottom-style: solid; - text-align: center; - font-weight: bold; - } - -/* Misc */ - -.pageline { - clear: both; - margin: 0; - padding: 0; - width: 100%; - /* sync these values, line-height is needed for IE */ - height: 5px; - line-height: 5px; - background: #628ECA; - } - -.action { - background: #f8f8f8; - padding: 1em; - margin-bottom: 0; - -} - -.action span { - margin-top: 5px; -} - -.action img { - vertical-align: top; - margin-right: 0.5em; - border: none; -} diff --git a/Automation/Php/Webenv/admin/content.php b/Automation/Php/Webenv/admin/content.php deleted file mode 100644 index a2b05ca..0000000 --- a/Automation/Php/Webenv/admin/content.php +++ /dev/null @@ -1,187 +0,0 @@ - 'index.php') - { - echo '

Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

'; - exit; - } - -//-----------/* Sanitize URL variables */ - - foreach ( $_GET as $key => $value ) - { - if ( sanitize_url_var($key) ) - { - $url[$key] = $value; - } - } - -//----------/* Page Selector */ - - if ( isset( $url['page'] ) ) - { - switch ( $url['page'] ) - { - case 'entries': - /* Build relation between "Entries" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case "add": - $page = 'p_entries_add.php'; - break; - - case "update": - $page = 'p_entries_update.php'; - break; - } - } - else - { - $page = 'p_entries.php'; - } - break; - - case 'pages': - // Just if user has admin rights. - if ( is_user('administrator') ) - { - /* Build relation between "Pages" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case 'add': - $page = 'p_pages_add.php'; - break; - - case 'update': - $page = 'p_pages_update.php'; - break; - } - } - else - { - $page = 'p_pages.php'; - } - } - break; - - case 'categories': - // Just if user has admin rights. - if ( is_user('administrator') ) - { - /* Build relation between "Categories" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case 'add': - $page = 'p_categories_add.php'; - break; - case 'update': - $page = 'p_categories_update.php'; - break; - case 'tree': - $page = 'p_categories_tree.php'; - break; - } - } - else - { - $page = 'p_categories.php'; - } - } - break; - - case 'comments': - // Just if user has admin rights. - if ( is_user('administrator') ) - { - /* Build relation between "Links" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case 'add': - $page = 'p_comments_add.php'; - break; - case 'update': - $page = 'p_comments_update.php'; - break; - } - } - else - { - $page = 'p_comments.php'; - } - } - break; - - case 'links': - // Just if user has admin rights. - if ( is_user('administrator') ) - { - /* Build relation between "Links" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case 'add': - $page = 'p_links_add.php'; - break; - } - } - else - { - $page = 'p_links.php'; - } - } - break; - - case 'users': - // Just if user has admin rights. - if ( is_user('administrator') ) - { - /* Build relation between "Links" sublinks and its pages */ - if ( isset($url['action'] ) ) - { - switch ( $url['action'] ) - { - case 'add': - $page = 'p_users_add.php'; - break; - } - } - else - { - $page = 'p_users.php'; - } - } - break; - - default: - $page = 'p_index.php'; - break; - } - } - else - { - $page = 'p_index.php'; - } - -//--------/* Verify file before include it - - if ( file_exists( ABSPATH . 'admin/' . $page ) ) - { - include (ABSPATH . 'admin/' . $page ); - } -?> diff --git a/Automation/Php/Webenv/admin/footer.php b/Automation/Php/Webenv/admin/footer.php deleted file mode 100644 index 8b06438..0000000 --- a/Automation/Php/Webenv/admin/footer.php +++ /dev/null @@ -1,35 +0,0 @@ - 'index.php') - { - echo '

Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

'; - exit; - } -?> -
- - - - - - - - diff --git a/Automation/Php/Webenv/admin/header.php b/Automation/Php/Webenv/admin/header.php deleted file mode 100644 index 6cbcc7a..0000000 --- a/Automation/Php/Webenv/admin/header.php +++ /dev/null @@ -1,50 +0,0 @@ - 'index.php') - { - echo '

Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

'; - exit; - } -?> - - - - - - Admin :: <?php echo HTML_TITLE ?> - - - - - - - -
- -
- diff --git a/Automation/Php/Webenv/admin/img/header-background.png b/Automation/Php/Webenv/admin/img/header-background.png deleted file mode 100755 index ff2a7b0..0000000 Binary files a/Automation/Php/Webenv/admin/img/header-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/html-background.png b/Automation/Php/Webenv/admin/img/html-background.png deleted file mode 100755 index 30f7d70..0000000 Binary files a/Automation/Php/Webenv/admin/img/html-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-blue.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-blue.png deleted file mode 100755 index 7a816cf..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-blue.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-gray.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-gray.png deleted file mode 100755 index 43d1a55..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-gray.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-green.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-green.png deleted file mode 100755 index f4ca7ca..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-green.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-orange.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-orange.png deleted file mode 100755 index 25a57b5..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-orange.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-red.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-red.png deleted file mode 100755 index 2dfcf09..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-red.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/moin-msg-bg-violet.png b/Automation/Php/Webenv/admin/img/moin-msg-bg-violet.png deleted file mode 100755 index 657824d..0000000 Binary files a/Automation/Php/Webenv/admin/img/moin-msg-bg-violet.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/ul.png b/Automation/Php/Webenv/admin/img/ul.png deleted file mode 100755 index fd89ccd..0000000 Binary files a/Automation/Php/Webenv/admin/img/ul.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/img/ul2.png b/Automation/Php/Webenv/admin/img/ul2.png deleted file mode 100644 index 467b107..0000000 Binary files a/Automation/Php/Webenv/admin/img/ul2.png and /dev/null differ diff --git a/Automation/Php/Webenv/admin/includes/classes/db_postgresql.php b/Automation/Php/Webenv/admin/includes/classes/db_postgresql.php deleted file mode 100644 index 515493a..0000000 --- a/Automation/Php/Webenv/admin/includes/classes/db_postgresql.php +++ /dev/null @@ -1,64 +0,0 @@ - - * @copyright 2009 - CentOS Artwork SIG. - * @license GPL - */ - -class DB_PostgreSQL -{ - - var $dbconn; - -//---- Initialize class - - function __construct() - { - $conn_string = 'user=' . DB_USERNAME . ' password=' . DB_PASSWORD . ' dbname=' . DB_DBNAME; - $this->dbconn = pg_connect($conn_string) or die("Could not connect"); - } - -//---- Am I connected ? - - function check_connection() - { - if (pg_connection_status($this->dbconn) === PGSQL_CONNECTION_OK ) - { - return translate('connected'); - } - else - { - return translate('disconnected'); - } - - } - -//---- Query - - function query( $sql_string ) - { - $result = pg_query( $this->dbconn, $sql_string ); - - return $result; - } - -//---- Class Destructor - - function __destruct() - { - - if (pg_connection_status($this->dbconn)) - { - pg_close($this->dbconn); - } - - } - -} - -$db = new DB_PostgreSQL; -?> diff --git a/Automation/Php/Webenv/admin/includes/classes/ldap.php b/Automation/Php/Webenv/admin/includes/classes/ldap.php deleted file mode 100644 index 5fe83f3..0000000 --- a/Automation/Php/Webenv/admin/includes/classes/ldap.php +++ /dev/null @@ -1,572 +0,0 @@ - - * @copyright 2009 - CentOS Artwork SIG. - * @license GPL - */ - -class LDAP -{ - - var $ldapconn; - var $ldapbind; - - // LDAP Filter Attributes - var $filter_attrb = array(); - var $filter_type = array(); - var $filter_clean = array(); - -//-----------/* Class initializations - - function __construct() - { - // Open connection against ldap server - $this->ldapconn = ldap_connect(LDAP_HOST,LDAP_PORT) or die("Could not connect to " . LDAP_HOST . "."); - - // Set protocol version to use - ldap_set_option($this->ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3) or die("Could not connect to server through LDAPv3."); - - // Bind - $this->ldapbind = ldap_bind( $this->ldapconn, LDAP_ROOTDN, LDAP_ROOTPW ); - - // Initialize ldap filter attributes - $this->filter_attrb['cn'] = 'cn'; - $this->filter_attrb['uid'] = 'uid'; - $this->filter_attrb['employeetype'] = ucfirst(translate('employeetype')); - $this->filter_attrb['preferredlanguage'] = ucfirst(translate('language')); - - // Initialize ldap filter Types - $this->filter_type['='] = '='; - $this->filter_type['~='] = '~='; - - // Initialize ldap filter default - $this->filter_clean['attrb'] = 'preferredlanguage'; - $this->filter_clean['type'] = '='; - $this->filter_clean['value'] = LANGUAGE; - } - -//----------- Get entries from ldap server - - function get_entries( $filter ) - { - // Return entries just if filter valid - $search = ldap_search($this->ldapconn,LDAP_DN,$filter); - $entries = ldap_get_entries($this->ldapconn,$search); - return $entries; - } - -//----------// Validate filter value input - // Sanitize filter pattern - Attributes - - function is_valid( $name , $value ) - { - switch ( $name ) - { - case 'uid': - $pattern = '/^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+([a-z]{2,6})?$/'; - break; - - case 'preferredlanguage': - $pattern = '/^[a-zA-Z]{2}$/'; - break; - - case 'filtertype': - $pattern = '/^(=|~=)$/'; - break; - - case 'employeetype': - $pattern = '/^(writer|administrator)$/'; - break; - - default: - $pattern = '/^[a-zA-Z0-9_áéíóñúàçèé ]+$/'; - break; - } - - if ( isset( $pattern ) && preg_match( $pattern , $value )) - { - return true; - } - else - { - return false; - } - } - -//---------- Check filter attributes */ - - function sanitize_filter_attribute() - { - $dirty = array(); - $clean = array(); - - // Initialize dirty attribute - $dirty['attrb'] = $this->filter_clean['attrb']; - - // Initialize clean attribute - $clean['attrb'] = $this->filter_clean['attrb']; - - // Recover dirty attribute values from filter form - if ( isset( $_POST['attribute'] ) ) - { - $dirty['attrb'] = $_POST['attribute']; - } - - // Check dirty attribute - if ( array_key_exists( $dirty['attrb'], $this->filter_attrb ) ) - { - // Attribute is not dirty any more. It passed validation. - $clean['attrb'] = $dirty['attrb']; - } - - return $clean['attrb']; - } - -//---------- Check filter types - - function sanitize_filter_type() - { - $dirty = array(); - $clean = array(); - - $dirty['type'] = $this->filter_clean['type']; - $clear['type'] = $this->filter_clean['type']; - - // Recover dirty type values from filter form - if ( isset( $_POST['type'] ) ) - { - $dirty['type'] = $_POST['type']; - } - else - { - $dirty['type'] = $this->filter_clean['type']; - } - - // Check dirty types - if ( array_key_exists( $dirty['type'], $this->filter_type ) ) - { - // Type is not dirty any more. It passed validation. - $clean['type'] = $dirty['type']; - } - - return $clean['type']; - } - -//---------- Sanitize filter value - - function sanitize_filter_value() - { - $dirty = array(); - $clean = array(); - - $dirty['value'] = $this->filter_clean['value']; - $clean['value'] = $this->filter_clean['value']; - - // Recover dirty value from filter form - if ( isset( $_POST['value'] ) ) - { - $dirty['value'] = $_POST['value']; - } - - // Sanitize dirty value, based on supplied attribe - $name = $this->sanitize_filter_attribute(); - $value = $dirty['value']; - - if ( $this->is_valid( $name, $value ) ) - { - // Value is not dirty any more. It passed validation. - $clean['value'] = $value; - } - - return $clean['value']; - } - -//---------- Build ldap form filter - - function show_filter() - { - $clean = array(); - - $clean['attrb'] = $this->sanitize_filter_attribute(); - $clean['type'] = $this->sanitize_filter_type(); - $clean['value'] = $this->sanitize_filter_value(); - - // Start html form - $html = '
'; - $html .= '
'; - - // Build html form fileds. Start with some text - $html .= ucfirst(translate('filtering by')) . ': '; - - // Build attributes' select form field - $html .= get_user_attrSelector(); - - // Build types' select form field - $html .= ''; - - // Build value's text form field - $html .= ''; - - // Build submit form button - $html .= ''; - - // End html form - $html .= '
'; - $html .= '
'; - - return $html; - } - -//---------- Build ldap filter string - - function build_filter_string() - { - $clean['attrb'] = $this->sanitize_filter_attribute(); - $clean['type'] = $this->sanitize_filter_type(); - $clean['value'] = $this->sanitize_filter_value(); - - return $clean['attrb'] . $clean['type'] . $clean['value']; - - } - -//----------- Check uniqueness of uid attribute */ - - function is_uid_present( $uid ) - { - // Verify that uid entry's value be unique - $filter = 'uid=' . $uid; - $entry = $this->get_entries($filter); - - if ( $uid != '' && $entry['count'] == 1 ) - { - return true; - } - else - { - return false; - } - } - -//---------- Prepare userPassword - - function prepare_userpassword( $userpassword ) - { - $dirty['userpassword'] = $userpassword; - - switch ( LDAP_PASSHASH ) - { - case '{MD5}': - $clean['userpassword'] = LDAP_PASSHASH . base64_encode( pack( 'H*', md5( $dirty['userpassword'] ) ) ); - break; - - case '{SHA}': - $clean['userpassword'] = LDAP_PASSHASH . base64_encode( pack( 'H*', sha1( $dirty['userpassword'] ) ) ); - break; - } - - return $clean['userpassword']; - } - -//-----------/* Verify modifiable attributes - /* Description : Generally used to redifine entry's input keys and values, - /* based on is_valid() */ - /* $entry : is an array with entry's keys and values. */ - - function sanitize_entry( $entry ) - { - // Define attributes that can be modified - $fields = array('uid', 'cn','userpassword','displayname','preferredlanguage','employeetype'); - - // Verify and validate entry's attributes - foreach ( $fields as $key ) - { - if ( isset( $entry[$key] ) && $this->is_valid( $key, $entry[$key] ) ) - { - // Values that reach this point may be concider "clean". - $clean['entry'][$key] = $entry[$key]; - } - } - - // Return clean entry array or false - if ( isset( $clean['entry'] ) && is_array( $clean['entry'] ) ) - { - return $clean['entry']; - } - else - { - return false; - } - } - -//----------/* Initialize useradd values. - /* Description: Used in the useradd form page to initiate form values. - /* $attribute : is an array with the related attributes to check. */ - - function init_useradd_values( $attributes ) - { - foreach ( $attributes as $key ) - { - if ( ! isset( $_POST[$key] ) ) - { - $entry[$key] = ''; - } - else - { - if ( isset( $_POST[$key] ) && $this->is_valid($key, $_POST[$key]) ) - { - $entry[$key] = $_POST[$key]; - } - else - { - $entry[$key] = ''; - } - } - } - return $entry; - } - -//----------/* Initialize useradmin values and do action if submited - /* values are different from the actual one. - /* Description: used in the p_users.php to initiate form values. - /* $id : is the name of the form identification. - /* $attribute : is an array with the related attributes to check. */ - - function init_useradmin_values( $entry, $attributes, $action ) - { - - // First loop to match b in x[b] - for ($i = 0; $i < $entry['count']; $i++) - { - if ( isset( $_POST['uid'][$i] )) - { - // Define entry id - $entry_new['uid'] = $entry[$i]['uid'][0]; - - // Initialize entry cn - // Needed to update sn in the background. - $entry_new['cn'] = $entry[$i]['cn'][0]; - - // Second loop to match x in x[b] - foreach ( $attributes as $key ) - { - // Reset entry value based on input - if ( isset( $_POST[$key][$i] ) ) - { - // Check it is a valid value - if ( $this->is_valid( $key, $_POST[$key][$i] ) ) - { - // ... and that it is different from the actual one - if ( $_POST[$key][$i] != $entry[$i][$key][0] ) - { - - $entry_new[$key] = $_POST[$key][$i]; - - // Prepare userPassword. - // SECURITY: this attribute value should never - // be verified with the previous one. If - // verification is done you are providing a - // way to "guess" the user password by trying - // passwords until someone reject to update. - // Not to critic but if you guess it at the - // first try ;). Keep it unverifiable please. - if ( $key == 'userpassword' ) - { - $newpasswd = $this->prepare_userpassword($_POST[$key][$i]); - $entry_new[$key] = $newpasswd; - } - } - } - } - } - } - - // Do action if pressent - if ( isset( $entry_new ) ) - { - $message = $this->do_action( $entry_new, $action ); - } - else - { - $message = show_message(ucfirst(translate('nothing to do')), 'orange'); - } - } - - return $message; - } - -//-----------/* Do actions (udpate|delete|add) - /* $entry : is an array with the entry's key and value information. - /* $action : is an string telling what to do with the $entry. - /* Description : Actions are applied to just one entry at the same time. */ - /* The returned value is a message telling what happend with - the action requested.*/ - - function do_action( $entry, $action ) - { - // Define Entry's DN - if ( isset( $entry['uid'] ) && $this->is_valid( 'uid', $entry['uid'] ) ) - { - $dn = 'uid=' . $entry['uid'] . ',' . LDAP_DN; - } - else - { - $message = show_message(ucfirst(translate('a valid uid is required')),'orange'); - return $message; - } - - // Define possible actions - $possible_actions = '/^(add|update|delete)$/'; - if ( ! preg_match( $possible_actions, $action ) ) - { - // There is nothing to do here so exit to finish action intention. - $message = show_message(ucfirst(translate('invalid action')), 'red'); - return $message; - } - - // Define what to do in each action's case - switch ( $action ) - { - case 'update': - - // If there are valid values then do the update action. - if ( is_array( $entry ) ) - { - // Update sn attribute - $entry['sn'] = preg_replace('/^([a-zA-Z0-9_]+ ?)/','', $entry['cn']); - if ( $entry['sn'] == '' ) - { - $message = show_message(ucfirst(translate('invalid cn')), 'orange'); - return $message; - } - - if (ldap_modify($this->ldapconn, $dn, $entry)) - { - $message = show_message(ucfirst(translate('data was updated successfully')), 'green'); - } - else - { - $message = show_message(ucfirst(translate('data was not updated')), 'orange'); - } - } - break; - - // Delete Entry - case 'delete': - - // Delete Entry - if ( is_array( $entry ) ) - { - if ( ldap_delete( $this->ldapconn, $dn ) ) - { - $message = show_message(ucfirst(translate('data was deleted successfully')), 'green'); - } - else - { - $message = show_message(ucfirst(translate('data was not deleted')), 'orange'); - } - } - break; - - // Add Entry - case 'add': - - // Verify uid presence - if ( $this->is_uid_present( $entry['uid'] ) ) - { - // Abort this action commitment. - $message = show_message(ucfirst(translate('user identifier already exists')), 'orange'); - return $message; - } - - // Define and validate required attributes - $require_attrs = array('uid', 'userpassword', 'cn', 'displayname', 'preferredlanguage', 'employeetype'); - foreach ( $require_attrs as $key ) - { - if ( !isset($entry[$key]) || ! $this->is_valid($key, $entry[$key])) - { - $message = show_message(ucfirst(translate('the field')) .' '. translate($key) .' ' . translate('requires a valid value') , 'orange'); - return $message; - } - } - - // Prepare userPassword and other attributes. - $entry['userpassword'] = $this->prepare_userpassword($entry['userpassword']); - $entry['objectclass'] = 'inetOrgPerson'; - $entry['sn'] = preg_replace('/^([a-zA-Z0-9_]+ ?)/','', $entry['cn']); - if ( $entry['sn'] == '' ) - { - $message = show_message(ucfirst(translate('invalid cn')), 'orange'); - return $message; - } - $entry['mail'] = $entry['uid']; - - // If there are valid values then do the add action. - if ( ldap_add( $this->ldapconn, $dn, $entry ) ) - { - $message = show_message(ucfirst(translate('user added successfully')), 'green'); - } - else - { - $message = show_message(ucfirst(translate('user was not added')), 'orange'); - } - break; - } - - return $message; - } - -//-------------------/* Rename entry dn */ - - function rename_dn( $olddn, $newdn, $newparent, $deleteoldrdn ) - { - ldap_rename($this->ldapconn, $olddn, $newdn, $newparent, $deleteoldrdn ); - - return true; - } - -//-----------/* Display useradmin information - /* Description : Used in p_users.php - /* $entries : is an array with the entries' keys and values. */ - - function show_useradmin_info( $entries ) - { - $html = '
    '; - $html .= '
  • LDAP Host: ' . LDAP_HOST . '
  • '; - $html .= '
  • Domain Component (dc): ' . LDAP_DN . '
  • '; - $html .= '
  • ' . $this->show_filter() .'
  • '; - $html .= '
  • ' . ucfirst(translate('results')) . ': '. $entries['count']; '
  • '; - $html .= '
'; - - return $html; - } - -//-------------------/* Close connection */ - - function __destruct() - { - if ( isset( $this->ldapconn ) ) - { - ldap_unbind( $this->ldapconn ); - } - } - -} - -$ldap = new LDAP; -?> diff --git a/Automation/Php/Webenv/admin/includes/functions/auth.php b/Automation/Php/Webenv/admin/includes/functions/auth.php deleted file mode 100644 index 1b1279f..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/auth.php +++ /dev/null @@ -1,140 +0,0 @@ - - * @copyright 2009 - CentOS Artwork SIG. - * @license GPL - */ - -//--------------Authentication stuff-------------- - - session_start(); - -//--------------/* Verify Admin access rights */ - - function check_adminaccess() - { - /* Verify session */ - if (!isset($_SESSION['employeetype'])) - { - header('Location: '. BASEURL .'admin/login.php'); - } - } - - /* Check User Access */ - function check_useraccess() - { - $timeout = 60 * 30; // In seconds, i.e. 30 minutes. - $fingerprint = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']); - $redirect_to = BASEURL . 'admin/login.php?loggedout=true'; - - /* Destroy session if ... */ - if (isset($_SESSION['last_active']) && $_SESSION['last_active'] < (time()-$timeout) - || (isset($_SESSION['fingerprint']) && $_SESSION['fingerprint']!=$fingerprint) - || isset($_GET['action']) && $_GET['action'] == 'logout') - { - - setcookie(session_name(), '', time()-3600, '/'); - session_destroy(); - header("Location: $redirect_to"); - } - - /* Regenerate session */ - session_regenerate_id(); - - /* Increase session lifetime */ - $_SESSION['last_active'] = time(); - - /* Rebuild session fingerprint */ - $_SESSION['fingerprint'] = $fingerprint; - - } - - /* Verify username and password */ - function login() - { - require_once(ABSPATH . 'admin/includes/classes/ldap.php'); - $ldap = new LDAP; - - /* Inicialize variables */ - $login = array(); - $login['username'] = ''; - $login['password'] = ''; - - /* Validate username input */ - if (isset($_POST['username'])) - { - $mail_pattern = '/^([a-z0-9+_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,6}$/'; - if (preg_match( $mail_pattern,$_POST['username'])) - { - $login['username'] = $_POST['username']; - } - } - - /* Validate password input */ - if (isset($_POST['password'])) - { - $login['password'] = $ldap->prepare_userpassword($_POST['password']); - } - - /* Query LDAP directory looking for username AND password */ - $search = $ldap->get_entries('(&(uid=' . $login['username'] . ')(&(userpassword=' . $login['password'] . ')))'); - - /* Build user's session if match */ - if ($search['count'] == 1) - { - /* Set session information */ - $_SESSION['uid'] = $search[0]['uid'][0]; - $_SESSION['cn'] = $search[0]['cn'][0]; - $_SESSION['employeetype'] = $search[0]['employeetype'][0]; - - /* Set session lasttime access */ - $_SESSION['last_active'] = time(); - - /* Set session fingerprint */ - $fingerprint = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']); - $_SESSION['fingerprint'] = $fingerprint; - - /* Redirect to frontpage */ - header("Location: " . BASEURL); - - return 0; - } - else if ($search['count'] > 1) - { - // Login Failed: There are duplicates in the ldap directory database - return 002; - } - else - { - // Login Failed: There is no coincidece in the search - return '001'; - } - } - - // User links - function get_auth_userlinks() - { - - $html = '' . "\n"; - - return $html; - - } - -?> diff --git a/Automation/Php/Webenv/admin/includes/functions/categories.php b/Automation/Php/Webenv/admin/includes/functions/categories.php deleted file mode 100644 index a6ebe11..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/categories.php +++ /dev/null @@ -1,363 +0,0 @@ -query( $sql_string ); - $category = pg_fetch_array($source); - - if ( ! $category['name'] ) - { - $category['name'] = 'No'; - } - } - - return $category['name']; -} - -//-------/* Get Admin Categories Selector - /* (used in category administration) */ - -function get_category_selector( $category_id = null, $category_parent_id = null, $type = 'insert' ) -{ - global $db; - - $sql_string = "SELECT id, name, parent FROM categories;"; - $rows = $db->query( $sql_string ); - - $html = ''; - - return $html; -} - -//-------/* Get Admin Categories Form - -function get_categories_admin_form( $rows ) -{ - $html = '
'; - $html .= '
'; - $html .= show_action_field('delete'); - $html .= ''; - $html .= '
'; - - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - - // Loop throuh rows - while ( $row = pg_fetch_array($rows) ) - { - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - $html .= ''; - } - - $html .= '
' . ucfirst(translate('name')) . '' . ucfirst(translate('parent category')) . '' . ucfirst(translate('description')) . '
'.$row['name'].''. get_category_name($row['id']) .''.$row['description'].'
'; - - $html .= '
'; - $html .= ''; - $html .= '
'; - $html .= '
'; - - return $html; -} - -//-------/* Get Add Categories Form - -function get_categories_add_form() -{ - $html = '
'; - $html .= '
'; - $html .= '
    '; - $html .= '
  • ' . translate('Name') . '
  • '; - $html .= '
  • '; - $html .= '
  • ' . ucfirst( translate('parent category') ) . '
  • '; - $html .= '
  • ' . get_category_selector() . '
  • '; - $html .= '
  • ' . translate('Description') . '
  • '; - $html .= '
  • '; - $html .= '
  • '; - $html .= '
'; - $html .= ''; - $html .= '
'; - $html .= '
'; - - return $html; -} - -//-------/* Get Update Categories Form - -function get_categories_update_form() -{ - global $db; - - if ( sanitize_url_var( 'id' ) ) - { - $clean['id'] = $_GET['id']; - $sql_string = "SELECT id, name, parent, description FROM categories WHERE id=" . $clean['id'] . ";"; - $row = $db->query( $sql_string ); - - if ( $row !== false ) - { - $row = pg_fetch_array($row); - - $html = '
'; - $html .= '
'; - $html .= '
    '; - $html .= '
  • ' . translate('Name') . '
  • '; - $html .= '
  • '; - $html .= '
  • ' . ucfirst(translate('parent category')) . '
  • '; - $html .= '
  • '. get_category_selector( $row['id'], $row['parent'], 'update').'
  • '; - $html .= '
  • ' . translate('Description') . '
  • '; - $html .= '
  • '; - $html .= '
  • '; - $html .= '
'; - $html .= ''; - $html .= '
'; - $html .= '
'; - } - else - { - $html = show_message( ucfirst( translate("the category doesn't exist") ) , 'orange'); - } - } - else - { - $html = show_message( ucfirst( translate('nothing to do') ) , 'orange'); - } - - return $html; -} - -//-------/* Administrate Categories - -function admin_categories() -{ - global $db; - - $fields = array('id', 'name', 'parent', 'description'); - $counter = 0; - - // Define action to do - if (isset($_POST['action']) && preg_match('/^(update|delete|add)$/', $_POST['action'])) - { - $action = $_POST['action']; - - switch ( $action ) - { - case 'update': - - // Initialize FORM variables - foreach ( $fields as $key ) - { - if ( isset( $_POST[$key] ) && $_POST[$key] != '' ) - { - $clean[$key] = pg_escape_string($_POST[$key]); - } - else - { - $clean[$key] = ''; - } - } - - - // Required fields - if ( $clean['name'] == '' ) - { - $message = show_message(ucfirst(translate('field name can not be empty')),'orange'); - return $message; - } - - // Verify and redifine category indentification - if ( sanitize_url_var( 'id' ) ) - { - $clean['id'] = $_GET['id']; - } - - - // Build sql string for updating - $sql_string = "UPDATE categories SET name='" . $clean['name'] . "', description='" . $clean['description'] . "' WHERE id=" . $clean['id'] . ";"; -echo $sql_string; - // Execute UPDATE action - $db->query( $sql_string ); - - // Define message for successful action - $message = show_message( ucfirst( translate('data was updated successfully' ) ), 'green'); - - break; - - case 'delete': - - if ( isset( $_POST['id'] ) ) - { - foreach ( $_POST['id'] as $key ) - { - if ( preg_match( '/^[0-9]+$/', $key ) ) - { - // Check for dependencies for actual category id - // ... - - // Build SQL string for deleting - $sql_string = "DELETE FROM categories WHERE id=" . $key . ";"; - - // Execute DELETE action - if ( $db->query( $sql_string ) ) - { - $counter++; - } - } - else - { - // Build message for failed action - $message = show_message(ucfirst(translate('id value is incorrect'))); - return $message; - } - } - - // Build message for successful action (with plural distinction) - if ( $counter > 1 ) - { - $message = $counter . ' ' . translate('records deleted successfully'); - } - else - { - $message = $counter . ' ' . translate('record deleted successfully'); - } - $message = show_message( $message, 'green'); - } - break; - - case 'add': - - $fields = array('name', 'parent', 'description'); - - // Initialize and prepare input values for db insertion - foreach ( $fields as $key) - { - if ( isset( $_POST[$key] ) ) - { - $clean[$key] = pg_escape_string($_POST[$key]); - } - else - { - $clean[$key] = ''; - } - } - - // Required fields - if ( $clean['name'] == '' ) - { - $message = show_message(ucfirst(translate('field name can not be empty')),'orange'); - return $message; - } - - // Build sql string for inserting - $sql_string = "INSERT INTO categories (name, parent, description) - VALUES ('".$clean['name']."', '" . $clean['parent']. "', '" .$clean['description']."');"; - - // Execute INSERT action - if ( $db->query( $sql_string ) ) - { - // Build message for successful action - $message = show_message(ucfirst(translate('category was added successfully')),'green'); - } - else - { - // Build message for failed action - $message = show_message(ucfirst(translate('category was not added')),'orange'); - } - break; - } - - // Define default informative message if no action is present - if ( ! isset( $message ) ) - { - $message = show_message(ucfirst(translate('nothing to do')), 'orange'); - } - - // Return informative action message - return $message; - - } - - // Return false if no action is present - return false; -} - - -//--------/* Get Category Tree */ - -function get_category_tree( $parent = 0, $linkto = 'default' ) -{ - - global $db; - $sql_string = "SELECT id, name, parent FROM categories WHERE parent = ". $parent ." ORDER BY name;"; - $categories = $db->query($sql_string); - $html = ''; - - $html .= '
    '; - while ( $row = pg_fetch_array($categories) ) - { - switch ( $linkto ) - { - case 'admin': - $html .= '
  • ' . $row['name'] . '
  • '; - break; - - default: - $html .= '
  • ' . $row['name'] . '
  • '; - break; - - } - $html .= get_category_tree( $row['id'] , $linkto ); - } - $html .= '
'; - - return $html; -} diff --git a/Automation/Php/Webenv/admin/includes/functions/html.php b/Automation/Php/Webenv/admin/includes/functions/html.php deleted file mode 100644 index 187fad5..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/html.php +++ /dev/null @@ -1,47 +0,0 @@ -'; - $html .= $message; - $html .= '
'; - - return $html; - } - -//-------/* Show action selector form field - - function show_action_field( $action = 'default' ) - { - $html = ucfirst(translate('action')) . ': '; - - return $html; - - } -?> diff --git a/Automation/Php/Webenv/admin/includes/functions/links.php b/Automation/Php/Webenv/admin/includes/functions/links.php deleted file mode 100644 index 5546d8f..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/links.php +++ /dev/null @@ -1,165 +0,0 @@ -'; - - if ( isset($url['page'] ) ) - { - $html .= '
  • '. strtoupper(translate('home')) . '
  • '; - } - else - { - $html .= '
  • '. strtoupper(translate('home')) . '
  • '; - } - - foreach ($link as $key => $value) - { - if ( isset($url['page']) && $url['page'] == $key) - { - $value = translate(strtolower($key)); - $html .= '
  • ' . strtoupper($value). '
  • '; - } - else - { - $value = translate(strtolower($key)); - $html .= '
  • ' . strtoupper($value). '
  • '; - } - } - - $html .= ''; - - return $html; - } - -/*** - * Sublinks used in the administratoristration interface - * - * @param show_sublink(); - * @param control link visibility/availability. - */ - -function show_sublinks() -{ - -//-----------/* Initialize Link Array */ - - $link = array(); - - $link['entries'] = ucfirst(translate('entries')); - $link['pages'] = ucfirst(translate('pages')); - $link['categories'] = ucfirst(translate('categories')); - $link['links'] = ucfirst(translate('links')); - $link['users'] = ucfirst(translate('users')); - -//-----------/* Sanitize URL variables */ - - if ( sanitize_url_var('page') ) - { - $url['page'] = $_GET['page']; - } - -//-----------/* Build html links */ - - $html = ''; - - return $html; - } -?> diff --git a/Automation/Php/Webenv/admin/includes/functions/url.php b/Automation/Php/Webenv/admin/includes/functions/url.php deleted file mode 100644 index 570f521..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/url.php +++ /dev/null @@ -1,53 +0,0 @@ - diff --git a/Automation/Php/Webenv/admin/includes/functions/users.php b/Automation/Php/Webenv/admin/includes/functions/users.php deleted file mode 100644 index 78abe8f..0000000 --- a/Automation/Php/Webenv/admin/includes/functions/users.php +++ /dev/null @@ -1,189 +0,0 @@ - 'English', - 'es' => 'Español', - 'fr' => 'Français'); - - return $languages; - } - -//---------------------/* Determine user's role */ - - function is_user( $role ) - { - if ( $_SESSION['employeetype'] == $role ) - { - return true; - } - else - { - return false; - } - } - -//---------------------/* User Role-Selector */ - -function get_user_roleSelector( $id = '', $entry_value = '' ) -{ - $employeetypes = get_user_roles(); - - if ( ! is_int($id) ) - { - $html = ''; - } - - foreach ($employeetypes as $value ) - { - if ( $entry_value <> '' && $value == $entry_value ) - { - $html .= ''; - } - else - { - $html .= ''; - } - } - - $html .= ''; - - return $html; -} - -//---------------------/* User Attribute-Selector */ - -function get_user_attrSelector( $attr = '/(uid|cn|preferredlanguage|employeetype)/' ) -{ - global $ldap; - - $clean['attrb'] = $ldap->sanitize_filter_attribute(); - - $attributes = get_user_attributes(); - - $html = ''; - - return $html; -} - -//---------------------/* User Language-Selector */ - -function get_user_langSelector( $id = '', $entry_value = '' ) -{ - $languages = get_user_languages(); - - if ( isset($id) && is_int($id) ) - { - $html = ''; - } - - foreach ($languages as $key => $value ) - { - if ( ( $entry_value <> '' && $key == $entry_value ) || ( $id == '' && $entry_value == '' && $key == LANGUAGE ) ) - { - $html .= ''; - } - else - { - $html .= ''; - } - } - - $html .= ''; - - return $html; -} - -//-------/* Build useradd's form */ - -function show_useradd_form( $entry ) -{ - $html = '
    '; - $html .= '
    '; - - $html .= '
      '; - $html .= '
    • ' . ucfirst(translate('uid')) .':
    • '; - $html .= '
    • ' . ucfirst(translate('ex')) . '. john@example.com
    • '; - $html .= '
    • ' . ucfirst(translate('password')) . ':
    • '; - $html .= '
    • '; - $html .= '
    • '. ucfirst(translate('cn')) . ':
    • '; - $html .= '
    • '; - $html .= '
    • '. ucfirst(translate('displayname')) . ':
    • '; - $html .= '
    • '; - $html .= '
    • '. ucfirst(translate('preferredlanguage')) . ':
    • '; - $html .= '
    • ' . get_user_langSelector() . '
    • '; - $html .= '
    • ' . ucfirst(translate('employeetype')) . ':
    • '; - $html .= '
    • '. get_user_roleSelector() . '
    • '; - $html .= '
    • '; - $html .= '
    '; - - $html .= '
    '; - $html .= '
    '; - - return $html; -} - -//-------/* Show useradmin form - - function show_useradmin_form() - { - - - - } - -?> diff --git a/Automation/Php/Webenv/admin/index.php b/Automation/Php/Webenv/admin/index.php deleted file mode 100644 index 2f8814f..0000000 --- a/Automation/Php/Webenv/admin/index.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/Automation/Php/Webenv/admin/login.php b/Automation/Php/Webenv/admin/login.php deleted file mode 100644 index 1a90302..0000000 --- a/Automation/Php/Webenv/admin/login.php +++ /dev/null @@ -1,107 +0,0 @@ - 0) - { - $message = '
    ' . ucfirst(translate($message)) . '
    '; - } - else - { - header('Location: index.php'); - } -} -?> - - - - - Admin :: <?php echo HTML_TITLE ?> - - - - - - - - - -
    - -
    - -

    - - '') {; echo $message; } ?> - -
    - - - - - - - - - - - - - -
    : (. john@example.com)
    :
    -
    - -
    -
    - - - - - - diff --git a/Automation/Php/Webenv/admin/p_categories.php b/Automation/Php/Webenv/admin/p_categories.php deleted file mode 100644 index f6ef325..0000000 --- a/Automation/Php/Webenv/admin/p_categories.php +++ /dev/null @@ -1,34 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//----- Admin categories - - $message = admin_categories(); - -//----- Get Row - - $sql_string = "SELECT id, name, parent, description FROM categories ORDER BY name;"; - $rows = $db->query( $sql_string ); - -//----- Show action results - - if ( isset( $message ) ) - { - echo $message; - } -?> - - - -

    - -
    - -
    diff --git a/Automation/Php/Webenv/admin/p_categories_add.php b/Automation/Php/Webenv/admin/p_categories_add.php deleted file mode 100644 index 011261e..0000000 --- a/Automation/Php/Webenv/admin/p_categories_add.php +++ /dev/null @@ -1,26 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//---- Do action and grab results - - if (isset($_POST['action'])) - { - $message = admin_categories(); - if (isset($message)) - { - echo $message; - } - } - -?> - -

    - - diff --git a/Automation/Php/Webenv/admin/p_categories_tree.php b/Automation/Php/Webenv/admin/p_categories_tree.php deleted file mode 100644 index 9745922..0000000 --- a/Automation/Php/Webenv/admin/p_categories_tree.php +++ /dev/null @@ -1,15 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -?> - -

    - - diff --git a/Automation/Php/Webenv/admin/p_categories_update.php b/Automation/Php/Webenv/admin/p_categories_update.php deleted file mode 100644 index 77012ce..0000000 --- a/Automation/Php/Webenv/admin/p_categories_update.php +++ /dev/null @@ -1,26 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//---- Do action and grab results - - if (isset($_POST['action'])) - { - $message = admin_categories(); - if (isset($message)) - { - echo $message; - } - } - -?> - -

    - - diff --git a/Automation/Php/Webenv/admin/p_comments.php b/Automation/Php/Webenv/admin/p_comments.php deleted file mode 100644 index 89270dc..0000000 --- a/Automation/Php/Webenv/admin/p_comments.php +++ /dev/null @@ -1,30 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//----- Admin categories - - -//----- Get Row - - -//----- Show action results - - if ( isset( $message ) ) - { - echo $message; - } -?> - - - -

    - -
    -
    diff --git a/Automation/Php/Webenv/admin/p_entries.php b/Automation/Php/Webenv/admin/p_entries.php deleted file mode 100644 index be30f7b..0000000 --- a/Automation/Php/Webenv/admin/p_entries.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_entries_add.php b/Automation/Php/Webenv/admin/p_entries_add.php deleted file mode 100644 index dd9ab86..0000000 --- a/Automation/Php/Webenv/admin/p_entries_add.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_entries_update.php b/Automation/Php/Webenv/admin/p_entries_update.php deleted file mode 100644 index ae7d74f..0000000 --- a/Automation/Php/Webenv/admin/p_entries_update.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_index.php b/Automation/Php/Webenv/admin/p_index.php deleted file mode 100644 index c609f84..0000000 --- a/Automation/Php/Webenv/admin/p_index.php +++ /dev/null @@ -1,17 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    - - -

    - -

    Database Status: check_connection();?>

    -

    diff --git a/Automation/Php/Webenv/admin/p_links.php b/Automation/Php/Webenv/admin/p_links.php deleted file mode 100644 index f0a3144..0000000 --- a/Automation/Php/Webenv/admin/p_links.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_links_add.php b/Automation/Php/Webenv/admin/p_links_add.php deleted file mode 100644 index bbdad5d..0000000 --- a/Automation/Php/Webenv/admin/p_links_add.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_pages.php b/Automation/Php/Webenv/admin/p_pages.php deleted file mode 100644 index 0266e00..0000000 --- a/Automation/Php/Webenv/admin/p_pages.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_pages_add.php b/Automation/Php/Webenv/admin/p_pages_add.php deleted file mode 100644 index 9c5b616..0000000 --- a/Automation/Php/Webenv/admin/p_pages_add.php +++ /dev/null @@ -1,11 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> -

    diff --git a/Automation/Php/Webenv/admin/p_pages_update.php b/Automation/Php/Webenv/admin/p_pages_update.php deleted file mode 100644 index 11f1c32..0000000 --- a/Automation/Php/Webenv/admin/p_pages_update.php +++ /dev/null @@ -1,12 +0,0 @@ - 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } -?> - -

    diff --git a/Automation/Php/Webenv/admin/p_users.php b/Automation/Php/Webenv/admin/p_users.php deleted file mode 100644 index 2a37577..0000000 --- a/Automation/Php/Webenv/admin/p_users.php +++ /dev/null @@ -1,134 +0,0 @@ - - * Released under GPL lisence (http://www.fsf.org/licensing/licenses/gpl.txt) - */ - - -//-------------/* Show error if this page is called directly. - - if ( basename($_SERVER['PHP_SELF']) <> 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//------------|* Define filter. - - $filter = $ldap->build_filter_string(); - -/*------------|* Initialize entry values. */ - - $entries = $ldap->get_entries( $filter ); - -/*------------|* Do Action if POST - * - * Description : Actions take place entry by entry. Just one - * entry at the same time. Actually two actions are supported - * (update,delete). */ - - if ( isset( $_POST['useradmin'] ) ) - { - // Define useradmin attributes. - $fields = array('cn', 'userpassword', 'displayname', 'preferredlanguage', 'employeetype'); - - // Recover action to do. - $action = $_POST['action']; - - // Reinitialize entries values based on input and do action if present - $message = $ldap->init_useradmin_values( $entries, $fields, $action ); - - - // Reload entry value to reflect changes immediately - $entries = $ldap->get_entries( $filter ); - } - -//------------/* Display useradmin action results - - if ( isset( $message ) ) - { - echo $message; - } - -//------------/* Display useradmin title - - echo '

    ' . ucfirst(translate(strtolower('admin'))) . ' ' . translate(strtolower('users')) . '

    '; - -//------------/* Display useradmin form - -?> - -
    - -

    show_useradmin_info( $entries ) ?>

    - -
    - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - -
    - -
    - - - -
    - -
    diff --git a/Automation/Php/Webenv/admin/p_users_add.php b/Automation/Php/Webenv/admin/p_users_add.php deleted file mode 100644 index ff49658..0000000 --- a/Automation/Php/Webenv/admin/p_users_add.php +++ /dev/null @@ -1,49 +0,0 @@ - - * Released under GPL lisence (http://www.fsf.org/licensing/licenses/gpl.txt) - */ - -//------------/* Show error if this page is called directly. - - if ( basename($_SERVER['PHP_SELF']) <> 'index.php') - { - echo '

    Sorry, this page can\'t be served directly. '; - echo 'Try this instead.

    '; - exit; - } - -//------------/* Initialize entry values. - - $fields = array('uid', 'userpassword', 'cn', 'employeetype', 'preferredlanguage', 'displayname'); - $entry = $ldap->init_useradd_values( $fields ); - -//------------/* Do Action if POST - - if ( isset( $_POST['useradd'] ) ) - { - $message = $ldap->do_action( $entry, 'add' ); - } - -//------------/* Display useradd action results - - if ( isset($message) ) - { - echo $message; - } - -//------------/* Display useradd title - - echo '

    ' . ucfirst(translate('add')) . ' ' . translate('user') . '

    '; - -//------------/* Display useradd form - - echo show_useradd_form( $entry ); - -?> diff --git a/Automation/Php/Webenv/admin/style.css b/Automation/Php/Webenv/admin/style.css deleted file mode 100644 index a99e426..0000000 --- a/Automation/Php/Webenv/admin/style.css +++ /dev/null @@ -1,662 +0,0 @@ -/*** - * Style used in some server responses. - * - * -- CentOS Artwork SIG. - * http://projects.centos.org/trac/artwork/wiki/WebServerCustomization - */ - -html { - background-color: #FFF; - background-image: url(img/html-background.png); - font-family: "DejaVu Sans", "Liberation Sans", sans-serif; - font-size: 0.85em; - line-height: 1.25em; - margin: 0 4% 0 4%; /* <- with 4% of left and right margin */ - } - -body { - background: #FFF; - border-width: 10px; - border-style: solid; - border-color: #FFF; - padding:0; - margin: 0; - } - -/* RSS */ - -#header .rss { - float:right; - padding: 0; - margin: 0; - margin-right: 1em; - border: none; -} - -/* Links */ - -a:link { text-decoration: none; color: #204C8D } -a:hover { text-decoration: underline; color: green; } -a:active { text-decoration: underline; color: green; } -a:visited { text-decoration: none; color: #204C8D; } -a:visited:hover { text-decoration: underline; color: green; } - -#footer .credits a:link { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee } -#footer .credits a:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } -#footer .credits a:active { border-bottom: 1px dotted #eee; text-decoration: underline; color: #eee; } -#footer .credits a:visited { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee; } -#footer .credits a:visited:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } - -#header .adminlinks a:link { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee } -#header .adminlinks a:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } -#header .adminlinks a:active { border-bottom: 1px dotted #eee; text-decoration: underline; color: #eee; } -#header .adminlinks a:visited { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee; } -#header .adminlinks a:visited:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } - -/* Alignment */ - -.floatr { float: right; } -.floatl { float: left; } -.alignr { text-align: right; } -.alignl { text-align: left; } -.alignc { text-align: center; } - -/* Lists */ - -#content ul, -#content ol { - padding-left: 1.9em; - margin-left: 3em; - margin-bottom: 1em; - } - -#content ul { - list-style: url("img/ul.png") circle; - } - -#content ol { - list-style-image: none !important; - } - -#content ul li { - padding-left: 0em; - margin-bottom: 0.3em; - } - -#content ol li { - padding-left: 0em; - margin-bottom: 0.3em; - } - -#content ul ul, -#content ul ol, -#content ol ul, -#content ol ol { - margin-left: 0.5em; - margin-top: 0.3em; - } - -#content ul li p, -#content ol li p { - margin-bottom: 0.3em; - line-height: 1.5em; - margin-left: 0 !important; - } - -/* Tables */ - -#content table { - margin: 0; - margin-top: 0.5em; - margin-bottom: 0.5em; - border-collapse: collapse; - clear: both; - border-width: 1px; - border-style: solid; - border-color: #EDEDED; - width: 100%; - } - -#content th { - background: #f8f8f8; - padding: 0.5em; - border-width: 1px; - border-style: solid; - border-color: #CCC; - } - -#content th.firstcol { - width: 1%; -} - -#content td { - border-width: 1px; - border-style: solid; - border-color: #CCC; - padding: 0.5em; - } - - -/* Presentation */ - -#header { - background-color: #204C8D; - background-image: url(img/header-background.png); - color: #fff; - } - -#header div.people_info { - float: right; - padding: 0.3em 10% 1.2em 1.2em; - padding-right: 10%; - text-align: center; - } - -#header .adminlinks { - float:right; - margin: 0.5em; - text-align: right; - font-size: 0.8em; - color: #eee; -} - -#logo { - color: #fff; - padding: 10px; - width: 500px; - } - -#logo img { - border: none; -} - -#logo .logo_text{ - font-size: 1.7em; - color: #fff; - margin-top: -50px; - float:left; - margin-left: 260px; - text-align:left; -} - -/* Ads */ - -.googlecontent { - clear: right; - margin: 0; -} - -/* Page lines */ - -.pageline_dark { - border: 1px solid #31629b; - clear: both; - margin:0; - padding:0; -} - -.pageline { - border-bottom:2px solid #cad9ee; - clear: both; - margin:0; - padding:0; -} - -.pageline_soft { - border: 1px solid #fff; - clear: both; - margin:0; - padding:0; -} - -/* Mainlinks */ - -.mainlinks { - display: block; - padding: 0; - padding-left: 20px; - margin: 0; - font-size: 0.8em; - background-color: #2b4f80; - height: 23px; - border-bottom: 2px solid #6fa4df; - } - -.mainlinks li { - float: left; - display: inline; - white-space: nowrap; - font-weight: bold; - padding:0; - padding-top:3px; - padding-bottom:3px; - } - -.mainlinks li a { - /* To cover the box area as linkable */ - padding: 10px; - padding-top: 4px; - padding-bottom: 4px; - border-right: 1px solid #25456f; - border-left: 1px solid #31629b; - } - -.mainlinks a, -.mainlinks a:visited { - color: #BDD3FB; - text-decoration: none; - } - -.mainlinks li.current a { - color: #25456f; - border-right: 1px solid #fff; - border-left: 1px solid #fff; - text-decoration: none; - } - -.mainlinks li:hover { - background-color: #436595; - padding-bottom: 3px; - } - -.mainlinks li:hover a { - color: #BDD3FB; - text-decoration: none; - } - -.mainlinks li:hover a:active { color:#BDD3FB; background-color:#436595; text-decoration:none;} -.mainlinks li a:active { color:#BDD3FB; background-color:#436595; text-decoration:none;} - -.mainlinks li.current, -.mainlinks li.current:hover, -.mainlinks li.current:hover a, -.mainlinks li.current:active a { - color: #25456f; - background: #f6f9ff; - padding-bottom: 5px; - } - -/* Sublinks */ - -.sublinks { - display: block; - margin:0; - padding: 0.8em; - white-space: nowrap; - background: #f6f9ff; - border-bottom:2px solid #cad9ee; - color: #000; - } -.sublinks ul { - margin: 0; - padding: 0; -} -.sublinks li { - display: inline; - border-right: 1px dotted #6fa4df; - padding-left:0.8em; - padding-right:0.8em; - } - -.sublinks li:last-child { - border-right: none; -} - -/* Entries pager */ - -#content .entrypager { - border-top: 1px solid #f8f8f8; - padding-top: 10px; - clear: both; -} - -#content .entrypager span { - display: inline; - font-size: 0.9em; -} - -/* Content */ - -#content .columnl { - display: block; - background-color: #fff; - margin: 0; - padding-right: 20px; - padding-left: 20px; - padding-bottom: 2em; - } - -#content .columnr div.center { text-align: center; } - -#content .columnr div.last { - border-top: 1px solid #fff; - border-bottom: none; -} - -#content .columnr p.first { - border-top: none; -} - -#content h1 { - color: #333; - line-height: 1em; - margin: 0px; - margin-bottom: 1em; - margin-top: 1em; - padding: 0px; -} - -#content h2, -#content h3, -#content h4, -#content h5, -#content h6 { - color: #333; - line-height: 0.7em; - margin: 0px; - margin-bottom: 1em; - padding: 0px; - } - -#content tt { - font-family: "DejaVu Sans Mono", "Liberation Sans Mono", monospace; -} - -#content { - clear:both; - padding-left:0px; - padding-right:0px; -} - -#content p { - color: #333; - line-height: 1.5em; - margin: 0; - padding: 0; - margin-bottom: 1em; - margin-top: 1em; -} - -#content pre { - font-size: 1.4em; - border-width: 1px; - border-style: solid; - border-color: #E5E5E5; - border-left-width: 4px; - white-space: pre; - background: #FFFAE9; - overflow: auto; - padding: 1em; -} - -#content hr { - margin-top: 1em; - margin-bottom: 1em; - padding: 0; - border: 1px solid #f8f8f8; - } - -.promoblock { - display: block; - float:left; - padding: 0; - padding-left: 1em; - padding-right: 0.5em; - margin-top: 0.5em; - margin-bottom: 0.5em; - border-left: 2px dotted #cad9ee; - height: 200px; - font-size: 0.8em; -} - -.promoblock p { - padding: 0em; - line-height: 1.5em; - margin: 0em; - margin-bottom: 1em; -} - -.promoblock.col1, -.promoblock.col2, -.promoblock.col3 { width: 20%;} -.promoblock.col4 { width: 30%; } - -.promoblock.first { border-left: none;} - -#content div.post p.info { - font-size: 0.8em; - margin-top: -1em !important; -} - -#content div.post.first p.info { - margin-top: -2em !important; -} - -#content .post { - margin-top: 1em; - padding-top: 1em; -} - -#content .post.first { - border-bottom: 1px solid #f8f8f8; -} - - -#content .post.first h2 { - font-size: 2em; -} - -/* Content - Forms */ - -#content form { - margin: 0; - padding: 0; - display: inline; -} - -div.formfields { - border-top: 1px solid #f8f8f8; - border-bottom: 1px solid #f8f8f8; -} - -div.formfields ul { - margin-left: 0px !important; - padding-left: 0px !important; -} - -div.formfields li { - - list-style: none; -} - -div.formfields li.description { - font-weight: bold; - text-align: right; - width: 180px; - padding-top: 5px; -} - -div.formfields li.value { - margin-left: 190px; - margin-top: -25px; -} - -div.formfields li.submit { - margin-top: 25px; - margin-left: 190px; -} - -#header input[type="submit"], -#header input[type="text"] { - border-width: 2px; - border-style: solid; - border-color: #204C8D; - background-color: #3B71B8; - color: #FFFFFF; - display: inline; - text-decoration: none; - padding: 1px; - padding-left: 4px; - padding-right: 4px; - } - -#header input[type="submit"] { - font-weight: bold; - cursor: pointer; - font-size: 0.8em; -} - -#header input[type="text"] { - font-size: 0.85em; - display: inline; - padding: 2px; - padding-left: 4px; - border: 2px solid #204C8D; - background-color: #EDF4FF; - color: #204C8D; - width: 130px; -} -#header select { - font-size: 0.8em; - border-width: 2px; - border-style: solid; - border-color: #204C8D; - background-color: #3B71B8; - color: #FFFFFF; - cursor: pointer; - display: inline; - font-weight: bold; - text-decoration: none; - padding: 1px; - } - -.input { - /* does strange effect to button (text size becomes bigger when clicking) - font-size: 1em; - font-family: Arial, Lucida Grande, sans-serif; - */ - } - -textarea { - font-size: 1em; - font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; - } - -.disabled { - color: gray; - } - -/* Admonitions */ - -.lm { - background-color: #ECECEC; - background-image: url("img/moin-msg-bg-gray.png"); - width: -10px; - border-width: 1px; - border-style: solid; - border-color: #CFCFCF; - border-left-width: 4px; - padding: 1em !important; - } - -.lm.red { - border-color: #E0B7B7; - background-color: #FFECEC; - background-image: url("img/moin-msg-bg-red.png"); - } - -.lm.green { - border-color: #D6F6D2; - background-color: #EEFFEC; - background-image: url("img/moin-msg-bg-green.png"); - } - -.lm.violet { - border-color: #F6D2F6; - background-color: #FFECFF; - background-image: url("img/moin-msg-bg-violet.png"); - } - -.lm.blue { - border-color: #D2E0F6; - background-color: #ECF4FF; - background-image: url("img/moin-msg-bg-blue.png"); - } - -.lm.orange { - border-color: #F6E7D2; - background-color: #FFF8EC; - background-image: url("img/moin-msg-bg-orange.png"); - } - -.message { - margin-top: 2em; - margin-right: 20%; - margin-bottom: 2em; - margin-left: 20%; - padding-top: 1em; - padding-right: 1em; - padding-bottom: 1em; - padding-left: 1.5em; - border-width: 0; - border-top-width: 4px; - border-top-style: solid; - border-bottom-width: 4px; - border-bottom-style: solid; - text-align: center; - font-weight: bold; - } - -.message pre { - font-weight: normal !important; - text-align: left !important; - font-size: 1em !important; - -} -/* Footer */ - -#footer { - background-color: #204C8D; - background-image: url(img/header-background.png); - margin-top: 1em; - clear:both; - } - -#footer p { - font-size: small; - margin: 5px; - } - -#footer .mainlinks { - border-bottom: none; - height: 23px; - } - -#footer .mainlinks li { - padding-top: 4px; - padding-bottom: 2px; -} - -#footer .mainlinks li.current { - margin-top: -3px; - padding-bottom: 3px; - padding-top: 6px; -} - - -#footer .sublinks { - border-top:2px solid #cad9ee; - border-bottom-color: #6FA4DF; - } - -#footer .credits { - color: #eee; - font-size: small; - padding: 1em; - } - -#footer .credits p.right { - float: right; - padding-left: 15em; - text-align: right; -} diff --git a/Automation/Php/Webenv/config.php b/Automation/Php/Webenv/config.php deleted file mode 100755 index 583ec83..0000000 --- a/Automation/Php/Webenv/config.php +++ /dev/null @@ -1,59 +0,0 @@ - diff --git a/Automation/Php/Webenv/contents/content.php b/Automation/Php/Webenv/contents/content.php deleted file mode 100644 index 3032b7c..0000000 --- a/Automation/Php/Webenv/contents/content.php +++ /dev/null @@ -1,43 +0,0 @@ -
    - - - -
    - -
    - -Donaciones

    Esta es la pagina de las donaciones

    '; -$page[2] = '

    Documentacion

    Esta es la pagina de la documentacion.

    '; -$page[3] = '

    Wiki

    Esta es la pagina de la wiki.

    '; -$page[4] = '

    Foros

    Esta es la pagina de los foros.

    '; - -// Initialize variables -if ( isset($_GET['p']) ) { - - // If $_GET['p'] is set the content shown is the pages one. - $id = htmlspecialchars($_GET['p']); - - echo $page[$id]; -} -else -{ - // If $_GET['p'] is not set the content shown is the entries's loop. - echo get_html_err(); -} - -// Validate id value - -?> - -
    -
    diff --git a/Automation/Php/Webenv/contents/footer.php b/Automation/Php/Webenv/contents/footer.php deleted file mode 100644 index b902f6e..0000000 --- a/Automation/Php/Webenv/contents/footer.php +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/Automation/Php/Webenv/contents/header.php b/Automation/Php/Webenv/contents/header.php deleted file mode 100644 index 1a1aa72..0000000 --- a/Automation/Php/Webenv/contents/header.php +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - <?php echo HTML_TITLE ?> - - - - - - diff --git a/Automation/Php/Webenv/contents/images/h1-background.png b/Automation/Php/Webenv/contents/images/h1-background.png deleted file mode 100755 index 966b7ed..0000000 Binary files a/Automation/Php/Webenv/contents/images/h1-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/h2-background.png b/Automation/Php/Webenv/contents/images/h2-background.png deleted file mode 100755 index 7966dc0..0000000 Binary files a/Automation/Php/Webenv/contents/images/h2-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/header-background.png b/Automation/Php/Webenv/contents/images/header-background.png deleted file mode 100755 index ff2a7b0..0000000 Binary files a/Automation/Php/Webenv/contents/images/header-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/html-background.png b/Automation/Php/Webenv/contents/images/html-background.png deleted file mode 100755 index 30f7d70..0000000 Binary files a/Automation/Php/Webenv/contents/images/html-background.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/layeredTech_logo08.gif b/Automation/Php/Webenv/contents/images/layeredTech_logo08.gif deleted file mode 100755 index c31ec0b..0000000 Binary files a/Automation/Php/Webenv/contents/images/layeredTech_logo08.gif and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/logo.png b/Automation/Php/Webenv/contents/images/logo.png deleted file mode 100644 index 4828ae2..0000000 Binary files a/Automation/Php/Webenv/contents/images/logo.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/release-promo.png b/Automation/Php/Webenv/contents/images/release-promo.png deleted file mode 100644 index a4221c7..0000000 Binary files a/Automation/Php/Webenv/contents/images/release-promo.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/rss.png b/Automation/Php/Webenv/contents/images/rss.png deleted file mode 100644 index 79767ef..0000000 Binary files a/Automation/Php/Webenv/contents/images/rss.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/ul.png b/Automation/Php/Webenv/contents/images/ul.png deleted file mode 100755 index fd89ccd..0000000 Binary files a/Automation/Php/Webenv/contents/images/ul.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/ul2.png b/Automation/Php/Webenv/contents/images/ul2.png deleted file mode 100644 index 467b107..0000000 Binary files a/Automation/Php/Webenv/contents/images/ul2.png and /dev/null differ diff --git a/Automation/Php/Webenv/contents/images/xpressbannew_240.gif b/Automation/Php/Webenv/contents/images/xpressbannew_240.gif deleted file mode 100644 index dfdf197..0000000 Binary files a/Automation/Php/Webenv/contents/images/xpressbannew_240.gif and /dev/null differ diff --git a/Automation/Php/Webenv/contents/sidebar.php b/Automation/Php/Webenv/contents/sidebar.php deleted file mode 100644 index 11e3b77..0000000 --- a/Automation/Php/Webenv/contents/sidebar.php +++ /dev/null @@ -1,35 +0,0 @@ -
    - -
    promo
    - -
    - -

    - -
    - -
    -

    - -
    - -
    -

    - -
    - -
    - -
    - -
    - -
    diff --git a/Automation/Php/Webenv/contents/single.php b/Automation/Php/Webenv/contents/single.php deleted file mode 100644 index bebb7e4..0000000 --- a/Automation/Php/Webenv/contents/single.php +++ /dev/null @@ -1,43 +0,0 @@ -
    - -The page $id isn't readable!

    "; - } - - } - else { - echo "

    The page $id doesn't exist!

    "; - } - -} -else { - - $id = 0; - include("pages/p_index.php"); - -} - -// Validate id value - -?> - -
    diff --git a/Automation/Php/Webenv/contents/style.css b/Automation/Php/Webenv/contents/style.css deleted file mode 100644 index 58888cd..0000000 --- a/Automation/Php/Webenv/contents/style.css +++ /dev/null @@ -1,554 +0,0 @@ -/*** - * Style used in some server responses. - * - * -- CentOS Artwork SIG. - * http://projects.centos.org/trac/artwork/wiki/WebServerCustomization - */ - -html { - background-color: #FFF; - background-image: url(images/html-background.png); - font-family: "DejaVu Sans", "Liberation Sans", sans-serif; - font-size: 0.85em; - line-height: 1.25em; - margin: 0 4% 0 4%; /* <- with 4% of left and right margin */ - } - -body { - background: #FFF; - border-width: 10px; - border-style: solid; - border-color: #FFF; - padding:0; - margin: 0; - } - -/* RSS */ - -#header .rss { - float:right; - padding: 0; - margin: 0; - margin-right: 1em; - border: none; -} - -/* Links */ - -a:link { text-decoration: none; color: #204C8D } -a:hover { text-decoration: underline; color: green; } -a:active { text-decoration: underline; color: green; } -a:visited { text-decoration: none; color: #204C8D; } -a:visited:hover { text-decoration: underline; color: green; } - -#footer .credits a:link { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee } -#footer .credits a:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } -#footer .credits a:active { border-bottom: 1px dotted #eee; text-decoration: underline; color: #eee; } -#footer .credits a:visited { border-bottom: 1px dotted #eee; text-decoration: none; color: #eee; } -#footer .credits a:visited:hover { border-bottom: 1px dotted #eee; text-decoration: underline; color: #fff; } - -/* Alignment */ - -.floatr { float: right; } -.floatl { float: left; } - -/* Lists */ - -#content ul, -#content ol { - padding-left: 1.9em; - margin-left: 3em; - margin-bottom: 1em; - } - -#content ul { - list-style: url("images/ul.png") circle; - } - -#content ol { - list-style-image: none !important; - } - -#content ul li { - padding-left: 0em; - margin-bottom: 0.3em; - } - -#content ol li { - padding-left: 0em; - margin-bottom: 0.3em; - } - -#content ul ul, -#content ul ol, -#content ol ul, -#content ol ol { - margin-left: 0.5em; - margin-top: 0.3em; - } - -#content ul li p, -#content ol li p { - margin-bottom: 0.3em; - line-height: 1.5em; - margin-left: 0 !important; - } - -/* Tables */ - -#content table { - width: 100%; - font-size: inherit; - } - -#content th { - padding-left: 5px; - padding-right: 5px; - } - -#content th { - background-image: url(images/h2-background.png); - } - -/* Presentation */ - -#header { - background-color: #204C8D; - background-image: url(images/header-background.png); - color: #fff; - } - -#header div.people_info { - float: right; - padding: 0.3em 10% 1.2em 1.2em; - padding-right: 10%; - text-align: center; - } - -#header .adminlinks { - float:right; - margin: 0.5em; - text-align: right; - font-size: 0.9em; - color: #eee; -} - -#header .adminlinks a { - margin-left: 0.5em; - margin-right: 0.5em; -} - -#logo { - color: #fff; - padding: 10px; - width: 500px; - } - -#logo img { - border: none; -} - -#logo .logo_text{ - font-size: 1.7em; - color: #fff; - margin-top: -50px; - float:left; - margin-left: 260px; - text-align:left; -} - -/* Ads */ - -.googlecontent { - clear: right; - margin: 0; -} - -/* Page lines */ - -.pageline_dark { - border: 1px solid #31629b; - clear: both; - margin:0; - padding:0; -} - -.pageline { - border-bottom:2px solid #cad9ee; - clear: both; - margin:0; - padding:0; -} - -.pageline_soft { - border: 1px solid #fff; - clear: both; - margin:0; - padding:0; -} - -/* Mainlinks */ - -.mainlinks { - display: block; - padding: 0; - padding-left: 20px; - margin: 0; - font-size: 0.8em; - background-color: #2b4f80; - height: 23px; - border-bottom: 2px solid #6fa4df; - } - -.mainlinks li { - float: left; - display: inline; - white-space: nowrap; - font-weight: bold; - padding:0; - padding-top:3px; - padding-bottom:3px; - } - -.mainlinks li a { - /* To cover the box area as linkable */ - padding: 10px; - padding-top: 4px; - padding-bottom: 4px; - border-right: 1px solid #25456f; - border-left: 1px solid #31629b; - } - -.mainlinks a, -.mainlinks a:visited { - color: #BDD3FB; - text-decoration: none; - } - -.mainlinks li.current a { - color: #25456f; - border-right: 1px solid #fff; - border-left: 1px solid #fff; - text-decoration: none; - } - -.mainlinks li:hover { - background-color: #436595; - padding-bottom: 3px; - } - -.mainlinks li:hover a { - color: #BDD3FB; - text-decoration: none; - } - -.mainlinks li:hover a:active { color:#BDD3FB; background-color:#436595; text-decoration:none;} -.mainlinks li a:active { color:#BDD3FB; background-color:#436595; text-decoration:none;} - -.mainlinks li.current, -.mainlinks li.current:hover, -.mainlinks li.current:hover a, -.mainlinks li.current:active a { - color: #25456f; - background-color: #fff; - padding-bottom: 5px; - } - -/* Entries pager */ - -#content .entrypager { - border-top: 1px solid #f8f8f8; - clear: both; -} - -#content .entrypager span { - display: inline; - font-size: 0.9em; - padding: 1em; -} - -/* Content */ - -#content .columnl { - display: block; - background-color: #fff; - margin: 0; - margin-right: 300px; - padding: 20px; - } - -#content .columnr { - display: block; - width: 300px; - float:right; - background: #f6f9ff; - border: 1px solid #a0bbe1; - margin-bottom: 1em; - } - -#content .columnr div { - margin: 0; - padding: 1em; - font-size: 0.9em; - } - -#content .columnr a { - font-weight: bold; -} - -#content .columnr div.row, -#content .columnr div.row_search, -#content .columnr div.row_download, -#content .columnr div.row_promo, -#content .columnr div.row_release, -#content .columnr div.row_user, -#content .columnr div.row_sponsor, -#content .columnr div.row_subscribe { - border-top: 1px solid #fff; - border-bottom: 1px solid #cad9ee; -} - -#content .columnr div ul { - margin: 0; - list-style: url("images/ul2.png") circle; -} - -#content .columnr div.row_promo img { - padding: 5px; - background: #fff; - border: 1px solid #a0bbe1; -} - -#content .columnr div.center { text-align: center; } - -#content .columnr div.last { - border-top: 1px solid #fff; - border-bottom: none; -} - -#content .columnr p.first { - border-top: none; -} - -#content h1 { - color: #333; - line-height: 1em; - margin: 0px; - margin-bottom: 1em; - padding: 0px; -} - -#content h2, -#content h3, -#content h4, -#content h5, -#content h6 { - color: #333; - line-height: 0.7em; - margin: 0px; - margin-bottom: 1em; - padding: 0px; - } - -#content tt { - font-family: "DejaVu Sans Mono", "Liberation Sans Mono", monospace; -} - -#content { - clear:both; - padding: 1em; - background: #fff; -} - -#content p { - color: #333; - line-height: 1.5em; - margin: 0; - padding: 0; - margin-bottom: 1em; - margin-top: 1em; -} - -#content pre { - font-size: 1.4em; - border-width: 1px; - border-style: solid; - border-color: #E5E5E5; - border-left-width: 4px; - white-space: pre; - background: #FFFAE9; - overflow: auto; - padding: 1em; -} - -#content hr { - margin-top: 1em; - margin-bottom: 1em; - padding: 0; - border: 1px solid #f8f8f8; - } - -.promoblock { - display: block; - float:left; - padding: 0; - padding-left: 1em; - padding-right: 0.5em; - margin-top: 0.5em; - margin-bottom: 0.5em; - border-left: 2px dotted #cad9ee; - height: 150px; - font-size: 0.8em; - width: 20%; -} - -.promoblock p { - padding: 0em; - line-height: 1.5em; - margin: 0em; - margin-bottom: 1em; -} - -.promoblock.last { width: 30%; } - -.promoblock.first { border-left: none;} - -#content div.post p.info { - font-size: 0.8em; - margin-top: -1em !important; -} - -#content div.post.first p.info { - margin-top: -2em !important; -} - -#content .post { - margin-top: 1em; - padding-top: 1em; -} - -#content .post.first { - border-bottom: 1px solid #f8f8f8; -} - - -#content .post.first h2 { - font-size: 2em; -} - -/* Content - Forms */ - -form { - margin: 0; - padding: 0; - display: inline; -} - -#header input[type="submit"], -#header input[type="text"] { - border-width: 2px; - border-style: solid; - border-color: #204C8D; - background-color: #3B71B8; - color: #FFFFFF; - display: inline; - text-decoration: none; - padding: 1px; - padding-left: 4px; - padding-right: 4px; - } - -#header input[type="submit"] { - font-weight: bold; - cursor: pointer; - font-size: 0.8em; -} - -#header input[type="text"] { - font-size: 0.85em; - margin-right: 2px; - display: inline; - padding: 2px; - padding-left: 4px; - border: 2px solid #204C8D; - background-color: #EDF4FF; - color: #204C8D; - width: 130px; -} -#header select { - font-size: 0.8em; - border-width: 2px; - border-style: solid; - border-color: #204C8D; - background-color: #3B71B8; - color: #FFFFFF; - cursor: pointer; - display: inline; - font-weight: bold; - text-decoration: none; - padding: 1px; - } - -.input { - /* does strange effect to button (text size becomes bigger when clicking) - font-size: 1em; - font-family: Arial, Lucida Grande, sans-serif; - */ - } - -textarea { - font-size: 1.4em; - font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; - } - -.disabled { - color: gray; - } - -/* Footer */ - -#footer { - background-color: #204C8D; - background-image: url(images/header-background.png); - margin-top: 1em; - clear:both; - } - -#footer p { - font-size: small; - margin: 5px; - } - -#footer .mainlinks { - border-top: 2px solid #6fa4df; - border-bottom: none; - height: 23px; - } - -#footer .mainlinks li { - padding-bottom: 3px; -} - -#footer .mainlinks li.current { - margin-top: -3px; - padding-bottom: 3px; - padding-top: 6px; -} - - -#footer .sublinks { - border-top:2px solid #cad9ee; - border-bottom: none; - } - -#footer .credits { - color: #eee; - font-size: small; - padding: 1em; - } - -#footer .credits p.right { - float: right; - padding-left: 15em; - text-align: right; -} diff --git a/Automation/Php/Webenv/includes/functions/html.php b/Automation/Php/Webenv/includes/functions/html.php deleted file mode 100644 index fe7cc4a..0000000 --- a/Automation/Php/Webenv/includes/functions/html.php +++ /dev/null @@ -1,132 +0,0 @@ -' . "\n"; - - if (!isset($_GET['p'])) - { - - $html .= '
  • ' . strtoupper(translate('home')) . '
  • ' . "\n"; - - } - else - { - $html .= '
  • ' . strtoupper(translate('home')) . '
  • ' . "\n"; - } - - foreach ($mainlinks as $key => $value) - { - if (isset($_GET['p']) && $_GET['p'] == $key) - { - $html .= '
  • ' . strtoupper($value). "
  • " . "\n"; - } - else - { - $html .= '
  • ' . strtoupper($value). "
  • " . "\n"; - } - } - -$html .= '' . "\n"; -return $html; - -} - - // Display promotions -function get_html_promo() -{ - $promotion = array(); - $promotion['CentOS-5 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; - $promotion['CentOS-4 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; - $promotion['CentOS-3 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; - $promotion['CentOS-2 Releases'] = 'Information about CentOS-5 releases will be displayed here. Read more ...'; - - $counter = 0; - $last_promotion = count($promotion) -1; - - echo '
    ' . "\n"; - - foreach ( $promotion as $key => $value ) - { - - // Set first promoblock - switch ($counter) - { - case 0: - $html = '
    '; - break; - - case $last_promotion: - $html .= '
    '; - break; - - default: - $html .= '
    '; - } - - $html .= '

    ' . $key . '

    ' . "\n"; - $html .= '

    ' . $value . '

    ' . "\n"; - $html .= '
    '; - - $counter++; - } - -return $html; - -} - -function get_html_searchform() -{ - $html = '
    '; - $html .= '
    '; - $html .= ''; - $html .= ''; - $html .= '
    '; - $html .= '
    '; - - return $html; -} - -// Build 404 page not found error -function get_html_err($err_id = '404', $err_msg = 'Page not found', $err_descrip = '') -{ - $html = '

    ' . $err_id . ': ' . ucfirst($err_msg) . '

    ' . "\n"; - $html .= '

    ' . $err_descrip. '

    '; - return $html; -} - -?> diff --git a/Automation/Php/Webenv/includes/translations/en.php b/Automation/Php/Webenv/includes/translations/en.php deleted file mode 100644 index 7616ba6..0000000 --- a/Automation/Php/Webenv/includes/translations/en.php +++ /dev/null @@ -1,42 +0,0 @@ - - */ - - function translate($word) - { - - $translation = array('' => '', - // Admonition translations - // LDAP translations - 'uid' => 'User ID', - 'cn' => 'Full Name', - 'preferredlanguage' => 'Language', - 'employeetype'=>'privileges', - 'displayname'=>'nickname', - 'userpassword'=>'password', - // Others - 'go back' => 'go back', - 'default_f' => 'default', - 'default_m' => 'default', - 'en' => 'English', - 'credits_on_footer_1' => 'The CentOS Project - '.date('Y').' | "Linux" is a registered trademark of Linus Torvalds. All other trademarks are property of their respective owners.', - ''=>''); - - // if $word hasn't a translation here, return it. - if ( array_key_exists($word, $translation)) - { - $translation[$word] = $translation[$word]; - return $translation[$word]; - } - else - { - return $word; - } - } - -?> diff --git a/Automation/Php/Webenv/includes/translations/es.php b/Automation/Php/Webenv/includes/translations/es.php deleted file mode 100644 index 0057d1c..0000000 --- a/Automation/Php/Webenv/includes/translations/es.php +++ /dev/null @@ -1,162 +0,0 @@ - - */ - - function translate($word) - { - $translation = array(); - $translation = array('change' => 'cambiar', - // Errores Messages - '001' => 'nombre de usuario o contraseña incorrecta!', - '002' => 'Se encontraron valores duplicados en el directorio LDAP para el campo uid', - 'a valid uid is required' => 'se requiere un identificador único de usuario', - 'the field' => 'el campo', - 'invalid action' => 'acción no soportada', - 'user added successfully' => 'el usuario fue adicionado satisfactoriamente', - 'is required' => 'es obligatorio', - 'requires a valid value' => 'tiene un valor incorrecto', - 'incorrect value in the field' => 'valor incorrecto en el campo', - 'user identifier already exists' => 'el identificador único de usuario ya existe', - 'successful update' => 'actualización satisfactoria', - 'update failed' => 'actualización fallida', - 'nothing to do' => 'nada que hacer', - 'data was removed successfully' => 'los datos fueron eliminados satisfactoriamente', - 'data was deleted successfully' => 'los datos fueron eliminados satisfactoriamente', - 'data was updated successfully' => 'los datos fueron actualizados satisfactoriamente', - 'data was not removed' => 'los datos no fueron eliminados', - "the category dosn't exist" => "la categoría no existe", - 'data was not updated' => 'los datos no fueron actualizados', - 'field name can not be empty' => 'El campo nombre no puede estar vacío', - 'id value is incorrect' => 'El valor del campo Id es incorrecto', - 'record deleted successfully' => 'registro eliminado satisfactoriamente', - 'records deleted successfully' => 'registros eliminados satisfactoriamente', - 'category was added successfully' => 'la categoría fue adicionada satisfactoriamente', - 'category was not added' => 'la categoría no fue adicionada', - 'invalid cn' => 'valor incorrecto en el campo nombre común' , - 'page not found' => 'página no encontrada' , - // LDAP attributes - 'cn' => 'nombre común', - 'mail' => 'correo', - 'uid' => 'identificador único', - 'preferredlanguage' => 'Idioma preferido', - 'displayname' => 'Apodo', - 'userpassword' => 'Contraseña', - 'employeetype' => 'tipo de empleo', - // Database error messages - 'connected' => 'conectado', - 'Field name can not be empty' => 'El campo Nombre no puede estar vacío', - 'name' => 'nombre', - 'description' => 'descripción', - 'disconnected' => 'desconectado', - // Non error messages below - 'home' => 'inicio', - 'edit' => 'Editar', - 'delete' => 'eliminar', - 'es' => 'Español', - 'download' => 'descargas', - 'links' => 'enlaces', - 'comments' => 'comentarios', - 'comment' => 'comentario', - 'link' => 'enlace', - 'parent category' => 'categoría padre', - 'group' => 'grupo', - 'default_f' => 'predeterminada', - 'default_m' => 'predeterminado', - 'none' => 'ninguno', - 'administrator' => 'administrador', - 'writer' => 'escritor', - 'find' => 'Buscar', - 'archive' => 'archivo', - 'hello' => 'hola', - 'actions' => 'acciones', - 'action' => 'acción', - 'accept' => 'aceptar', - 'remove' => 'eliminar', - 'user' => 'usuario', - 'logout' => 'salir', - 'filter' => 'filtrar', - 'contactus' => 'contáctenos', - 'news' => 'noticias', - 'administration' => 'administración', - 'admin' => 'administrar', - 'support' => 'soporte', - 'write' => 'escribir', - 'ex' => 'ej', - 'information' => 'información', - 'events' => 'eventos', - 'mailinglists' => 'listas de correo', - 'bugs' => 'bugs', - 'help' => 'ayuda', - 'documentation' => 'documentación', - 'faqs' => 'faqs', - 'forums' => 'foros', - 'wiki' => 'wiki', - 'donate' => 'donaciones', - 'language' => 'idioma', - 'languages' => 'idiomas', - 'permissions' => 'permisos', - 'go' => 'ir', - 'login' => 'entrar', - 'bugs' => 'errores', - 'hi' => 'hola', - 'powered by' => 'soportado por', - 'register' => 'registrar cuenta nueva', - 'newaccount' => 'cuenta nueva', - 'lostpwd' => 'perdió su contraseña ?', - 'previous entries' => 'Entradas anteriores', - 'next entries' => 'Entradas siguientes', - 'update' => 'Actualizar', - 'first' => 'primero', - 'last' => 'ultimo', - 'password' => 'contraseña', - 'categories' => 'categorías', - 'category' => 'categoría', - 'category tree' => 'Árbol de categorías', - 'hierarchy' => 'jerarquía', - 'close' => 'cerrar', - 'session' => 'sesión', - 'view' => 'ver', - 'go back to' => 'regresar al', - 'go back' => 'regresar', - 'site' => 'sitio', - 'add' => 'adicionar', - 'years' => 'años', - 'permissions' => 'permisos', - 'note' => 'nota', - 'news' => 'noticias', - 'user' => 'usuario', - 'welcome' => 'bienvenido', - 'search results' => 'Resultados de la búsqueda', - 'results' => 'resultados', - 'looking in' => 'buscando en', - 'filtering by' => 'filtrando por', - 'admin_info_1' => 'esta aplicación te permitirá administrar el portal.', - 'entry' => 'entrada', - 'page' => 'página', - 'users' => 'usuarios', - 'entries' => 'entradas', - 'portal administration' => 'Administración del portal', - 'pages' => 'páginas', - 'sponsors' => 'patrocinadores', - 'search' => 'buscar', - 'credits_on_footer_1' => 'The CentOS Project - '.date('Y').' | "Linux" es una marca registrada de Linus Torvalds. Todas las otras marcas comerciales son propiedad de sus respectivos dueños.', - 'username' => 'usuario' ); - - // if $word hasn't a translation here, return it. - if ( array_key_exists($word, $translation)) - { - $translation[$word] = $translation[$word]; - return $translation[$word]; - } - else - { - return $word; - } - -} -?> diff --git a/Automation/Php/Webenv/index.php b/Automation/Php/Webenv/index.php deleted file mode 100755 index b585d0b..0000000 --- a/Automation/Php/Webenv/index.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/Automation/Python/centos-art/framework.py b/Automation/Python/centos-art/framework.py deleted file mode 100755 index 92e512a..0000000 --- a/Automation/Python/centos-art/framework.py +++ /dev/null @@ -1,90 +0,0 @@ -# framework - The CentOS Artwork Repository framework structure. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -#------------------------------------------------------------ -# $Id: framework.py 6045 2010-07-13 08:11:03Z al $ -#----------------------------------------------------------- -""" -The CentOS Artwork Repository framework structure. - -""" - -import string -import os -import re - -from repository import Repo - -class Framework: - """ - This structure provides attributes and methods needed by CentOS - artwork repository framework structures. - """ - - def __init__(self): - self.fw = {} - - def find(self,id): - """ - Return a dictionary object containing information about - frameworks. This function explores the repository structure - looking for framework directories. Framework directories are - defined as regular directories containing at least the - subdirectory `tpl/' in its first level. - """ - repo = Repo() - rootdir = str(repo.abspath + repo.workline[0]) - template = re.compile('^.*/tpl/?$') - for root, dirs, files in os.walk(rootdir): - if id in root and template.match(root): - print root - #pathid = self.getPathId(root) - #self.fw[pathid] = self.add(pathid) - - def getPathId(self, path): - """ - Return the framework's path id by cleaning up its string path. - """ - # Remove absolute path and workline from string path. - # Remove theme directory from string path. - # Remove template directory from string path. - pass - - def add(self, pathid): - """ - Return the framework's templates, translations and manuals paths. - """ - templates = str('trunk/' + pathid + '/tpl') - translations = str('trunk/Translations/' + pathid) - manuals = str('trunk/Manuals/' + pathid) - return (templates, translations, manuals) - - def list(self, id): - """ - Print available frameworks and its paths. - """ - self.find(id) - for k, v in self.fw.iteritems(): - pathid = k - templates, translations, manuals = v - print '%12s: %s' % ('Id', pathid) - print '%12s: %s' % ('Templates', templates) - print '%12s: %s' % ('Translations', translations) - print '%12s: %s' % ('Manuals', manuals) - print '-'*66 diff --git a/Automation/Python/centos-art/init.py b/Automation/Python/centos-art/init.py deleted file mode 100755 index 744776e..0000000 --- a/Automation/Python/centos-art/init.py +++ /dev/null @@ -1,78 +0,0 @@ -#!/usr/bin/python -# -# centos-art-cli.py - The CentOS Artwork Repository ToolBox (art) -# command line interface. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -#------------------------------------------------------------ -# $Id: centos-art.py 6245 2010-08-12 14:44:19Z al $ -#----------------------------------------------------------- -""" -The CentOS Artwork Repository Toolbox (art) command line interface. - -This script provides a command line interface (cli) to operate local -working copies of CentOS Artwork Repository. Most of the actions this -script can perform relay on CentOS Artwork Repository files and -directories standard structure. The CentOS Artwork Repository standard -structure is described inside the `Repo' class as docstrings. The -`Repo' class is available in the repository.py file. - -In order to make this script available along CentOS Artwork Repository -you need create a link to the file art-cli.py inside /home/centos/bin/ -directory. For example: - - $ mkdir /home/centos/bin/ - $ cd /home/centos/bin/ - $ ln -s /home/centos/artwork/trunk/Scripts/Python/centos-art-cli.py centos-art - -Note that we used the `centos' lower-case word as username. This is a -convention[1] that let us create a common absolute path for people to -store the CentOS Artwork Repository working copy. - - [1:] Absolute paths are used Inkscape to import raster images - inside SVG files--well, to link them really. If everyone - downloading a working copy of CentOS Artwork Repository uses its - one absolute path there is no way to garantee that all images - imported inside SVG design templates will be displayed correctly - in all downloaded working copies. That is because, there is no way - to garantee that everyone's working copy is placed in the same - absolute path the raster image was imported the first time. So the - absolute path name convenction is needed. - -The centos-art-cli.py script let you to: - - * Render images and texts using common design models and - translations. - - * Navigate the repository structure. - - * Get information about repository structures. - - * Test themes. - -""" - -#from repository import Repo -from framework import Framework - -def main(): - fw = Framework() - fw.list('Brands') - -if __name__ == '__main__': main() diff --git a/Automation/Python/centos-art/repository.py b/Automation/Python/centos-art/repository.py deleted file mode 100755 index de71d4e..0000000 --- a/Automation/Python/centos-art/repository.py +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -#------------------------------------------------------------ -# $Id: repository.py 6036 2010-07-09 21:20:27Z al $ -#----------------------------------------------------------- -""" -The CentOS Artwork Repository. - -The CentOS Artwork Repository is a subversion-based file structure -organized to produce the CentOS project's corporate visual identity. -The CentOS Project corporate visual identity is the ``persona'' of the -organization known as The CentOS Project. - -The CentOS Project corporate visual identity plays a significant role -in the way the CentOS Project, as organization, presents itself to -both internal and external stakeholders. In general terms, the CentOS -Project corporate visual identity expresses the values and ambitions -of the CentOS Project organization, its business, and its -characteristics. The CentOS Project corporate visual identity -provides visibility, recognizability, reputation, structure and -identification to the CentOS Project organization by means of -corporate design, corporate communication, and corporate behaviour. - -The CentOS Project settles down its corporate visual identity on a -``monolithic corporate visual identity structure''. In this structure -The CentOS Project uses one unique name and one unique visual style in -all its manifestations. - -Inside CentOS Artwork Repository, visual manifestations are organized -in the categories: distributions, websites, and promotion. - -Inside CentOS Artwork Repository, corporate visual identity is -oraganized in the work lines: graphic-design, translations, and -programming (scripts). Each work line is a group of people that, based -on standard patterns, can work indepently and coordinated one another. - -In the structure just mentioned, graphic designers provide the design -models and visual styles (motifs) needed to cover each each visual -manifestation; translators create the language-specific contents; and -programmers gear everything together in order to produce specific -design models on various visual styles, languages, and major releases, -automatically. -""" - -class Repo: - """ - This class provides attributes and methods needed to implement the - base repository structure. - """ - - def __init__(self): - # Define repository's working copy absolute path. - self.abspath = '/home/centos/artwork/' - # Define repository's working line. - self.workline = ('trunk/', 'branches/', 'tags/') diff --git a/Automation/Python/centos-web/centos-web.conf b/Automation/Python/centos-web/centos-web.conf deleted file mode 100644 index 4a4397e..0000000 --- a/Automation/Python/centos-web/centos-web.conf +++ /dev/null @@ -1,108 +0,0 @@ -# This file provides the Apache configuration you need to copy under -# `/etc/httpd/conf.d/' directory, in order to execute the -# `centos-web.cgi' script correctly. By default, this file implements -# a configuration through aliases, but a configuration through virtual -# domains is also available for you to use. -# -# The configuration discribed here, both for aliases and virtual -# domains, limits the number of location you can use to store public -# contents (e.g., only one `public_html' directory can be used in your -# home directory and only one `/var/www/html' directory can exist in -# your file system). This limitation is necessary in order to refer -# public contents from cgi scripts in a portable way. Thus, it would -# be very convenient that all cgi scripts be written to reuse the same -# public information (e.g., images and css files). Another limitation -# is that, by default, this configuration is set to work with the -# `centos' user name only. However, if you want to run this -# configuration under a different user name, you can change the -# default path information provided in this configuration by that one -# you want to run this configuration under. -# ------------------------------------------------------------------ -# $Id$ -# ------------------------------------------------------------------ - -# ------------------------------------------------------------------ -# Using Aliases: -# -# This configuration assumes you are a web developer whom needs to -# download a working copy of `centos-web' tree into your workstation -# and also be able of testing the changes you make before committing -# them up to the central repository. -# -# For this configuration to work, you need to create the following -# directory structure in your home directory: -# -# /home/centos -# |-- cgi-bin (1) -# | `-- centos-web (2) -# | |-- apps -# | `-- centos-web.cgi -# `-- public_html (3) -# |-- images -# `-- stylesheet.css -# -# (1): This directory must be created with a -# `httpd_sys_script_exec_t' selinux context. This directory -# organizes cgi scripts and related executable files. -# -# (2): This directory must be created using subversion's `co' -# command. For example, consider the location of `cgi-bin' -# directory of a specific application (e.g., centos-web) inside -# the central repository and download it here, from there. -# Notice that both central repository and home directory -# structure used for organize cgi script are different one -# another and you need to accomodate it in your home directory, -# not in the central repository. -# -# (3): This directory must be created with a -# `httpd_sys_content_t' selinux context. This directory contains -# all public files the cgi scripts need (e.g., images and css -# files) and must be created using the subversion's `co' -# command. For example, consider the `public' directory of -# specific cgi application (e.g., centos-web) inside the central -# repository and download it here, from there. -# -# Finally, be sure to copy this configuration file to -# `/etc/httpd/conf.d' directory and reload the apache http daemon -# (e.g., `/sbin/service httpd reload'), in order for the layout -# described here to take effect. - -ScriptAliasMatch ^/centos-web/(.*)$ "/home/centos/cgi-bin/centos-web/centos-web.cgi" -Alias /public "/home/centos/public_html" - -# ------------------------------------------------------------------ -# Using Virtual Domains -# -# This configuration assumes you are a system administrator whom needs -# to put the `centos-web.cgi' script on production (i.e., no -# unpredictable changes are introduced to cgi script source code). For -# example, if you administer the `centos.org' domain, this -# configuration would let you to run the `centos-web.cgi' script with -# an URL like `http://www.centos.org/'. -# -# This configuration requires that you set up your DNS to point such -# URLs to the same IP address (e.g., by using CNAME), copy this file -# to `/etc/httpd/conf.d/' directory, and reload the apache httpd -# daemon (e.g., `/sbin/service httpd reload'). -# -# In this configuration you don't use subversion's `co' commands but -# the tagged revisions (a.k.a. final releases or update releases) -# published by web developers in the central repository. In this -# configuration, the cgi source code would be stored in a special -# place accesable by apache and root users only (e.g., -# `/var/www/cgi-bin'). On the other hand, the public contents required -# by cgi scripts would be stored in a special world-wide readable -# place (e.g., `/var/www/html'). - -#NameVirtualHost *:80 -# -# -# ServerName projects.centos.org -# DocumentRoot /var/www/html -# -# -# -# ServerName www.centos.org -# ScriptAliasMatch ^/[^public](.*)$ "/var/www/cgi-bin/centos-web.cgi" -# Alias /public "/var/www/html" -# diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Home/__init__.py b/Automation/Python/centos-web/cgi-bin/Apps/Home/__init__.py deleted file mode 100755 index e69de29..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Home/__init__.py +++ /dev/null diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Home/page.py b/Automation/Python/centos-web/cgi-bin/Apps/Home/page.py deleted file mode 100755 index 97e12eb..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Home/page.py +++ /dev/null @@ -1,91 +0,0 @@ -"""Support module for page layout inside `Home' web application. - -""" -from Apps import page - -app = page.Layout() - - -def page_navibar(): - """Returns application main pages. - - The application main pages are organized as tabs in the - application navigation bar. There is one tab for each main page - inside the application. - - """ - names = ['Page1', 'Page2', 'Page3'] - attrs = [] - - for i in names: - attrs.append({'href': '/webenv/?p=' + i.lower()}) - - if 'p' in page.qs.keys(): - focus = page.qs['p'][0].lower() - else: - focus = '' - - return app.page_navibar(names, attrs, focus) - - -def page_content(): - """Returns page content. - - The page content is determined from the query string, specifically - from the value of `p' variable. - - """ - if 'p' in page.qs.keys(): - p = page.qs['p'][0].lower() - else: - p = '' - - if p == 'page1': - output = app.tag_p('', [12, 1], 'Page Empty.') - elif p == 'page2': - output = app.tag_p('', [12, 1], 'Page Empty.') - elif p == 'page3': - output = app.tag_p({}, [12, 1], 'Page Empty' ) - elif p == 'entry': - output = app.content_details() - else: - output = app.content_list() - - return output - - -def main(): - """Returns final output.""" - - # Define page name. This value is used as reference to determine - # which application to load and what tab in the navigation bar to - # focus on. - app.name = 'Home' - - # Define page title. This value is dislayed on the browser's title - # bar. Notice that we concatenated the page class default value - # here. - app.title += ' :: Home' - - # Define page header. This is the information displayed - # between the page top and page content. - app.header = app.logo() - app.header += app.google_ad_example() - app.header += app.navibar() - app.header += app.releases() - app.header += app.page_links() - app.header += page_navibar() - - # Define page body. This is the information displayed between the - # page header and page footer. - app.body = page_content() - - # Define page footer. This is the information displayed between - # the page bottom and the page content, the last information - # displayed in the page. - app.footer = app.credits() - - # Define page final layout. - html = app.page() - - return html diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/__init__.py b/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/__init__.py deleted file mode 100755 index e69de29..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/__init__.py +++ /dev/null diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/page.py b/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/page.py deleted file mode 100755 index 1791750..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Sponsors/page.py +++ /dev/null @@ -1,91 +0,0 @@ -"""Support module for page layout inside `Sponsors' web application. - -""" -from Apps import page - -app = page.Layout() - - -def page_navibar(): - """Returns application's main pages. - - The application's main pages are organized as tabs in the - application navigation bar. There is one tab for each main page - inside the application. - - """ - names = ['Hardware', 'Hosting', 'Others'] - attrs = [] - - for i in names: - if 'app' in page.qs.keys(): - attrs.append({'href': '/webenv/?app=' + page.qs['app'][0].lower() + '&p=' + i.lower()}) - else: - attrs.append({'href': '/webenv/?p=' + i.lower()}) - - if 'p' in page.qs.keys(): - focus = page.qs['p'][0].lower() - else: - focus = names[0].lower() - - return app.page_navibar(names, attrs, focus) - - -def page_content(): - """Returns page content. - - The page content to show is determined from the query string, - specifically from the value of `p' variable. - - """ - if 'p' in page.qs.keys(): - p = page.qs['p'][0].lower() - else: - p = 'hardware' - - if p == 'hardware': - output = app.tag_h1({'class': 'title'}, [12, 1], 'Hardware Sponsors' ) - elif p == 'hosting': - output = app.tag_h1({'class': 'title'}, [12, 1], 'Hosting Sponsors' ) - elif p == 'others': - output = app.tag_h1({'class': 'title'}, [12, 1], 'Other Sponsors' ) - else: - output = app.tag_p('', [12, 1], 'Page empty.') - - return output - - -def main(): - """Returns final output.""" - - # Define page name. This value is used as reference to determine - # which application to load and what tab in the navigation bar to - # focus on. - app.name = 'Sponsors' - - # Define page title. This value is dislayed on the browser's title - # bar. Notice that we concatenated the page class default value - # here. - app.title += ' :: Sponsors' - - # Define page header. This is the information displayed - # between the page top and the page content. - app.header = app.logo() - app.header += app.google_ad_example() - app.header += app.navibar() - app.header += app.page_links() - app.header += page_navibar() - - # Define page body. This is the information displayed between the - # page header and page footer. - app.body = page_content() - - # Define page footer. This is the information displayed between - # the page bottom and the page content, the last information - # displayed in the page. - app.footer = app.credits() - - # Define page final layout. - html = app.page() - - return html diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Unknown/__init__.py b/Automation/Python/centos-web/cgi-bin/Apps/Unknown/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Unknown/__init__.py +++ /dev/null diff --git a/Automation/Python/centos-web/cgi-bin/Apps/Unknown/page.py b/Automation/Python/centos-web/cgi-bin/Apps/Unknown/page.py deleted file mode 100755 index f7c564e..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/Unknown/page.py +++ /dev/null @@ -1,54 +0,0 @@ -"""The `Unknown' web application. - -The Unknown web application is automatically triggered when the page -requested is not defined as valid in `webenv.cgi' script. The -Unknown web application is basically an admonition message describing -the `page not found' issue and where to find the correct links to -start all over. - -""" -from Apps import page - -app = page.Layout() - - -def page_content(): - """Returns page content.""" - output = app.tag_p('', [16,1], 'The page you tried to open was not found in this server. Try one of the links above to start over.') - output = app.admonition('Warning', 'Page not found.', output) - output = app.tag_div({'id':'content-unknown'}, [8,1], output, 1) - return output - - -def main(): - """Returns final output.""" - - # Define page name. This value is used as reference to determine - # which application to load and what tab in the navigation bar to - # focus on. - app.name = 'Unknown' - - # Define page title. This value is dislayed on the browser's title - # bar. Notice that we concatenated the page class default value - # here. - app.title += ' :: Page not found' - - # Define page header. This is the information displayed - # between the page top and the page content. - app.header = app.logo() - app.header += app.google_ad_example() - app.header += app.navibar() - - # Define page body. This is the information displayed between the - # page header and page footer. - app.body = page_content() - - # Define page footer. This is the information displayed between - # the page bottom and the page content, the last information - # displayed in the page. - app.footer = app.credits() - - # Define page final layout. - html = app.page() - - return html diff --git a/Automation/Python/centos-web/cgi-bin/Apps/__init__.py b/Automation/Python/centos-web/cgi-bin/Apps/__init__.py deleted file mode 100755 index e69de29..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/__init__.py +++ /dev/null diff --git a/Automation/Python/centos-web/cgi-bin/Apps/page.py b/Automation/Python/centos-web/cgi-bin/Apps/page.py deleted file mode 100755 index 8807274..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/page.py +++ /dev/null @@ -1,936 +0,0 @@ -# Copyright (C) 2011 The CentOS Project -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ------------------------------------------------------------------ -# $Id$ -# ------------------------------------------------------------------ -"""Support page construction. - -The page construction is an XHTML document consisting of several -independent components that, when put together, provide organization -to content. Each of these components is set as a method of Layout -class that can be instantiated later from application specific modules. - -When you create a new application package, you need to create a page -module for it and instantiate the Layout class provided here inside -it. Later, the following functions must be created: page_content(), -page_navibar() and main(). These functions are used to define the -content and navigation bar of your application. Both application -content and application navigation are logically organized using -variables passed through the URL. - -Application -=========== - -URL variable: app - -This variable contains the application id. It is a unique numerical -value that starts at 0 and increments one for each new application -that might be added. The application identified by number 0 is the one -used as default when no other application is provided. The -application identified by number 0 is added to database the first time -it is created as part of the initial configuration process. - -Application is the highest level of organization inside -`webenv.cgi' script. Inside applications, there is content in form -of pages and entries. Content can be grouped by categories. - -Pages -===== - -URL variable: page - -This variable contains the page id. It is a unique numerical value -that starts at 0 and increments in one for each new page added to the -application. In contrast to applications, the page identified by -number 0 is not used as default page when no other page is provided. -This configuration is specific to each application and can be -customized inside each application individually, using string values -instead of numerical values when passing values to page variable. - -Generally, when a page variable isn't passed through the URL, the -application module uses the `content_list()' method from Layout class -to display a list of all available content entries while links to -content pages are displayed in the application navigation bar so users -can access them. The unique numerical value of content pages is -specific to each application, so there is one page 0 for each -application available. No page is added to database the first time the -database is created as part of the initial configuration process. - -Pages contain similar information to that described by contents with -few exceptions. Pages, in contrast to entries, can differentiate the -page title from the page name. The page title goes in the page content -itself and describes what the page is about with a phrase. On the -other hand, the page name is generaly one word describing the page -content and is used as link on the application navigation bar. When -no page name is explicitly provided, the first word of page title is -used instead. - -Pages are always accessible inside the same application while contents -aren't. Pages are permanently visible and linkend from each -application specific navigation bar. This kind of pages can be -managed by editors or administrators and can be marked as `draft' to -put it on a special state where it is possible for administrator, -editors and authors to work on it, but impossible for others to read -it until the page be marked as `published' by either the page author -or any members of editor's or administrator's groups. - -Pages can be converted to entires and the oposite. When convertion -occurs, unused information looses its meaning and is kept for -informative purpose, specially in situations when it might be needed -to realize a convertion back into the former state. Notice that in -order to realize such a back and forth convertion it is required that -both pages and entires share the same definition structure. In fact, -that they be the same thing, but able to differentiate themselves -either as page or entry (e.g., through a `type' field.). - -Pages content is under version control. When a page (or entry) is -changed, a verification is performed to determine whether the -information entered in edition matches the last record in the page -history table. When both the information coming from edition and the -last record in the page history table are the same (e.g., no change -happened) the edition action is cancelled and a message is printed out -to notify the action. Otherwise, when the information entered in -edition differs from the last record in the page history table, the -information comming from edition passes to be the last record in the -page history table. In case, a page be reverted to a revision -different to that one being currently the active page, the reverted -revision becomes the active page (e.g., by changing a `status' field -from `false' to `true' in the history table). - -Categories -========== - -Categories exists to organize contents. When an entry is created it is -automatically linked to a category. Categories are managed by -administrators and editors only. Categories can be nested one another -and provide another way of finding information inside the web -environment. Categories are specific to each web application, just as -contents and pages are. The `Unknown' category is created when the -categories table is created for first time, as part of the initial -configuration process so if no explicit category assignation is set by -the user, a default value (the `Unknown' category in this case) is -used to satisfy the connection between contents and categories. - -Referential integrity -===================== - -Referential integrity is not handle in the logic layer provided by -this module, but set inside the database system used to store the -information handled by this module. The most we do about it here, is -to display a confirmation message before committing such actions, so -you can be aware of them. - -""" - -import cgi -import cgitb; cgitb.enable() -import ConfigParser -from Apps import xhtml - -config = ConfigParser() -qs = cgi.parse() - -def qs_args(names={}): - """Returns query string arguments. - - The query string arguments are used to build links dynamically - and, this way, to create a browsable and logically organized web - environment. Such a construction generally needs to retrive some - of the values previously passed to the query string and add new - ones to it. - - names: A dictionary containing the variable name and value pair - used to build a new query string. - - When a variable is provied without a value, then its value is - retrived from the current query string. If a value isn't found - there neither, then the variable is removed from the new query - string. - - When a variable is provided with its value, then its value is used - to build the new query string. - - """ - output = '' - - names_keys = names.keys() - names_keys.sort() - - for key in names_keys: - if names[key] == '': - if key in qs: - names[key] = qs[key][0] - else: - continue - if output == '': - output = '?' - else: - output += '&' - output += key + '=' + str(names[key]) - - return config.get('webserver', 'baseurl') + output - -class Layout(xhtml.Strict): - """The Page Layout. - - The page layout is made by combining XHTML tags in specific ways. - These specific combinations make the page components which in turn - can be also combined. Some of these components can be reused and - others don't. The goal of this class is to define what such - components are and describe them well in order to understand how - to use them from application modules when building XHTML documents - dynamically. - - The page layout is initialized with a functional layout that can - be used as reference inside application modules, to create - variations of it. Generally, inside application packages, this - class is instantiated in a module named `page', variables are - reset and functions created in order to satisfy that application - needs. When you need to output one of the page components then you - use this class instantiated methods. When the method you need - doesn't exist in this class, then it is a good time for it to be - created, here ;). - - Notice that most methods defined in this class make direct use of - methods defined by Strict class inside the `xhtml' module. The - Strict class inside xhtml module is inherited inside this class so - all the methods there are also available here. Methods which - doesn't make a direct use of Strict methods are dependencies of - those which do make direct use of Strict methods. - - """ - - def __init__(self): - """Initialize page data.""" - self.name = 'Home' - self.title = 'The CentOS Project' - self.description = 'Community Enterprise Operating System' - self.keywords = 'centos, project, community, enterprise, operating system' - self.copyright = '2009-2011 The CentOS Project. All rights reserved.' - self.language = 'en' - - # Define page header. This is the information displayed - # between the page top and the page content. - self.header = self.logo() - self.header += self.google_ad() - self.header += self.navibar() - self.header += self.releases() - self.header += self.page_links() - self.header += self.page_navibar() - - # Define page body. This is the information displayed between - # the page header and page footer. - self.body = 'None' - - # Define page footer. This is the information displayed - # between the page bottom and the page content, the last - # information displayed in the page. - self.footer = self.credits() - - def logo(self): - """Returns The CentOS Logo. - - The page logo is displayed on the top-left corner of the page. - We use this area to show The CentOS Logo, the main visual - representation of The CentOS Project. In order to print the - page logo correctly, the image related must be 78 pixels of - height. - - """ - attrs = [] - attrs.append({'id': 'logo'}) - attrs.append({'title': 'Community Enterprise Operating System', 'href': '/webenv/'}) - attrs.append({'src': config.get('webserver','baseurl') + 'public/images/centos-logo.png', 'alt': 'CentOS'}) - - return self.tag_div(attrs[0], [8,1], self.tag_a(attrs[1], [12,1], self.tag_img(attrs[2], [0,0]), 0), 1) - - def google_ad_example(self): - """Returns Google advertisement for offline testings.""" - title = 'Google Advertisement' - url = config.get('webserver','baseurl') + 'public/images/ads-sample-468x60.png' - image = self.tag_img({'src': url, 'alt': title}, [0,0]) - link = self.tag_a({'href': url, 'title': title}, [12,1], image) - output = self.tag_div({'class':'google-ad'}, [8,1], link, 1) - output += self.separator({'class':'page-line'}, [8,1]) - - return output - - def google_ad(self): - """Returns Google advertisement for online using.""" - - properties = {} - properties['google_ad_client'] = 'pub-6973128787810819' - properties['google_ad_width'] = '468' - properties['google_ad_height'] = '60' - properties['google_ad_format'] = '468x60_as' - properties['google_ad_type'] = 'text_image' - properties['google_ad_channel'] = '' - properties['google_color_border'] = '204c8d' - properties['google_color_bg'] = '345c97' - properties['google_color_link'] = '0000FF' - properties['google_color_text'] = 'FFFFFF' - properties['google_color_url'] = '008000' - - attrs = {} - attrs['type'] = "text/javascript" - - output = '\n' - - properties = self.tag_script(attrs, [12,1], output, 1) - - attrs['src'] = "http://pagead2.googlesyndication.com/pagead/show_ads.js" - - source = self.tag_script(attrs, [12,1], ' ', 0) - - output = self.tag_div({'class':'google-ad'}, [8,1], properties + source, 1) - output += self.separator({'class':'page-line'}, [8,1]) - - return output - - def navibar(self): - """Returns webenv navigation bar. - - The webenv navigation bar organizes links to main web - applications The CentOS Project makes use of. Links to these - web applications stay always visible, no matter what web - application the user be visiting (e.g., Wiki, Lists, Forums, - Projects, Bugs, Docs, Downloads and Sponsors.). Notice that - some of these web applications are out of `webenv.cgi' - scope and they need to code their own webenv navigation bars - in a way that coincide the one set by `webenv.cgi'. - - """ - names = ['Home', 'Wiki', 'Lists', 'Forums', 'Projects', 'Bugs', 'Docs', 'Downloads', 'Sponsors'] - attrs = [] - focus = self.name - - for i in range(len(names)): - if names[i].lower() == 'home': - attrs.append({'href': '/webenv/'}) - else: - attrs.append({'href': '/webenv/?app=' + names[i].lower()}) - - tabs = self.navibar_tabs(names, attrs, focus) - tabs += self.separator() - - return tabs - - def navibar_tabs(self, names, attrs, focus=''): - """Returns navigation tabs. - - The navigation tabs are the smaller components a navigation - bar like "top-level navigation bar" and "application - navigation bar" are made of. - - names: List containing link names of tabs. - - attrs: List containing a dictionary for each tab link name - inside the `names' list. Dictionaries inside attrs - argument contain the link attributes (e.g., accesskey, - title, and href) used by link names so they can be - linkable once rendered. - - focus: Name of the link marked as current. - - """ - navibar_tabs = '' - - for i in range(len(names)): - output = self.tag_span('', [0,0], str(names[i])) - output = self.tag_a(attrs[i], [16,1], output) - if str(names[i]).lower() == focus.lower(): - output = self.tag_span({'class': 'current'}, [12,1], output, 1) - else: - output = self.tag_span('', [12,1], output, 1) - navibar_tabs += output - - return self.tag_div({'class': 'tabs'}, [8,1], navibar_tabs, 1) - - def releases(self): - """Returns The CentOS Distribution last releases. - - This method introduces the `releases' method by providing - links to it. - - names: List containing release numbers in the form M.N, where M - means major release and N minor release. - - attrs: List containing a dictionary for each release number - provided in `names' argument. These dictionaries provide - the link attributes required by release numbers in order - for them to be transformed into valid links once the page - be rendered. - - """ - releases = '' - - names = [] - names.append('6.0') - - attrs = [] - attrs.append({'href': qs_args({'p':'releases', 'id': 6.0})}) - - - title = self.tag_a({'href': qs_args({'p':'releases'})}, [0,0], 'Last Releases') + ':' - title = self.tag_span({'class': 'title'}, [16,1], title) - - for i in range(len(names)): - link = self.tag_a(attrs[i], [20,1], names[i]) - if i == len(names) - 1: - span = self.tag_span({'class': 'last release'}, [16,1], link, 1) - else: - span = self.tag_span({'class': 'release'}, [16,1], link, 1) - releases += span - releases = self.tag_div({'class': 'left'}, [12,1], title + releases, 1) - - rsslink = self.tag_span('', [0,0], 'RSS') - rsslink = self.tag_a({'href': qs_args({'rss':'releases'}), 'title': 'RSS'}, [20,1], rsslink) - rsslink = self.tag_span({'class': 'rss'}, [16,1], rsslink, 1) - rsslink = self.tag_div({'class': 'right'}, [12, 1], rsslink, 1) - - return self.tag_div({'id': 'last-releases'}, [8,1], releases + rsslink, 1) - - def user_links_logs(self): - """Return links related to user's logs. - - This function introduces the `logs' module. The `logs' module - registers all user's activity, from login to logout. This link - must be display/accessible only after a user has successfully - login. - - """ - last_visit = self.tag_a({'href': qs_args({'app':'', 'p':'logs'})}, [0,0], 'Logs') - return self.tag_div({'class': 'logs'}, [12, 1], last_visit, 1) - - def user_links_session(self): - """Returns links related to user's session. - - This function introduces the `session' module. The `session' - module provides state to user interactions so their action can - be registered individually. - - """ - names = [] - attrs = [] - session = '' - - names.append('Lost your password?') - attrs.append({'href': qs_args({'app':'', 'p':'lostpwd'})}) - names.append('Register') - attrs.append({'href': qs_args({'app':'', 'p':'register'})}) - names.append('Login') - attrs.append({'href': qs_args({'app':'', 'p':'login'})}) - - for i in range(len(names)): - output = self.tag_a(attrs[i], [20,1], str(names[i]), 0) - if i == len(names) - 1: - output = self.tag_span({'class': 'last'}, [16,1], output, 1) - else: - output = self.tag_span('', [16,1], output, 1) - session += output - - return self.tag_div({'class': 'session'}, [12,1], session, 1) - - def user_links_trails(self, names=['None'], attrs=[{'href': '/webenv/'}]): - """Returns page trails (a.k.a. breadcrumbs). - - The page breadcrumbs record the last pages the user visited - inside the current web application. Notice that page - breadcrumbs are user-specific information, so it isn't - possible to implement them until a way to manage user sessions - be implemeneted inside `webenv.cgi' script. Until then, - keep the tag construction commented and return an empty value. - - names: List with trail link names. - - attrs: Dictionary with trail link attributes. - - """ - links = '' - - for i in range(len(names)): - if i == len(names) - 1: - output = self.tag_span({'class':'last'}, [16,1], self.tag_a(attrs[i], [20, 1], names[i]), 1) - else: - output = self.tag_span('', [16,1], self.tag_a(attrs[i], [20, 1], names[i], 0), 1) - links += output - - return self.tag_div({'class': 'trail'}, [12,1], links, 1) - - def user_links(self): - """Returns user related links. - - The user links are specific to each web application. They are - shown over the application navigation bar. - - """ - userlinks = self.user_links_logs() - userlinks += self.user_links_session() - userlinks += self.user_links_trails() - - return self.tag_div({'class': 'userlinks'}, [8,1], userlinks, 1) - - def page_navibar(self, names=['Welcome'], attrs=[{'href':'/webenv/?p=welcome'}], focus='Welcome'): - """Returns navigation bar for application main pages. - - names: List containing link names. - - attrs: List containing one dictionary for each link name in - `names' argument. Dictionaries here contain the link - attributes needed to make linkable tabs once the page is - rendered. - - """ - navibar_app = self.navibar_tabs(names, attrs, focus) - navibar_app += self.separator({'class': 'page-line white'}, [8,1]) - - return navibar_app - - def separator(self, attrs={'class': 'page-line'}, indent=[16,1]): - """Returns separator. - - The separator construction is mainly used to clear both sides - inside the page, specially when floating elements are around. - - attrs: Dictionary containing hr's div attributes. - - indent: List containing hr's div indentation values. - - """ - line = self.tag_hr({'style': 'display:none;'}, [0,0]) - line = self.tag_div(attrs, indent, line) - - return line - - def license(self): - """Retruns license link.""" - license = 'Creative Commons Attribution-Share Alike 3.0 Unported License' - license = self.tag_a({'href': 'http://creativecommons.org/licenses/by-sa/3.0/'}, [0,0], license) + '.' - - return license - - def metadata(self): - """Returns metadata.""" - metadata = self.tag_meta({'http-equiv': 'content-type', 'content': 'text/html; charset=UTF-8'}, [4,1]) - metadata += self.tag_meta({'http-equiv': 'content-style-type', 'content': 'text/css'}, [4,0]) - metadata += self.tag_meta({'http-equiv': 'content-language', 'content': str(self.language)}, [4,1]) - metadata += self.tag_meta({'name': 'keywords', 'content': str(self.keywords)}, [4,0]) - metadata += self.tag_meta({'name': 'description', 'content': str(self.description)}, [4,1]) - metadata += self.tag_meta({'name': 'copyright', 'content': 'Copyright © ' + str(self.copyright)}, [4,0]) - metadata += self.tag_title('', [4,1], self.title) - metadata += self.tag_link({'href': config.get('webserver','baseurl') + 'public/stylesheet.css','rel': 'stylesheet', 'type': 'text/css'}, [4,0]) - metadata += self.tag_link({'href': config.get('webserver','baseurl') + 'public/centos-fav.png', 'rel': 'shortcut icon', 'type': 'image/png'}, [4,1]) - - return self.tag_head('', [0,1], metadata) - - def searchform(self, size=15): - """Returns search form. - - The search form redirects user from the current page onto the - search page, where the keywords previously introduced in the - input field are processed then. - - size: A number discribing how large the search box is. - - """ - input = self.tag_input({'type':'text', 'value':'', 'size':size}, [0,0]) - - action = self.tag_dt({}, [20,1], 'Search') - action += self.tag_dd({}, [20,1], input) - action = self.tag_dl({'class':'search'}, [16,1], action, 1) - - return self.tag_form({'action': qs_args({'app':'', 'p':'search'}), - 'method':'post', 'title':'Search'}, - [12,1], action, 1) - - def content_resumen(self, attrs, id, title, user_id, commit_date, - update_date, category_id, comments, abstract): - """Returns content resumen. - - The content resumen is used to build the list of contents, - output by `content_list()' method. The content resumen intends - to be concise and informative so the user can grab a general - idea about the related content and what it is about. - - attrs: A dictionary discribing the rows style. This is useful - to alternate the row background colors. - - id: A unique numerical value referring the content - identification. This is the value used on administrative - tasks like updating and deleting. - - title: A few words phrase describing the content, up to 255 - characters. - - author_id: A string referring the user email address, as - specified by RFC2822. The user email address is used as id - inside The CentOS User LDAP server, where user specific - information (e.g., surname, lastname, office, phone, etc.) - are stored in. This is the field that bonds the user with - the content he/she produces. - - commit_date: A string referring the timestamp the content - arrived to database for time. - - update_date: A string representing the timestamp the content - was updated/revised for last time. - - category_id: A number refering the category id the content is - attached to. - - abstract: One paragraphs describing the content. This - information is used to build the page metadata - information. When this value is not provided no abstract - information is displayed in the page, but the is built using article's first 255 - characters. - - comments: A number representing how many comments the content - has received since it is in the database. - - The content itself is not displayed in the resumen, but in - `content_details()'. - - """ - title = self.tag_a({'href': qs_args({'app':'', 'p':'entry', 'id':id})}, [0,0], title) - title = self.tag_h3({'class': 'title'}, [20,1], title, 0) - info = self.content_info(id, user_id, commit_date, - update_date, category_id, comments, - abstract) - return self.tag_div(attrs, [16,1], title + info, 1) - - def pagination(self): - """Return content pagination.""" - previous = self.tag_a({'href':''}, [0,0], 'Previous') - previous = self.tag_span({'class':'previous'}, [20,1], previous) - next = self.tag_a({'href':''}, [0,0], 'Next') - next = self.tag_span({'class':'next'}, [20,1], next) - separator = self.separator({'class':'page-line'}, [20,1]) - return self.tag_div({'class':'pagination'}, [16,1], previous + - next + separator, 1) - - def content_info(self, content_id, user_id, commit_date, - update_date, category_id, comments, abstract): - """Return content information. - - The content information provides a reduced view of content so - people can make themselves an idea of what the content talks - about. The content information displays content's title, - author, timestamp, related category, number of comments and an - abstract of the whole content. - - """ - categories = [] - categories.append('Unknown') - categories.append('Erratas') - categories.append('Articles') - categories.append('Events') - - if category_id <= len(categories): - category_name = categories[category_id].capitalize() - else: - category_id = 0 - category_name = categories[category_id].capitalize() - - category_name = self.tag_a({'href': qs_args({'app':'', 'p':'categories', 'id':category_id})}, [0,0], category_name) - category_name = self.tag_span({'class':'category'}, [24,1], category_name) - - users = {} - users['al@centos.org'] = 'Alain Reguera Delgado' - users['ana@centos.org'] = 'Ana Tamara Reguera Gattorno' - users['alina@centos.org'] = 'Alina Reguera Gattorno' - - if user_id in users.keys(): - user_name = self.tag_a({'href':'mailto:' + user_id}, [0,0], users[user_id]) - user_name = self.tag_span({'class':'author'}, [24,1], 'Written by ' + user_name) - - if update_date != commit_date: - date = self.tag_span({'class':'date'}, [24,1], update_date) - else: - date = self.tag_span({'class':'date'}, [24,1], commit_date) - - - comments_attrs = {'href': qs_args({'app':'', 'p':'entry', 'id':content_id}) + '#comments'} - if comments == 1: - comments = self.tag_a(comments_attrs, [0,0], str(comments) + ' comment') - elif comments > 1: - comments = self.tag_a(comments_attrs, [0,0], str(comments) + ' comments') - else: - comments = 'No comments' - comments = self.tag_span({'class':'comment'}, [24,1], comments) - - abstract = self.tag_p({'class':'abstract'}, [24,1], abstract) - - return self.tag_div({'class': 'info'}, [20,1], user_name + date + category_name + comments + abstract, 1) - - def content_list(self): - """Return list of content. - - The list of content is used to explore the content available - inside specific pages of specific web applications. The - information is displayed through paginated rows of content - that can be filtered to reduce the search results based on - patterns. By default, the list of content displays 15 rows, - but this value can be changed in user's preferences. - - """ - output = '' - count = 0 - rows = [] - rows.append([0, 'Introduction to CentOS Web Environment', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 0, - 0, - 'This is the abstract paragrah of content. '*10]) - rows.append([1, 'Creating New Applications', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 2, - 1, - 'This is the abstract paragrah of content. '*5]) - rows.append([2, 'Texinfo Documentation Backend', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 1, - 5, - 'This is the abstract paragrah of content. '*8]) - - for row in rows: - if count == 0: - attrs = {'class': 'dark row'} - count += 1 - else: - attrs = {'class': 'light row'} - count = 0 - output += self.content_resumen(attrs, *row) - - list = output + self.pagination() + self.separator() - list = self.tag_div({'id':'content-list'}, [12,1], list, 1) - actions = self.searchform() + self.categories() + self.archives() - actions = self.tag_div({'id':'content-actions'}, [8,1], actions, 1) - - return actions + list - - def content_details(self): - """Return content details. - - The content detail is shown for contents and pages. - """ - output = '' - rows = [] - rows.append([0, 'Introduction to CentOS Web Environment', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 0, - 0, - 'This is the abstract paragrah of content. '*10, - 'This is the first paragraph of content'*10 + "\n" - 'This is the second paragraph of content'*20 + - "\n" + 'This is the third paragraph of content.'*10 + "\n"]) - rows.append([1, 'Creating New Applications', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 2, - 1, - 'This is the abstract paragrah of content. '*5, - "This is the first paragraph of content\n\ - This is the second paragraph of content.\n\ - This is the third paragraph of content."]) - rows.append([2, 'Texinfo Documentation Backend', - 'al@centos.org', - '2011-8-30 12:33:11', - '2011-8-30 12:33:11', - 1, - 5, - 'This is the abstract paragrah of content. '*8, - "This is the first paragraph of content.\n\ - This is the second paragraph of content.\n\ - This is the third paragraph of content."]) - - if 'id' in qs: - id = int(qs['id'][0]) - title = rows[id][1] - email = rows[id][2] - commit_date = rows[id][3] - update_date = rows[id][4] - category = rows[id][5] - comments = rows[id][6] - abstract = self.tag_p({}, [0,0], rows[id][7]) - - output = self.tag_h1({'class':'title'}, [12,1], title) - output += self.content_info(id, email, commit_date, update_date, category, comments, abstract) - output += self.tag_p({}, [20,1], rows[id][8]) - output += self.comments() - - return self.tag_div({'id':'content-details'}, [12,1], output, 1) - - def comments(self): - """Returns content specific list of comments. - - """ - output = self.tag_a({'name':'comments'}, [0,0], 'Comments') - output = self.tag_h2({'class':'title comments'}, [12,1], output, 0) - - return output - - def categories(self): - """Returns list of categories. - - """ - categories = ['Unknown', 'Articles', 'Erratas', 'Events'] - dt = self.tag_dt({}, [16,1], 'Categories') - dd = '' - for id in range(len(categories)): - category_attrs = {'href': qs_args({'app':'', 'p':'categories', 'id':id})} - a = self.tag_a(category_attrs, [0,0], categories[id] + ' (0)') - dd += self.tag_dd({}, [16,1], a) - - return self.tag_dl({},[12,1], dt + dd, 1) - - def archives(self): - """Returns archives.""" - archives = {} - archives['2011'] = ['January', 'February', 'March', 'April', 'May'] - archives['2010'] = ['January', 'February'] - - dt = self.tag_dt({}, [16,1], 'Archives') - year_dl = '' - year_dd = '' - - for key in archives.keys(): - year_dt = self.tag_dt({},[20,1], key) - for id in range(len(archives[key])): - a = self.tag_a({'href': qs_args({'app':'', 'p':'archives', 'year': key, 'month': id + 1})}, [0,0], archives[key][id] + ' (0)') - year_dd += self.tag_dd({}, [20,1], a) - year_dl += self.tag_dl({'class':'year'}, [16,1], year_dt + year_dd, 1) - year_dd = '' - - return self.tag_dl({},[12,1], dt + year_dl, 1) - - def page_top(self): - """Returns page top anchor.""" - return self.tag_a({'name':'top'}, [0,1]) - - def page_header(self): - """Returns page header. - - The page_header is common to all application modules and - """ - return self.tag_div({'id': 'page-header'}, [4,1], self.header, 1) - - def page_body(self): - """Returns page body. - - The page_body is specific to each application module and is - there where it must be constructed. The construction itself - takes place through the `page_content()' function which does a - return through an instantiated `content_' prefixed method. - The `content_' prefixed method used depends on the kind of - content you want to print out (e.g., `content_list()' for a - content list, `detail()' for a detailed view of content, - etc.). Later, the `body' variable instantiated from this class - is reset in the `main()' function with the value returned from - `page_content()' so the desired content layout can be printed - out. - - """ - return self.tag_div({'id':'page-body'}, [4,1], self.body, 1) - - def page_links(self): - """Returns page links.""" - page_links = self.user_links() - return self.tag_div({'id': 'pagelinks'}, [8,1], page_links, 1) - - def page_footer(self): - """Retruns page footer.""" - return self.tag_div({'id': 'page-footer'}, [4,1], self.credits(), 1) - - def page_wrap(self): - """Returns page wrap.""" - return self.tag_div({'id': 'wrap'}, [0,1], self.page_header() + self.page_body() + self.page_footer(), 1) - - def admonition(self, title='Note', subtitle="", body=""): - """Returns page admonition. - - title: Admonition's title. - - subtitle: Admonition's subtitle. The value of this argument is - concatenated on the right side of title using a colon (:) - as separator. Notice that this value is expanded inside - the

    tag and there is no need to introduce extra tags - here. - - body: Admonition's body. The values passed through this - arguments needs to be XHTML code returned from - `self.tag()'. Preferably, paragraphs (p), tables (table), - lists (ul, ol, dl) and pre-formatted texts (pre). - - """ - if title == '': - return '' - else: - title = str(title.capitalize()) - - if subtitle != '': - subtitle = ': ' + str(subtitle.capitalize()) - - if body != '': - body = str(body) - - admonitions = ['Note', 'Tip', 'Important', 'Caution', 'Warning', 'Redirected', 'Success', 'Error'] - - if title in admonitions: - attrs = {'class': 'admonition ' + title.lower()} - image = self.tag_img({'src': config.get('webserver','baseurl') + 'public/images/' + title.lower() + '.png', 'alt': title}, [16,1]) - title = self.tag_h3({'class': 'title'}, [16,1], title + subtitle, 0) - output = image + title + body + self.separator() - else: - attrs = {'class': 'admonition unknown'} - title = self.tag_h3({'class': 'title'}, [16,1], title + subtitle, 1) - output = title + body - - return self.tag_div(attrs, [12,1], output, 1) - - def credits(self): - """Returns page credits.""" - copyright = self.tag_p({'class': 'copyright'}, [12,1], 'Copyright © ' + str(self.copyright)) - license = self.tag_p({'class': 'license'}, [12,1], 'This website is licensed under a ' + str(self.license())) - credits = self.tag_img({'src': config.get('webserver','baseurl') + 'public/images/top.png', 'alt': 'Top'}, [0,0]) - credits = self.tag_a({'title': 'Top', 'href': '#top'}, [16,1], credits) - credits = self.tag_div({'class': 'top'}, [12,1], credits, 1) - credits = str(credits) + str(copyright) + str(license) - credits = self.tag_div({'class': 'credits'}, [8,1], credits, 1) - - return credits - - def page(self): - """Returns page final output.""" - html = self.doctype() - html += self.tag_html({'xmlns': 'http://www.w3.org/1999/xhtml', 'dir': 'ltr', - 'lang': str(self.language), 'xml:lang': str(self.language)}, [0,1], - self.metadata() + self.page_top() + self.page_wrap()) - - return html diff --git a/Automation/Python/centos-web/cgi-bin/Apps/xhtml.py b/Automation/Python/centos-web/cgi-bin/Apps/xhtml.py deleted file mode 100755 index be646b5..0000000 --- a/Automation/Python/centos-web/cgi-bin/Apps/xhtml.py +++ /dev/null @@ -1,1451 +0,0 @@ -# Copyright (C) 2011 The CentOS Project -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ------------------------------------------------------------------ -# $Id$ -# ------------------------------------------------------------------ -"""Support XHTML construction. - -XHTML construction, as set here, uses the Extensible HTML version 1.0 -DTDs (/usr/share/sgml/xhtml1/xhtml1-20020801/DTD/) as reference. XHTML -construction is required by page module. -""" - - -class Strict: - """Implements XHTML strict document type definition.""" - - - # Core attributes common to most elements. - coreattrs = ['id', # document-wide unique id - 'class', # space separated list of classes - 'style', # associated style info - 'title' # advisory title/amplification - ] - - # Internationalization attributes. - i18n = ['lang', # language code (backwards compatible) - 'xml:lang', # language code (as per XML 1.0 spec) - 'dir' # direction for weak/neutral text - ] - - # Attributes for common UI events. - events = ['onclick', # a pointer button was clicked - 'ondblclick', # a pointer button was double clicked - 'onmousedown', # a pointer button was pressed down - 'onmouseup', # a pointer button was released - 'onmousemove', # a pointer was moved onto the element - 'onmouseout', # a pointer was moved away from the element - 'onkeypress', # a key was pressed and released - 'onkeydown', # a key was pressed down - 'onkeyup' # a key was released - ] - - # Attributes for elements that can get the focus. - focus = ['accesskey', # accessibility key character - 'tabindex', # position in tabbing order - 'onfocus', # the element got the focus - 'onblur' # the element lost the focus - ] - - # Attributes generic format. - attrs = coreattrs + i18n + events - - - def __init__(self): - """Initialize class data.""" - pass - - - def tag(self, name, attrs, indent=[8,1], content="", has_child=0): - """Returns generic XHTML tag definition. - - Arguments: - - name: The XHTML tag's name. Notice that this function doesn't - verify nor validate the XHTML tags you provide. It is up - to you write them correctly considering the XHTML standard - definition. - - attrs: The XHTML tag's attribute. Notice that this function - doesn't verify the attributes assignation to tags. You - need to know what attributes are considered valid to the - tag you are creating in order to build a well-formed XHTML - document. Such verification can be achived inside firefox - browser through the `firebug' plugin. - - indent: The XHTML tag's indentation (Optional). This argument - is a list of two numerical values. The first value in the - list represents the amount of horizontal spaces between - the beginning of line and the opening tag. The second - value in the list represents the amount of vertical spaces - (new lines) between tags. - - content: The XHTML tag's content (Optional). This argument - provides the information the tag encloses. When this - argument is empty, tag is rendered without content. - - has_child: The XHTML tag has a child? (Optional). This - argument is specifies whether a tag has another tag inside - (1) or not (0). When a tag has not a child tag, - indentation is applied between the tag content and the - closing tag provoking an unecessary spaces to be shown. - Such kind of problems are prevented by setting this option - to `0'. On the other hand, when a tag has a child tag - inside, using the value `1' will keep the closing tag - indentation aligned with the opening one. - - This function encapsulates the construction of XHTML tags. - Use this function wherever you need to create XHTML tags. It - helps to standardize tag constructions and their final output - and. This function provides a consistent way of producing - output for XHTML documents. - """ - if indent[0] > 0: - h_indent = ' '*indent[0] - else: - h_indent = '' - - if indent[1] > 0: - v_indent = "\n"*indent[1] - else: - v_indent = '' - - output = v_indent + h_indent + '<' + str(name) - if len(attrs) > 0: - attr_names = attrs.keys() - attr_names.sort() - for attr_name in attr_names: - output += ' ' + str(attr_name) + '="' + str(attrs[attr_name]) + '"' - if content == '': - output += ' />' - else: - output += '>' - output += str(content) - if has_child == 1: - output += h_indent + '' - else: - output += '' - output += v_indent - - return output - - - # ------------------------------------------------------------------ - # Document Type Definition - # ------------------------------------------------------------------ - - def doctype(self): - """Return document type definition.""" - output = '' + "\n" - output += '' + "\n" - - return output - - - # ------------------------------------------------------------------ - # Document Structure - # ------------------------------------------------------------------ - - def tag_html(self, attrs, indent, content, has_child=1): - """Returns document structure definition. - - - - - The namespace URI designates the document profile. - - """ - return self.tag('html', attrs, indent, content, has_child=1) - - - # ------------------------------------------------------------------ - # Document Head - # ------------------------------------------------------------------ - - def tag_head(self, attrs, indent, content, has_child=1): - """Returns document head definition. - - - - - - - Content model is %head.misc; combined with a single title and - an optional base element in any order. - - """ - return self.tag('head', attrs, indent, content, has_child) - - - def tag_title(self, attrs, indent, content, has_child=0): - """Returns title definition. - - - - - The title element is not considered part of the flow of text. - It should be displayed, for example as the page header or - window title. Exactly one title is required per document. - - """ - return self.tag('title', attrs, indent, content, has_child) - - - def tag_base(self, attrs, indent): - """Returns document base URI. - - - - - """ - return self.tag('base', attrs, indent) - - - def tag_meta(self, attrs, indent): - """Returns generic metainformation. - - - - - """ - return self.tag('meta', attrs, indent) - - - def tag_link(self, attrs, indent): - """Returns relationship values. - - - - - Relationship values can be used in principle: - - a) for document specific toolbars/menus when used with the - link element in document head e.g. start, contents, - previous, next, index, end, help. - - b) to link to a separate style sheet (rel="stylesheet"). - - c) to make a link to a script (rel="script"). - - d) by stylesheets to control how collections of html nodes - are rendered into printed documents. - - e) to make a link to a printable version of this document - e.g. a PostScript or PDF version (rel="alternate" - media="print"). - - """ - return self.tag('link', attrs, indent) - - - def tag_style(self, attrs, indent, content, has_child=0): - """Returns style info. - - - - - """ - return self.tag('style', attrs, indent, content, has_child) - - - def tag_script(self, attrs, indent, content="", has_child=0): - """Returns script statement. - - - - - - """ - return self.tag('script', attrs, indent, content, has_child) - - - def tag_noscript(self, attrs, indent, content, has_child=1): - """Returns alternate content container for non script-based - rendering. - - - - - """ - return self.tag(self, attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Document Body - # ------------------------------------------------------------------ - - def tag_body(self, attrs, indent, content, has_child=1): - """Returns document body definition. - - - - - """ - return self.tag('body', attrs, indent, content, has_child) - - - def tag_div(self, attrs, indent, content, has_child=0): - """Returns generic language/style container. - - - - - """ - return self.tag('div', attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Paragraphs - # ------------------------------------------------------------------ - - def tag_p(self, attrs, indent, content, has_child=0): - """Returns paragraph definition. - - - - - When content is introduced inside the database, it goes - without any XHTML markup. This method transforms newline - separated strings into XHTML paragraphs. - - """ - output = '' - for line in content.splitlines(): - if line == '': continue - output += self.tag('p', attrs, indent, line.strip(), has_child) - return output - - - # ------------------------------------------------------------------ - # Headings - # ------------------------------------------------------------------ - # There are six levels of headings from h1 (the most important) to - # h6 (the least important). - # ------------------------------------------------------------------ - - def tag_h1(self, attrs, indent, content, has_child=0): - """Returns h1 definition. - - - - - """ - return self.tag('h1', attrs, indent, content, has_child) - - - def tag_h2(self, attrs, indent, content, has_child=0): - """Returns h2 definition. - - - - - """ - return self.tag('h2', attrs, indent, content, has_child) - - - def tag_h3(self, attrs, indent, content, has_child): - """Returns h3 definition. - - - - - """ - return self.tag('h3', attrs, indent, content, has_child) - - - def tag_h4(self, attrs, indent, content, has_child): - """Returns h4 definition. - - - - - """ - return self.tag('h4', attrs, indent, content, has_child) - - - def tag_h5(self, attrs, indent, content, has_child=0): - """Returns h5 definition. - - - - - """ - return self.tag('h5', attrs, indent, content, has_child) - - - def tag_h6(self, attrs, indent, content, has_child=0): - """Returns h6 definition. - - - - - """ - return self.tag('h6', attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Lists - # ------------------------------------------------------------------ - - def tag_ul(self, attrs, indent, content, has_child=1): - """Returns unordered list definition. - - - - - """ - return self.tag('ul', attrs, indent, content, has_child) - - - def tag_ol(self, attrs, indent, content, has_child=1): - """Returns ordered (numbered) list definition. - - - - - """ - return self.tag('ol', attrs, indent, content, has_child) - - - def tag_li(self, attrs, indent, content, has_child=0): - """Returns item definition for both ordered (ol) and unordered - (ul) lists. - - - - - """ - return self.tag('li', attrs, indent, content, has_child) - - - def tag_dl(self, attrs, indent, content, has_child=1): - """Returns definition list definition. - - - - - """ - return self.tag('dl', attrs, indent, content, has_child) - - - def tag_dt(self, attrs, indent, content, has_child=0): - """Returns term of definition lists. - - - - - """ - return self.tag('dt', attrs, indent, content, has_child) - - - def tag_dd(self, attrs, indent, content, has_child=0): - """Returns definition of definition lists. - - - - - """ - return self.tag('dd', attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Address - # ------------------------------------------------------------------ - - def tag_address(self, attrs, indent, content='', has_child=0): - """Returns information on author. - - - - - """ - return self.tag('address', attrs, indent, content) - - - # ------------------------------------------------------------------ - # Horizontal Rule - # ------------------------------------------------------------------ - - def tag_hr(self, attrs, indent): - """Returns horizontal rule. - - - - - """ - return self.tag('hr', attrs, indent) - - - # ------------------------------------------------------------------ - # Preformatted text - # ------------------------------------------------------------------ - - def tag_pre(self, attrs, indent, content): - """Returns preformatted text. - - - - - content is %Inline; excluding "img|object|big|small|sub|sup" - - """ - return self.tag('pre', attrs, indent, content) - - - # ------------------------------------------------------------------ - # Block-line Quotes - # ------------------------------------------------------------------ - - def tag_blockquote(self, attrs, indent, content): - """Returns block-line quote. - - - - - """ - return self.tag('blockquote', attrs, indent, content) - - - # ------------------------------------------------------------------ - # Inserted/Deleted Text - # ------------------------------------------------------------------ - - def tag_ins(self, attrs, indent, content): - """Returns inserted text. - - - - - Inserted texts are allowed in block and inline content, but - its inappropriate to include block content within an ins - element occurring in inline content. - - """ - return self.tag('ins', attrs, indent, content) - - - def tag_del(self, attrs, indent, content): - """Returns deleted text. - - - - - Deleted texts are allowed in block and inline content, but its - inappropriate to include block content within an ins element - occurring in inline content. - - """ - return self.tag('ins', attrs, indent, content) - - - # ------------------------------------------------------------------ - # The Anchor Element - # ------------------------------------------------------------------ - - def tag_a(self, attrs, indent, content='', has_child=0): - """Returns the anchor element. - - - - - content is %Inline; except that anchors shouldn't be nested. - """ - return self.tag('a', attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Inline Elements - # ------------------------------------------------------------------ - - def tag_span(self, attrs, indent, content, has_child=0): - """Returns span definition. - - - - - """ - return self.tag('span', attrs, indent, content, has_child) - - - def tag_dbo(self, attrs, indent, content, has_child=0): - """Returns dbo definition. - - - - - """ - return self.tag('dbo', attrs, indent, content, has_child) - - - def tag_br(self, attrs, indent): - """Returns break definition. - - - - - """ - return self.tag('br', attrs, indent) - - - def tag_em(self, attrs, indent, content, has_child=0): - """Returns emphasis definition. - - - - - """ - return self.tag('em', attrs, indent, content, has_child) - - - def tag_strong(self, attrs, indent, content, has_child=0): - """Returns strong emphasis definition. - - - - - """ - return self.tag('strong', attrs, indent, content, has_child) - - - def tag_dfn(self, attrs, indent, content, has_child=0): - """Returns definitional definition. - - - - - """ - return self.tag('dfn', attrs, indent, content, has_child) - - - def tag_code(self, attrs, indent, content, has_child=0): - """Returns program code definition. - - - - - """ - return self.tag('code', attrs, indent, content, has_child) - - - def tag_samp(self, attrs, indent, content, has_child=0): - """Returns sample definition. - - - - - """ - return self.tag('samp', attrs, indent, content, has_child) - - - def tag_kbd(self, attrs, indent, content, has_child=0): - """Returns definition for something user would type. - - - - - """ - return self.tag('kbd', attrs, indent, content, has_child) - - - def tag_var(self, attrs, indent, content, has_child=0): - """Returns variable definition. - - - - - """ - return self.tag('var', attrs, indent, content, has_child) - - - def tag_cite(self, attrs, indent, content, has_child=0): - """Returns citation definition. - - - - - """ - return self.tag('cite', attrs, indent, content, has_child) - - - def tag_abbr(self, attrs, indent, content, has_child=0): - """Returns abbreviation definition. - - - - - """ - return self.tag('abbr', attrs, indent, content, has_child) - - - def tag_acronym(self, attrs, indent, content, has_child=0): - """Returns the acronym definition. - - - - - """ - return self.tag('acronym', attrs, indent, content, has_child) - - - def tag_q(self, attrs, indent, content, has_child=0): - """Returns inline quote definition. - - - - - """ - return self.tag('q', attrs, indent, content, has_child) - - - def tag_sub(self, attrs, indent, content, has_child=0): - """Returns subscript definition. - - - - - """ - return self.tag('sub', attrs, indent, content, has_child) - - - def tag_sup(self, attrs, indent, content, has_child=0): - """Returns superscript definition. - - - - - """ - return self.tag('sup', attrs, indent, content, has_child) - - - def tag_tt(self, attrs, indent, content, has_child=0): - """Returns fixed pitch font definition. - - - - - """ - return self.tag('tt', attrs, indent, content, has_child) - - - def tag_i(self, attrs, indent, content, has_child=0): - """Returns italic font definition. - - - - - """ - return self.tag('i', attrs, indent, content, has_child) - - - def tag_b(self, attrs, indent, content, has_child=0): - """Returns bold font definition. - - - - - """ - return self.tag('b', attrs, indent, content, has_child) - - - def tag_big(self, attrs, indent, content, has_child=0): - """Returns bigger font definition. - - - - - """ - return self.tag('big', attrs, indent, content, has_child) - - - def tag_small(self, attrs, indent, content, has_child=0): - """Returns smaller font definition. - - - - - """ - return self.tag('small', attrs, indent, content, has_child) - - - # ------------------------------------------------------------------ - # Object - # ------------------------------------------------------------------ - - def tag_object(self, attrs, indent, content, has_child=1): - """Returns object definition. - - - - - The object definition is used to embed objects as part of HTML - pages. param elements should precede other content. - Parameters can also be expressed as attribute/value pairs on - the object element itself when brevity is desired. - - """ - return self.tag('object', attrs, indent, content, has_child) - - - def tag_param(self, attrs, indent): - """Returns param definition. - - - - - The param definition is used to supply a named property value. - In XML it would seem natural to follow RDF and support an - abbreviated syntax where the param elements are replaced by - attribute value pairs on the object start tag. - - """ - return self.tag('object', attrs, indent) - - - # ------------------------------------------------------------------ - # Images - # ------------------------------------------------------------------ - - def tag_img(self, attrs, indent): - """Returns image definition. - - - - - To avoid accessibility problems for people who aren't able to - see the image, you should provide a text description using the - alt and longdesc attributes. In addition, avoid the use of - server-side image maps. Note that in this DTD there is no - name attribute. That is only available in the transitional - and frameset DTD. - - usemap points to a map element which may be in this document - or an external document, although the latter is not widely - supported. - - """ - return self.tag('img', attrs, indent) - - - # ------------------------------------------------------------------ - # Client-side image maps - # ------------------------------------------------------------------ - - def tag_map(self, attrs, indent, content, has_child=1): - """Returns map definition. - - - - - This can be placed in the same document or grouped in a - separate document although this isn't yet widely supported. - - """ - return self.tag('map', attrs, indent, indent, content, has_child) - - - def tag_area(self, attrs, indent): - """Returns area definition. - - - - - This can be placed in the same document or grouped in a - separate document although this isn't yet widely supported. - - """ - return self.tag('area', attrs, indent) - - - # ------------------------------------------------------------------ - # Forms - # ------------------------------------------------------------------ - - def tag_form(self, attrs, indent, content, has_child=1): - """Returns form definition. - - - - - """ - return self.tag('form', attrs, indent, content, has_child) - - - def tag_label(self, attrs, indent, content, has_child=0): - """Returns label definition. - - - - - Each label must not contain more than ONE field Label elements - shouldn't be nested. - - """ - return self.tag('label', attrs, indent, content, has_child) - - - def tag_input(self, attrs, indent): - """Returns input definition for form control. - - - - - - - The name attribute is required for all but submit & reset. - - """ - return self.tag('input', attrs, indent) - - - def tag_select(self, attrs, indent, content, has_child=0): - """Returns select definition. - - - - - """ - return self.tag('select', attrs, indent, content, has_child) - - - def tag_optgroup(self, attrs, indent, content, has_child=1): - """Returns option group definition. - - - - - """ - return self.tag('optgroup', attrs, indent, content, has_child) - - - def tag_option(self, attrs, indent, content, has_child=0): - """Returns option definition. - - - - - """ - return self.tag('option', attrs, indent, content, has_child) - - - def tag_textarea(self, attrs, indent, content): - """Returns textarea definition. - - - - - """ - return self.textarea('textarea', attrs, indent, content) - - - def tag_fieldset(self, attrs, indent, content, has_child=1): - """Returns fieldset definition. - - - - - The fieldset element is used to group form fields. Only one - legend element should occur in the content and if present - should only be preceded by whitespace. - - """ - return self.tag('filedset', attrs, indent, content, has_child) - - - def tag_legend(self, attrs, indent, content): - """Retruns legend definition. - - - - - """ - return self.tag('legend', attrs, indent, content) - - - def tag_button(self, attrs, indent, content): - """Returns button definition. - - - - - content is %Flow; excluding a, form and form controls. - - """ - return self.tag('button', attrs, indent, content) - - - def tag_table(self, attrs, indent, content, has_child=1): - """Returns table definition. - - - - - - - - - - - Derived from IETF HTML table standard, see [RFC1942] - - The border attribute sets the thickness of the frame around - the table. The default units are screen pixels. The frame - attribute specifies which parts of the frame around the table - should be rendered. The values are not the same as CALS to - avoid a name clash with the valign attribute. The rules - attribute defines which rules to draw between cells: If rules - is absent then assume: "none" if border is absent or - border="0" otherwise "all". Horizontal alignment attributes - for cell contents: - char alignment char, e.g. char=':' - charoff offset for alignment char - - """ - return self.tag('table', attrs, indent, content, has_child) - - - def tag_caption(self, attrs, indent, content): - """Returns caption definition. - - - - - """ - return self.tag('caption', attrs, indent, content) - - - def tag_thead(self, attrs, indent, content, has_child=1): - """Returns thead definition. - - - - - Use thead to duplicate headers when breaking table across page - boundaries, or for static headers when tbody sections are - rendered in scrolling panel. - - """ - return self.tag('thead', attrs, indent, content, has_child) - - - def tag_tbody(self, attrs, indent, content, has_child=1): - """Returns tbody definition. - - - - - Use tbody to duplicate footers when breaking table across page - boundaries, or for static footers when tbody sections are - rendered in scrolling panel. - - """ - return self.tag('tbody', attrs, indent, content, has_child) - - - def tag_tbody(self, attrs, indent, content, has_child=1): - """Returns tbody definition. - - - - - Use multiple tbody sections when rules are needed between - groups of table rows. - - """ - return self.tag('tbody', attrs, indent, content, has_child) - - - def tag_colgroup(self, attrs, indent, content, has_child=1): - """Returns colgroup definition. - - - - - colgroup groups a set of col elements. It allows you to group - several semantically related columns together. - - """ - return self.tag('colgroup', attrs, indent, content, has_child) - - - def tag_col(self, attrs, indent): - """Returns col definition. - - - - - col elements define the alignment properties for cells in one - or more columns. The width attribute specifies the width of - the columns, e.g. - - width=64 width in screen pixels - width=0.5* relative width of 0.5 - - The span attribute causes the attributes of one col element to - apply to more than one column. - - """ - return self.tag('col', attrs, indent) - - - def tag_tr(self, attrs, indent, content, has_child=1): - """Returns table row definition. - - - - - """ - return self.tag('tr', attrs, indent, content, has_child) - - - def tag_th(self, attrs, indent, content, has_child): - """Returns table header definition. - - - - - - - Scope is simpler than headers attribute for common tables. th - is for headers, td for data and for cells acting as both. - - """ - return self.tab('th', attrs, indent, content, has_child) - - - def tag_td(self, attrs, indent, content, has_child=1): - """Returns table data definition. - - - - - """ - return self.tag('td', attrs, indent, content, has_child) diff --git a/Automation/Python/centos-web/cgi-bin/centos-web.cgi b/Automation/Python/centos-web/cgi-bin/centos-web.cgi deleted file mode 100755 index d137638..0000000 --- a/Automation/Python/centos-web/cgi-bin/centos-web.cgi +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/python -# -# centos-web.cgi -- This script is an effort to organize The CentOS -# Project information in XHTML format for its publication on the -# Internet. The script is organized in a package named `Apps' which, -# in turn, is subdivided in other packages (e.g., `Home', `Sponsors', -# etc.) to cover each web application the organization demands. -# -# Notice that some of the web applications demanded (e.g., Wiki, -# Lists, Forums, Bugs, etc.) are not included in this script, but -# linked to their own locations. Moreover, in order to provide -# accessability among all different web applications, they need to be -# redesigned to share one unique visual style and one unique top-level -# navigation bar so the current web application can be remarked. -# -# Copyright (C) 2011 Alain Reguera Delgado -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ------------------------------------------------------------------ -# $Id$ -# ------------------------------------------------------------------ - -import cgi -import cgitb; cgitb.enable() - -def main(): - - qs = cgi.parse() - - if 'app' in qs: - app = qs['app'][0].lower() - else: - app = 'home' - - if app == 'home': - from Apps.Home import page - elif app == 'sponsors': - from Apps.Sponsors import page - else: - from Apps.Unknown import page - - print 'Content-type: text/html' + "\n" - print page.main() - -if __name__ == '__main__': main() diff --git a/Automation/Python/centos-web/public/admonition.css b/Automation/Python/centos-web/public/admonition.css deleted file mode 100755 index bc2c772..0000000 --- a/Automation/Python/centos-web/public/admonition.css +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Webenv -> Quotation - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -div#page-body div.admonition { - border: 1px solid; - border-left: 5px solid; - padding: 10px 20px 10px 10px; - margin: 1.5em 0 1.5em 0; - } - -div#page-body div.admonition pre { - border: none; - background-color: #333; - color: #FFFFFF; - } - -div#page-body div.admonition img { - float: left; - } - - -div#page-body div.admonition h3 { - margin-top: 10px; - line-height: 1.5em; - } - -div#page-body div.admonition h3, -div#page-body div.admonition p, -div#page-body div.admonition pre, -div#page-body div.admonition table { - margin-left: 60px; - } - -div#page-body div.admonition ul, -div#page-body div.admonition ol, -div#page-body div.admonition dl { - margin-left: 110px; - } - -div#page-body div.admonition ul dl, -div#page-body div.admonition ul ol, -div#page-body div.admonition ul ul, -div#page-body div.admonition ol dl, -div#page-body div.admonition ol ol, -div#page-body div.admonition ol ul, -div#page-body div.admonition dl dl, -div#page-body div.admonition dl ol, -div#page-body div.admonition dl ul { - margin-left: 2.5em; - } - -div#page-body div.admonition.unknown pre, -div#page-body div.admonition.unknown h3, -div#page-body div.admonition.unknown p, -div#page-body div.admonition.unknown table { - margin-left: 20px; - } - -div#page-body div.admonition.success, -div#page-body div.admonition.redirected, -div#page-body div.admonition.error { - border: none; - border-top: 5px solid; - border-bottom: 5px solid; - border-color: #CFCFCF; - } - -div#page-body div.admonition.unknown, -div#page-body div.admonition.redirected, -div#page-body div.admonition.note { - background-image: url("images/msg-bg-blue.png"); - border-color: #D2E0F6; - background-color: #ECF4FF; - } - -div#page-body div.admonition.tip, -div#page-body div.admonition.important, -div#page-body div.admonition.caution, -div#page-body div.admonition.warning { - border-color: #F6E7D2; - background-color: #FFF8EC; - background-image: url("images/msg-bg-orange.png"); - } - -div#page-body div.admonition.violet { - border-color: #F6D2F6; - background-color: #FFECFF; - background-image: url("images/msg-bg-violet.png"); - } - -div#page-body div.admonition.error { - border-color: #E0B7B7; - background-color: #FFECEC; - background-image: url("images/msg-bg-red.png"); - } - -div#page-body div.admonition.success { - border-color: #D6F6D2; - background-color: #EEFFEC; - background-image: url("images/msg-bg-green.png"); - } diff --git a/Automation/Python/centos-web/public/base.css b/Automation/Python/centos-web/public/base.css deleted file mode 100755 index c3b7669..0000000 --- a/Automation/Python/centos-web/public/base.css +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Webenv -> Main Blocks - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -div#page-header, -div#wrap, -div#page-body, -div#page-footer { - min-width: 728px; - } - -/* Header ---------------------------------------------------------------------*/ -div#page-header { - background: #204C8D url("images/h1-bg.png") 0 0 repeat; - min-height: 46px; - } - -/* Content ---------------------------------------------------------------------*/ - -div#wrap { - padding: 0 10px 0 10px; - background-color: #FFF; - } - -div#page-body { - clear: both; - background-color: #F8F8F8; - } - -div#page-body div#content-list { - padding: 10px; - padding-left: 0; - padding-top: 8px; - background-color: #FFF; - } - -/* Paragraphs ---------------------------------------------------------------------*/ - -/* Footer ---------------------------------------------------------------------*/ - -div#page-footer { - background: #204C8D url("images/h1-bg.png") 0 0 repeat; - } - -div#page-footer div.credits { - padding: 8px; - } - -div#page-footer div.credits .copyright, -div#page-footer div.credits .license { - font-size: x-small; - color: #FFF; - margin: 3px; - } - -div#page-footer div.credits a { - color: #FFF; - font-style: italic; - } - -div#page-footer div.top { - float:right; - } - -/* Logo ---------------------------------------------------------------------*/ - -div#page-header div#logo img { - border: none; - float: left; - margin-left: 10px; - } - -/* Google advertisement (468x60px) ---------------------------------------------------------------------*/ - -div#page-header div.google-ad { - float: right; - margin: 5px; - } - -div#page-header div.google-ad img { - border: none; - } - -/* Last releases and related RSS link. ---------------------------------------------------------------------*/ - -div#page-header div#last-releases { - clear: both; - min-height: 35px; - border-top: 3px solid #FFF; - background: #3465A4; - } - -div#page-header div#last-releases a { - color: #fff; - } - -div#page-header div#last-releases div.left { - display: block; - float: left; - width: 450px; - margin-top: 10px; - margin-left: 10px; - font-size: small; - } - -div#page-header div#last-releases div.right { - float: right; - margin-top: 9px; - margin-right: 5px; - } - -div#page-header div#last-releases div.right span.rss span { - text-align: center; - font-weight: bold; - background: #729fcf; - padding: 4px 10px; - } - -div#page-header div#last-releases div span.title { - font-weight: bold; - color: #FFF; - } - -div#page-header div#last-releases div span.release { - border-right: 1px dotted #FFF; - padding-left: 10px; - padding-right: 10px; - font-weight: bold; - } - -div#page-header div#last-releases div span.last { - border-right: 0px; - } - -/* Application links ---------------------------------------------------------------------*/ - -div#page-header div#pagelinks { - border-top: 3px solid #FFF; - } - -/* User related links (e.g., last visit, session info and page trails) ---------------------------------------------------------------------*/ - -div#page-header div.userlinks { - padding: 10px; - text-align: right; - font-size: x-small; - clear: both; - } - -div#page-header div.userlinks a { - color: #fff; - } - -div#page-header div.userlinks div.logs { - width: 50%; - float: left; - text-align: left; - } - -div#page-header div.userlinks div.logs span { - border: none; - } - -div#page-header div.userlinks div.logs span.title { - color: #FFF; - } - -div#page-header div.userlinks div.logs span.datetime { - font-style: italic; - color: #FFF; - } - -div#page-header div.userlinks div.session { - width: 50%; - float: right; - } - -div#page-header div.userlinks div.session span { - border-right: 1px dotted #FFF; - } - -div#page-header div.userlinks div.session span a { - margin-right: 10px; - margin-left: 10px; - } - - -div#page-header div.userlinks div.session span.last { - border-right: none; - } - -div#page-header div.userlinks div.session span.last a { - margin-right: 0; - } - -div#page-header div.userlinks div.session span.last:after { - content: none; - } - -div#page-header div.userlinks div.trail { - text-align: right; - clear: both; - padding-top: 5px; - } - -div#page-header div.userlinks div.trail span { - display: inline; - } - -div#page-header div.userlinks div.trail span.last { - border-right: none; - padding-right: 0; - } - -div#page-header div.userlinks div.trail span:after { - content: "»"; - color: #FFF; - margin-left: 5px; - margin-right: 3px; - } - -div#page-header div.userlinks div.trail span.last:after { - content: none; - } - -/* Page lines. ---------------------------------------------------------------------*/ - -.page-line { - clear: both; - margin: 0; - padding: 0; - background-color: transparent; - } - -.page-line.white { - height: 3px; - background-color: #FFF; - } - -/* Page body ---------------------------------------------------------------------*/ - -div#page-body .info { - margin-top: 5px; - } - -div#page-body .info span { - font-size: small; - border-right: 1px dotted #AAA; - padding-right: 10px; - padding-left: 7px; - } - -div#page-body .info span.author { - padding-left: 0; - } - -div#page-body .info span.comment { - border-right: 0; - } - -/* Content Listing - One column ---------------------------------------------------------------------*/ - -div#page-body div#content-list { - margin-right: 200px; - border-right: 3px #EEE solid; - } - -div#page-body div#content-actions { - float:right; - width: 180px; - border-left: 3px #EEE solid; - padding: 10px; - font-size: small; - } - -div#page-body div#content-actions form input[type="text"] { - border: 1px solid #AAA; - } - -div#page-body div#content-list div.search { - } - -div#page-body div#content-list div.row { - padding: 10px 20px; - } - -div#page-body div#content-list div.dark { - background: #F8F8F8; - } - -div#page-body div#content-list div.light { - background: #FFF; - } - -div#page-body div#content-list h3.title { - margin-top: 0; - } - -div#page-body div#content-list .abstract { - margin-bottom: 1em; - } - -div#page-body div#content-list .pagination { - border-top: 1px solid #AAA; - font-size: small; - padding: 10px; - border-top: 1px #AAA solid; - margin-bottom: 0; - padding-bottom: 0; - } - -div#page-body div#content-list .pagination span.previous { - float: left; - } - -div#page-body div#content-list .pagination span.previous a:before { - content: "«"; - padding-right: 3px; - } - -div#page-body div#content-list .pagination span.next a:after { - content: "»"; - padding-left: 3px; - } - -div#page-body div#content-list .pagination span.next { - float: right; - } - -/* Content Details - One column ---------------------------------------------------------------------*/ - -div#page-body div#content-details { - padding: 30px 10% 30px 10%; - background: #FFF; - } - -/* Content Unkown - Not page found. ---------------------------------------------------------------------*/ - -div#page-body div#content-unknown { - padding: 0 15% 0 15%; - background: #FFF; - } diff --git a/Automation/Python/centos-web/public/forms.css b/Automation/Python/centos-web/public/forms.css deleted file mode 100755 index 9a39fc2..0000000 --- a/Automation/Python/centos-web/public/forms.css +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Webenv -> Forms - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -div#page-body div.row1 { - clear: both; - background: #F8F8F8; - padding: 10px; - } - -div#page-body div.row2 { - clear: both; - background: #FFFFFF; - padding: 10px; - } - -div#page-body div.row3 { - clear: both; - border-top: 1px solid #CCC; - padding: 10px; - margin-top: 10px; - } - -div#page-body fieldset div.row1 span.descrip, -div#page-body fieldset div.row2 span.descrip { - float: left; - } - -div#page-body fieldset div.field { - display: block; - margin-left: 30%; - } - -div#page-body fieldset div.field div.column { - float: left; - margin-right: 1em; - padding-right: 1em; - border-right: 1px dotted #AAA; - } - -div#page-body fieldset div.row3 div.descrip { - display: block; - font-size: small; - color: #AAA; - font-style: italic; - width: 70% - } - -div#page-body fieldset span.submit { - float: right; - } - -/* */ - -div#page-body form div { - padding-bottom: 10px; - } - -div#page-body form div span { - display: inline; - margin: 0; - padding-right: 10px; - } - -div#page-body div span.results { - padding-left: 10px; - border-left: 1px dotted #AAA; - } - -/* */ - - -/* */ - -div#page-body div.records-list { - display: block; - } - -div#page-body div.records-list ul { - margin: 0; - padding: 0; - list-style: none; - } - -div#page-body div.records-list ul li { - padding: 0.5em; - } - -div#page-body div.records-list ul li.row1 { - background: #F8F8F8; - } - -div#page-body div.records-list ul li span.col0 { - display: block; - float:left; - text-align: center; - padding-right: 0.5em; - margin-right: 0.5em; - border-right: 1px solid #FFF; - } - -div#page-body div.records-list ul li span.col1 { - width: 250px; - display: block; - float:left; - } - -div#page-body div.records-list ul li span.col2 { - border-left: 1px solid #FFF; - padding-left: 0.5em; - } - -div#page-body div.records-list ul li.title { - font-weight: bold; - background: #eee; - border-bottom: 1px #AAA solid; - } diff --git a/Automation/Python/centos-web/public/images/a-attach.png b/Automation/Python/centos-web/public/images/a-attach.png deleted file mode 100644 index d6a41e7..0000000 Binary files a/Automation/Python/centos-web/public/images/a-attach.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/a-mail.png b/Automation/Python/centos-web/public/images/a-mail.png deleted file mode 100644 index 355a998..0000000 Binary files a/Automation/Python/centos-web/public/images/a-mail.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/a-www.png b/Automation/Python/centos-web/public/images/a-www.png deleted file mode 100644 index e5a0483..0000000 Binary files a/Automation/Python/centos-web/public/images/a-www.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/ads-sample-468x60.png b/Automation/Python/centos-web/public/images/ads-sample-468x60.png deleted file mode 100644 index f634d10..0000000 Binary files a/Automation/Python/centos-web/public/images/ads-sample-468x60.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/ads-sample-728x90.png b/Automation/Python/centos-web/public/images/ads-sample-728x90.png deleted file mode 100644 index 5401e60..0000000 Binary files a/Automation/Python/centos-web/public/images/ads-sample-728x90.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/caution.png b/Automation/Python/centos-web/public/images/caution.png deleted file mode 100644 index efcec04..0000000 Binary files a/Automation/Python/centos-web/public/images/caution.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/centos-logo.png b/Automation/Python/centos-web/public/images/centos-logo.png deleted file mode 100644 index 506c65d..0000000 Binary files a/Automation/Python/centos-web/public/images/centos-logo.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/convenction.png b/Automation/Python/centos-web/public/images/convenction.png deleted file mode 100644 index e516c0e..0000000 Binary files a/Automation/Python/centos-web/public/images/convenction.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/error.png b/Automation/Python/centos-web/public/images/error.png deleted file mode 100644 index 0f52b4d..0000000 Binary files a/Automation/Python/centos-web/public/images/error.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/h1-bg.png b/Automation/Python/centos-web/public/images/h1-bg.png deleted file mode 100644 index e609c59..0000000 Binary files a/Automation/Python/centos-web/public/images/h1-bg.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/h2-bg.png b/Automation/Python/centos-web/public/images/h2-bg.png deleted file mode 100644 index 826fbec..0000000 Binary files a/Automation/Python/centos-web/public/images/h2-bg.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/html-bg.png b/Automation/Python/centos-web/public/images/html-bg.png deleted file mode 100644 index 0c6dca6..0000000 Binary files a/Automation/Python/centos-web/public/images/html-bg.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/important.png b/Automation/Python/centos-web/public/images/important.png deleted file mode 100644 index 509ec86..0000000 Binary files a/Automation/Python/centos-web/public/images/important.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-blue.png b/Automation/Python/centos-web/public/images/msg-bg-blue.png deleted file mode 100644 index 47bc405..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-blue.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-gray.png b/Automation/Python/centos-web/public/images/msg-bg-gray.png deleted file mode 100644 index a8a9246..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-gray.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-green.png b/Automation/Python/centos-web/public/images/msg-bg-green.png deleted file mode 100644 index f1bfe2b..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-green.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-orange.png b/Automation/Python/centos-web/public/images/msg-bg-orange.png deleted file mode 100644 index 0866bb8..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-orange.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-red.png b/Automation/Python/centos-web/public/images/msg-bg-red.png deleted file mode 100644 index 2dc3e70..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-red.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/msg-bg-violet.png b/Automation/Python/centos-web/public/images/msg-bg-violet.png deleted file mode 100644 index 8b1075d..0000000 Binary files a/Automation/Python/centos-web/public/images/msg-bg-violet.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/note.png b/Automation/Python/centos-web/public/images/note.png deleted file mode 100644 index b58a224..0000000 Binary files a/Automation/Python/centos-web/public/images/note.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/redirect.png b/Automation/Python/centos-web/public/images/redirect.png deleted file mode 100644 index 16a8c41..0000000 Binary files a/Automation/Python/centos-web/public/images/redirect.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/success.png b/Automation/Python/centos-web/public/images/success.png deleted file mode 100644 index 74cc874..0000000 Binary files a/Automation/Python/centos-web/public/images/success.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/tabs-bg-1.png b/Automation/Python/centos-web/public/images/tabs-bg-1.png deleted file mode 100644 index 22cff37..0000000 Binary files a/Automation/Python/centos-web/public/images/tabs-bg-1.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/tabs-bg-2.png b/Automation/Python/centos-web/public/images/tabs-bg-2.png deleted file mode 100644 index 5d8e178..0000000 Binary files a/Automation/Python/centos-web/public/images/tabs-bg-2.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/tip.png b/Automation/Python/centos-web/public/images/tip.png deleted file mode 100644 index cfcf6db..0000000 Binary files a/Automation/Python/centos-web/public/images/tip.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/top.png b/Automation/Python/centos-web/public/images/top.png deleted file mode 100644 index 1557422..0000000 Binary files a/Automation/Python/centos-web/public/images/top.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/ul.png b/Automation/Python/centos-web/public/images/ul.png deleted file mode 100644 index efcf485..0000000 Binary files a/Automation/Python/centos-web/public/images/ul.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/images/warning.png b/Automation/Python/centos-web/public/images/warning.png deleted file mode 100644 index e36c02a..0000000 Binary files a/Automation/Python/centos-web/public/images/warning.png and /dev/null differ diff --git a/Automation/Python/centos-web/public/links.css b/Automation/Python/centos-web/public/links.css deleted file mode 100755 index d0ae637..0000000 --- a/Automation/Python/centos-web/public/links.css +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Webenv -> Links - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -/* Broken or nonexistent links. ---------------------------------------------------------------------*/ - -div#page-body a.nonexistent, -div#page-body a.nonexistent:hover { color: gray; } - -/* Special decoration for some links' classes ---------------------------------------------------------------------*/ - -div#page-body a.www:before { - white-space:nowrap; - content: url(/home/centos/artwork/trunk/Identity/Images/Webenv/a-www.png); - margin: 0 0.2em; - } - -div#page-body a.http:before { - white-space:nowrap; - content: url(/home/centos/artwork/trunk/Identity/Images/Webenv/a-www.png); - margin: 0 0.2em; - } - -div#page-body a.https:before { - white-space:nowrap; - content: url(/home/centos/artwork/trunk/Identity/Images/Webenv/a-www.png); - margin: 0 0.2em; - } - -div#page-body a.mailto:before { - white-space:nowrap; - content: url(/home/centos/artwork/trunk/Identity/Images/Webenv/a-mail.png); - margin: 0 0.2em; - } - -div#page-body a.attachment:before { - white-space:nowrap; - content: url(/home/centos/artwork/trunk/Identity/Images/Webenv/a-attach.png); - margin: 0 0.2em; - } diff --git a/Automation/Python/centos-web/public/lists.css b/Automation/Python/centos-web/public/lists.css deleted file mode 100755 index aeebd35..0000000 --- a/Automation/Python/centos-web/public/lists.css +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Webenv -> Lists - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -div#page-body ul { - /* - list-style: url("images/ul.png") disc; - */ - } - -div#page-body ul, -div#page-body ol { - margin-left: 2.5em; - } - -div#page-body ul ol, -div#page-body ol ul, -div#page-body dl ul, -div#page-body dl ol { - margin-left: 1.5em; - } - -div#page-body div#links ul { - padding: 0.5em 0.5em 1em 1em; - margin: 0; - list-style: none; - border-top: 1px #EEE solid; - } - -div#page-body div#links ul.first { - border-top: none; - } - -div#page-body div#links ul li { - padding: 2px; - } - -/* Table of content (toc) ---------------------------------------------------------------------*/ - -div#page-body div.toc { - font-size: small; - text-align:left; - margin-bottom: 2em; - } - -div#page-body div.toc p { - font-weight: bold; - margin: 0.5em 0 0.5em 0; - } - -div#page-body div#content div.toc dl { - margin: 0; - } - -div#page-body div#content div.toc dl dl { - margin-left: 2.5em; - } - -/* Content actions links (e.g., categories and archives). ---------------------------------------------------------------------*/ - -div#page-body div#content-actions dl { - margin-top: 0; - margin-left: 0; - } - -div#page-body div#content-actions dl dt { - font-weight: bold; - border-bottom: 1px solid #EEE; - margin-bottom: 1em; - } - -div#page-body div#content-actions dl dd { - margin-left: 1.5em; - } - -div#page-body div#content-actions dl dl { - margin-left: 1.5em; - margin-top: 0px; - border-top: none; - padding-top: 0; - } - -div#page-body div#content-actions dl dl.year { - margin-bottom: 1em; - } - -div#page-body div#content-actions dl dl.year dd { - margin-left: 0; - } diff --git a/Automation/Python/centos-web/public/reset.css b/Automation/Python/centos-web/public/reset.css deleted file mode 100755 index 73f5287..0000000 --- a/Automation/Python/centos-web/public/reset.css +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Webenv (reset) -- This file resets the browser's default visual - * style and sets The CentOS Web Environment visual style as default - * visual style. This file sets default values to tags like `html', - * `body', as well as those controlling links, tables, paragrphs, - * headings, lists, forms and quotation. - * - * The CentOS Web Environment (Webenv) is specially conceived to - * achieve one unique visual style and easy navegation through all - * different web applications The CentOS Project uses to show its - * existence in the World Wide Web medium. - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ------------------------------------------------------------------- - * $Id$ - * ------------------------------------------------------------------- - */ - - -/* Reset browsers default margins and paddings ------------------------------------------------*/ - -* { - margin: 0; - padding: 0; - } - -/* Define html ------------------------------------------------*/ - -html { - background-color: #FFF; - background-image: url("images/html-bg.png"); - } - -/* Define body ------------------------------------------------*/ - -body { - font-family: "DejaVu Sans", "Liberation Sans", sans-serif; - font-size: 0.85em; - /* margin: 0; /* <- full screen */ - /* margin: 0 1% 0 1%; /* <- with 1% of left and right margin */ - /* margin: 0 2% 0 2%; /* <- with 2% of left and right margin */ - margin: 0 3% 0 3%; /* <- with 3% of left and right margin */ - /* margin: 0 10% 0 10%; /* <- with 10% of left and right margin */ - color: #333; - } - -/* Links ------------------------------------------------*/ - -a:link { text-decoration: none; color: #0044B3; } -a:hover { text-decoration: underline; color: green; } -a:active { text-decoration: underline; color: green; } -a:visited { text-decoration: none; color: #0044B3; } -a:visited:hover { text-decoration: underline; color: green; } - -.title, -.title a:link, -.title a:active, -.title a:hover, -.title a:visited, -.title a:visited:hover { - /* color: #072B61; */ - color: #000000; - } - -/* Headings ------------------------------------------------*/ - -h1 { - font-size: 2em; - line-height: 1.3em; - } - -h2 { - font-size: 1.5em; - line-height: 1.5em; - margin-top: 1.5em; - } - -h3 { - font-size: 1.4em; - line-height: 1.4em; - margin-top: 1.4em; - } - -h4 { - font-size: 1.2em; - line-height: 1.2em; - margin-top: 1.2em; - } - -h5 { - font-size: 1.1em; - line-height: 1.1em; - margin-top: 1.1em; - } - -h6 { - font-size: 1em; - line-height: 1em; - margin-top: 1em; - } - -/* Paragraphs ------------------------------------------------*/ - -p { - margin: 1em 0 1.5em 0; - line-height: 1.5em; - text-align: justify; - } - -/* Images ------------------------------------------------*/ - -img { - border: none; - } - -/* Quotations ------------------------------------------------*/ - -blockquote { - background: #fafafa; - border-color: #eeeeee; - border-width: 1px; - border-style: solid; - border-left-width: 4px; - margin-left: 1.5em; - padding: 0.5em; - margin-top: 1em; - margin-bottom: 1.3em; - } - -q:before { - content: " “"; - } - -q:after { - content: "” "; - } - -q q:before { - content: " ‘"; - } - -q q:after { - content: "’ "; - } - -address { - margin-left: 1.5em; - } - -/* Preformatted Texts ------------------------------------------------*/ - -pre { - font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; - padding: 0.5em 1em 0.5em 1em; - margin: 1em 0 1em 0; - white-space: pre; - border-width: 1px; - border-style: solid; - border-color: #E5E5E5; - border-left-width: 4px; - background: #FFFAE9; - overflow: auto; - } - -/* Phrase Elements ------------------------------------------------*/ - -tt, -samp, -kbd, -code { - font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; - } - -/* Page Lines ------------------------------------------------*/ - -hr { - clear: both; - height: 1px ! important; - border: none; - background-color: #DADADA; - } - -/* Lists ------------------------------------------------*/ - -ul, -ol, -dl { - margin: 1.5em 0 1.5em 2.5em; - } - -ul { - list-style: disc; - } - -ol { - list-style-image: none !important; - } - -ul li, -ol li { - line-height: 1.5em; - } - -ul ul, -ul ol, -ol ul, -ol ol { - margin-top: 0.3em; - margin-bottom: 0.3em; - } - -ul li p, -ol li p { - margin-bottom: 0.3em; - } - -dl dd { - margin-left: 2.5em; - } - -dl ol, -dl ul { - margin-left: 3.5em; - } - -/* Tables ------------------------------------------------*/ - -table { - border-collapse: collapse; - } - -table caption { - font-style: italic; - text-align: center; - } - -table tr th { - font-weight: bold; - } - -table tr td, -table tr th { - border: 1pt; - border-style: solid; - border-color: #CCC; - padding-top: 0.25em; - padding-right: 0.5em; - padding-bottom: 0.25em; - padding-left: 0.5em; - vertical-align: top; - } - -table tr td p, -table tr td pre { - margin: 0; - padding: 0; - } - -/* Forms ------------------------------------------------*/ - -form { - display: inline; - } - -input[type="submit"], -input[type="button"] { - padding: 1px; - display: inline; - text-decoration: none; - } - -input[type="text"], -input[type="password"], -textarea { - display: inline; - padding: 2px; - } - -select { - display: inline; - padding: 1px; - } - -form p { - display: inline; - margin-left: 5px; - margin-right: 5px; - } - -/* Select ----------------------------------------- */ - -select option { - padding-left: 3px; - padding-right: 3px; - } - -select optgroup { - font-style: normal; - font-weight: bold; - padding-left: 3px; - } - -select optgroup option { - margin-left: 1em; - } - -input[type="radio"], -input[type="checkbox"] { - vertical-align: middle; - } - -fieldset { - margin: 1em 0 1em 0; - padding: 1em; - padding-bottom: 5px; - border: 1px solid #AAA; - } - -fieldset legend { - font-weight: bold; - color: #AAA; - } diff --git a/Automation/Python/centos-web/public/stylesheet.css b/Automation/Python/centos-web/public/stylesheet.css deleted file mode 100755 index 531168a..0000000 --- a/Automation/Python/centos-web/public/stylesheet.css +++ /dev/null @@ -1,39 +0,0 @@ -/* stylesheet.css -- This file provides the CSS initialization needed - * by centos-web.cgi. - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -/* Reset browser's default definitions. ----------------------------------------*/ -@import url("reset.css"); - -/* Customize default definitions. ----------------------------------*/ -@import url("base.css"); -@import url("links.css"); -@import url("lists.css"); -@import url("admonition.css"); -@import url("forms.css"); - -/* Miscellaneous definitions. ------------------------------*/ -@import url("tabs.css"); diff --git a/Automation/Python/centos-web/public/tabs.css b/Automation/Python/centos-web/public/tabs.css deleted file mode 100755 index 0fba298..0000000 --- a/Automation/Python/centos-web/public/tabs.css +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Webenv -> Tabs (Style 2: Two Rounded Borders) - * - * Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG - * - * This CSS 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 2 of the License, or - * (at your option) any later version. - * - * This CSS 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * ---------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------- - */ - -div#page-header div.tabs { - margin-left: 10px; - margin-right: 10px; - } - -div#page-header div.tabs a { - color: #FFF; - float: left; - font-weight: bold; - margin-right: 3px; - padding: 0px 8px 0 0px; - text-decoration: none; - } - -div#page-header div.tabs span.current a, -div#page-header div.tabs span.current a:hover, -div#page-header div.tabs span.current a span, -div#page-header div.tabs span.current a:hover span { - color: #204A87; - text-decoration: none; - } - -div#page-header div.tabs a span { - float: left; - padding: 5px 0px 3px 8px; - } - -/* */ - -div#page-header div.tabs a { - background: none; - } - -div#page-header div.tabs a span { - background: none; - } - -div#page-header div.tabs span.current a, -div#page-header div.tabs span.current a:hover { - background: url("images/tabs-bg-1.png") 100% -50px no-repeat; - } - -div#page-header div.tabs span.current a span, -div#page-header div.tabs span.current a:hover span { - background: url("images/tabs-bg-2.png") 0 -50px no-repeat; - } - -div#page-header div.tabs span:hover a { - background: url("images/tabs-bg-1.png") 100% 0 no-repeat; - } - -div#page-header div.tabs span:hover a span { - background: url("images/tabs-bg-2.png") 0 0; - } - -/* Application level navigation bar. ---------------------------------------------------------------------*/ -div#page-header div#appslinks div.tabs span:hover a span { - }