phpBMS

Changeset 485 for trunk/phpbms/info.php

Show
Ignore:
Timestamp:
04/07/09 11:44:18 (3 years ago)
Author:
nate
Message:
  • Merged Nathan branch back into trunk.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/info.php

    r427 r485  
    1 <?php  
     1<?php 
    22/* 
    33 $Rev$ | $LastChangedBy$ 
     
    3737 +-------------------------------------------------------------------------+ 
    3838*/ 
    39         $loginNoKick=true; 
    40         $loginNoDisplayError=true; 
     39        $loginNoKick = true; 
     40        $loginNoDisplayError = true; 
    4141 
    4242        require_once("include/session.php"); 
    43          
    44          
    45         function displayVersions($db){ 
    46                 $querystatement="SELECT displayname,version from modules ORDER BY id"; 
    47                 $queryresult=$db->query($querystatement); 
    4843 
    49                 if($queryresult){ 
    50                         while($therecord=$db->fetchArray($queryresult)){ 
    51                                 if($therecord["displayname"]!="Base"){ 
    52                                         echo $therecord["displayname"].": "; 
    53                                         echo "v".$therecord["version"]."<br />"; 
    54                                 } else 
    55                                         echo "<span class=\"important\">v".$therecord["version"]."</span><br /><br />"; 
    56                         } 
    57                 } 
    58         } 
    59          
     44        class versions{ 
     45 
     46                var $db; 
     47                var $queryresult; 
     48 
     49                function versions($db){ 
     50 
     51                        $this->db = $db; 
     52 
     53                }//end function init 
     54 
     55                function get(){ 
     56 
     57                        $querystatement = " 
     58                                SELECT 
     59                                        `name`, 
     60                                        `displayname`, 
     61                                        `version` 
     62                                FROM 
     63                                        `modules` 
     64                                ORDER BY 
     65                                        `id`"; 
     66 
     67                        $this->queryresult = $this->db->query($querystatement); 
     68 
     69                }//end function get 
     70 
     71 
     72                function show(){ 
     73 
     74                        if(!$this->queryresult) 
     75                                return false; 
     76 
     77                        while($therecord = $this->db->fetchArray($this->queryresult)){ 
     78 
     79                                if($therecord["name"] != "base") 
     80                                        echo formatVariable($therecord["displayname"]).": v".$therecord["version"]."<br />"; 
     81                                else 
     82                                        echo '<p class="important">v'.$therecord["version"].'</p>'; 
     83 
     84                        }//endwhile 
     85 
     86                        return true; 
     87 
     88                }//end function show 
     89 
     90        }//end class 
     91 
     92        $versions = new versions($db); 
     93        $versions->get(); 
     94 
    6095        $pageTitle="phpBMS Information"; 
    6196        $phpbms->cssIncludes[] = "pages/info.css"; 
    62          
     97 
    6398        $phpbms->showMenu = false; 
    6499        $phpbms->showFooter = false; 
    65          
     100 
    66101        include("header.php"); 
    67          
     102 
    68103?><div class="bodyline" id="container"> 
     104 
     105        <div id="phpBMSLogo" class="box small"> 
     106                <?php $versions->show() ?> 
     107        </div> 
     108 
    69109        <h1>About phpBMS</h1> 
    70         <p>phpBMS is commercial open source, web-based, business management software.</p> 
    71          
    72         <div id="phpBMSLogo" class="box small"> 
    73                 <?php if(isset($db)) displayVersions($db)?> 
    74         </div> 
    75          
     110        <p>phpBMS is commercial, open source, web-based, business management software.</p> 
     111 
    76112        <div id="companyInfo"> 
    77                 <p class="small"> 
    78                         Copyright &copy; 2004 -2007 Kreotek, llc. All Rights Reserved. 
    79                         phpBMS, and the phpBMS logo are trademarks of Kreotek, llc.  
     113                <p > 
     114                        Copyright &copy; <?php echo date("Y")?> Kreotek, LLC. All Rights Reserved. 
     115                        phpBMS, and the phpBMS logo are trademarks of Kreotek, LLC. 
    80116                        Software is licensed under a <a href="license.txt">modified BSD license</a>. 
    81117                </p> 
    82                  
     118 
    83119                <h3>Kreotek, LLC</h3> 
    84                 <p class="small"> 
     120                <p> 
    85121                        610 Quantum<br /> 
    86                         Rio Rancho, NM 87124 
     122                        Rio Rancho, NM 87124 USA 
     123                </p> 
     124                <p><a href="http://www.kreotek.com">http://www.kreotek.com</a></p> 
     125                <p> 
     126                        sales: <a href="mailto:sales@kreotek.com">sales@kreotek.com</a><br /> 
     127                        support: <a href="mailtosupport@kreotek.com">support@kreotek.com</a> 
    87128                </p> 
    88129                <p> 
    89                         web: <a href="http://www.kreotek.com">http://www.kreotek.com</a><br /> 
    90                         sales: <a href="mailto:sales@kreotek.com">sales@kreotek.com</a><br /> 
    91                         support: <a href="mailtosupport@kreotek.com">support@kreotek.com</a><br /> 
    92                         phone: <strong>1-800-731-8026</strong> 
     130                        U.S. and Canada Toll Free<br /> 
     131                        1-800-731-8026 
     132 
     133                <p> 
     134                        Outside US and Canada<br /> 
     135                        +1-505-994-6388 
    93136                </p> 
     137 
    94138                <h3>phpBMS Open Source Project</h3> 
    95139                <p> 
    96                         project web site: <a href="http://www.kreotek.com">http://www.phpbms.org</a><br /> 
    97                         project forums: <a href="mailto:sales@kreotek.com">sales@kreotek.com</a><br /> 
     140                        community web site: <a href="http://www.kreotek.com">http://www.phpbms.org</a><br /> 
     141                        community forums: <a href="http://www.phpbms.org/forum">http://www.phpbms.org/forum</a><br /> 
    98142                </p> 
    99143        </div> 
    100          
    101                 <h2>Source Code</h2> 
    102                 <ul> 
    103                         <li><strong>phpBMS</strong> - Commercial Open Source Business Management Web Appllication (<a href="http://www.kreotek.com">www.phpbms.org</a>)</li> 
    104                         <li><strong>fpdf</strong> - A PHP class which allows to generate PDF files with pure PHP (<a href="http://www.fpdf.org">www.fpdf.org</a>)</li> 
    105                     <li><strong>moo.fx</strong> - Super lightweight JavaScript effects library (<a href="http://moofx.mad4milk.net/">moofx.mad4milk.net</a>) </li> 
    106                         <li><strong>mochikit</strong> - A lightweight JavaScript library (<a href="http://mochichit.com/">mochikit.com</a>) - phpBMS utilizes modified parts mochikit code and it's programming structure.</li> 
    107                         <li><strong>parseCSV</strong> - An easy to use PHP class to read and write CSV data properly.(<a href="http://code.google.com/p/parsecsv-for-php/" >code.google.com/p/parsecsv-for-php/</a>)</li> 
    108                 </ul> 
    109                 <h2>Technologies</h2> 
    110                 <ul> 
    111                         <li><strong>php</strong> -  A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.  (<a href="http://www.php.net">www.php.net</a>)</li> 
    112                         <li><strong>MySQL</strong> - An open source relational database management system (RDBMS) that uses Structured Query Language (SQL) (<a href="http://www.mysql.org">www.mysql.org</a>)</li> 
    113                         <li><strong>AJAX</strong> - Asynchronous Javascript And XML is a group of technologies that help browser based applications behave more like applications you run from your desktop.</li> 
    114                 </ul> 
    115144 
    116         <p align="right"> 
    117                 <input type="button" value="Back" class="Buttons" onclick="document.location='<?php echo APP_PATH; if(isset($_SESSION["userinfo"])) echo DEFAULT_LOAD_PAGE?>'" id="loginButton"/> 
    118         </p> 
     145        <h2>Source Code</h2> 
     146        <ul> 
     147                <li> 
     148                        <h3>phpBMS (<a href="http://www.phpbms.org">www.phpbms.org</a>)</h3> 
     149                        <p>Commercial Open Source Business Management Web Appllication</p> 
     150                </li> 
     151 
     152                <li> 
     153                        <h3>fpdf (<a href="http://www.fpdf.org">www.fpdf.org</a>)</h3> 
     154                        <p>A PHP class which allows to generate PDF files with pure PHP</p> 
     155                </li> 
     156 
     157                <li> 
     158                        <h3>moo.fx (<a href="http://moofx.mad4milk.net/">moofx.mad4milk.net</a>)</h3> 
     159                        <p>Super lightweight JavaScript effects library</p> 
     160                </li> 
     161 
     162                <li> 
     163                        <h3>mochikit (<a href="http://mochichit.com/">mochikit.com</a>)</h3> 
     164                        <p>A lightweight JavaScript library - phpBMS utilizes modified parts of mochikit code and it's programming structure for JavaScript as inspiration.</p> 
     165                </li> 
     166 
     167                <li> 
     168                        <h3>parseCSV (<a href="http://code.google.com/p/parsecsv-for-php/" >code.google.com/p/parsecsv-for-php/</a>)</h3> 
     169                        <p>An easy to use PHP class to read and write CSV data properly.</p> 
     170                </li> 
     171        </ul> 
     172 
     173        <p align="right"><input type="button" value="Log In" class="Buttons" onclick="document.location='./'" id="loginButton" /></p> 
     174 
    119175</div><?php include("footer.php") ?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.