Modified: web/php/branches/PROTOTYPE_2010/header.php =================================================================== --- web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:10:23 UTC (rev 306671) +++ web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:15:25 UTC (rev 306672) @@ -51,95 +51,7 @@
  • "> Documentation
    -
    -
    Getting Started
    -
    Preface
    -
    Introduction
    -
    A simple tutorial
    - -
    Language Reference
    -
    Basic syntax
    -
    Types
    -
    Variables
    -
    Constants
    -
    Expressions
    -
    Operators
    -
    Control Structures
    -
    Functions
    -
    Classes and Objects
    -
    Namespaces
    -
    Exceptions
    -
    References Explained
    -
    Predefined variables
    -
    Predefined Exceptions
    -
    Predefined Interfaces
    -
    Context options and parameters
    -
    - -
    -
    Security
    -
    Introduction
    -
    General considerations
    -
    Installed as CGI binary
    -
    Installed as an Apache module
    -
    Filesystem Security
    -
    Database Security
    -
    Error Reporting
    -
    Using Register Globals
    -
    User Submitted Data
    -
    Magic Quotes
    -
    Hiding PHP
    -
    Keeping Current
    -
    Features
    -
    HTTP authentication with PHP
    -
    Cookies
    -
    Sessions
    -
    Dealing with XForms
    -
    Handling file uploads
    -
    Using remote files
    -
    Connection handling
    -
    Persistent Database Connections
    -
    Safe Mode
    -
    Using PHP from the command line
    -
    Garbage Collection
    -
    - -
    -
    Function Reference
    -
    Affecting PHP's Behaviour
    -
    Audio Formats Manipulation
    -
    Authentication Services
    -
    Date and Time Related Extensions
    -
    Command Line Specific Extensions
    -
    Compression and Archive Extensions
    -
    Credit Card Processing
    -
    Cryptography Extensions
    -
    Database Extensions
    -
    File System Related Extensions
    -
    Human Language and Char. Encoding Support
    -
    Image Processing and Generation
    -
    Mail Related Extensions
    -
    Mathematical Extensions
    -
    Non-Text MIME Output
    -
    Process Control Extensions
    -
    Other Basic Extensions
    -
    Other Services
    -
    Search Engine Extensions
    -
    Server Specific Extensions
    -
    Session Extensions
    -
    Text Processing
    -
    Variable and Type Related Extensions
    -
    Web Services
    -
    Windows Only Extensions
    -
    XML Manipulation
    -
    -
    -
    Installation and Configuration
    -
    PHP at the Core
    -
    Frequently Asked Questions
    -
    Appendices
    -
    Quick function reference
    -
    +
  • Modified: web/php/branches/PROTOTYPE_2010/include/layout.inc =================================================================== --- web/php/branches/PROTOTYPE_2010/include/layout.inc 2010-12-26 13:10:23 UTC (rev 306671) +++ web/php/branches/PROTOTYPE_2010/include/layout.inc 2010-12-26 13:15:25 UTC (rev 306672) @@ -39,5 +39,51 @@ require __DIR__ . "/../footer.php"; } +function doc_toc($lang) { + include __DIR__ . "/../manual/$lang/toc/index.inc"; + + echo "
    \n"; + doc_toc_list($lang, $TOC, "getting-started"); + doc_toc_list($lang, $TOC, "langref"); + echo "
    \n"; + + echo "
    \n"; + doc_toc_list($lang, $TOC, "security"); + doc_toc_list($lang, $TOC, "features"); + echo "
    \n"; + + echo "
    \n"; + doc_toc_list($lang, $TOC, "funcref"); + echo "
    \n"; + + echo "
    \n"; + doc_toc_title($lang, $TOC, "install"); + doc_toc_title($lang, $TOC, "internals2"); + doc_toc_title($lang, $TOC, "faq"); + doc_toc_title($lang, $TOC, "appendices"); + echo "
    Quick function reference
    \n"; + echo "
    \n"; + +} +function doc_toc_list($lang, $index, $file) { + include __DIR__ . "/../manual/$lang/toc/$file.inc"; + + doc_toc_title($lang, $index, $file); + foreach($TOC as $entry) { + echo "\t
    {$entry[1]}
    \n"; + } + echo "\n"; +} +function doc_toc_title($lang, $index, $file) { + foreach($index as $entry) { + if ($entry[0] == "$file.php") { + $link = $entry[0]; + $title = $entry[1]; + break; + } + } + echo "
    $title
    \n"; +} + /* vim: set et ts=4 sw=4 ft=php: : */