[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/setup/inc/ -> step2.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  if($err) echo "<p class=\"error\"><b>Check your admin user name and password!</b></p>";
  24  
  25  ?>
  26  <h1>7. Path settings </h1>
  27  <form action="setup.php?step=2" method="post">
  28    <table border="0" cellpadding="0" cellspacing="0" summary="">
  29            <tr>
  30              <td align="right" class="v10">site basis:&nbsp;</td>
  31              <td><input name="site" type="text" class="f11b" id="site" value="<?php echo html_specialchars($phpwcms["site"]) ?>" size="30" style="width:200px"></td>
  32              <td class="chatlist"><em>&nbsp;default: http://www.mysite.com/</em></td>
  33            </tr>
  34            <tr>
  35              <td align="right" class="v10">&nbsp;</td>
  36              <td class="chatlist">&nbsp;</td>
  37              <td class="chatlist"><em>&nbsp;do NOT add any subdir here like</em><br><em>&nbsp;http://mysite.com/wcms/</em></td>
  38            </tr>
  39             <tr><td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="6"></td></tr>
  40  
  41            <tr>
  42              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="25"></td>
  43            </tr>
  44            <tr>
  45              <td colspan="3">Settings for handling email sending in phpwcms</td>
  46            </tr>
  47            <tr><td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="15"></td></tr>
  48            <tr>
  49              <td align="right" class="v10">from/reply-to&nbsp;email:&nbsp;</td>
  50              <td><input name="smtp_from_email" type="text" class="f11b" id="smtp_from_email" value="<?php echo ($phpwcms['SMTP_FROM_EMAIL']) ? html_specialchars($phpwcms['SMTP_FROM_EMAIL']) : html_specialchars($phpwcms["admin_email"]) ?>" size="30" style="width:200px"></td>
  51              <td class="chatlist"><em>&nbsp;default: <?php echo html_specialchars($phpwcms["admin_email"]) ?></em></td>
  52      </tr>
  53            <tr>
  54              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  55      </tr>
  56            <tr>
  57              <td align="right" class="v10">from/reply-to&nbsp;name:&nbsp;</td>
  58              <td><input name="smtp_from_name" type="text" class="f11b" id="smtp_from_name" style="width:200px" value="<?php echo ($phpwcms['SMTP_FROM_NAME']) ? html_specialchars($phpwcms['SMTP_FROM_NAME']) : 'webmaster' ?>" size="30"></td>
  59              <td class="chatlist"><em>&nbsp;default: webmaster</em></td>
  60      </tr>
  61                <tr>
  62              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  63      </tr>
  64            <tr>
  65              <td align="right" class="v10">SMTP&nbsp;server:&nbsp;</td>
  66              <td><input name="smtp_host" type="text" class="f11b" id="smtp_host" value="<?php echo ($phpwcms['SMTP_HOST']) ? html_specialchars($phpwcms['SMTP_HOST']) : 'localhost' ?>" size="30" style="width:200px"></td>
  67              <td class="chatlist"><em>&nbsp;default: localhost </em></td>
  68      </tr>
  69            <tr>
  70              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  71      </tr>
  72            <tr>
  73              <td align="right" class="v10">SMTP&nbsp;port :&nbsp;</td>
  74              <td><input name="smtp_port" type="text" class="f11b" id="smtp_port" style="width:200px" value="<?php echo ($phpwcms['SMTP_PORT']) ? intval($phpwcms['SMTP_PORT']) : '25'; ?>" size="30"></td>
  75              <td class="chatlist"><em>&nbsp;default: 25</em></td>
  76      </tr>
  77                <tr>
  78              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  79      </tr>
  80            <tr>
  81              <td align="right" class="v10">mail&nbsp;method :&nbsp;</td>
  82              <td><select name="smtp_mailer" id="smtp_mailer" class="f11b">
  83                <option value="mail" <?php if(strtolower($phpwcms['SMTP_MAILER']) == 'mail') echo 'selected="selected"'; ?>>PHP mail()</option>
  84                <option value="smtp" <?php if(strtolower($phpwcms['SMTP_MAILER']) == 'smtp') echo 'selected="selected"'; ?>>SMTP</option>
  85                <option value="sendmail" <?php if(strtolower($phpwcms['SMTP_MAILER']) == 'sendmail') echo 'selected="selected"'; ?>>UNIX sendmail</option>
  86              </select></td>
  87              <td class="chatlist"><em>&nbsp;default: mail (smtp, sendmail) </em></td>
  88      </tr>
  89            <tr>
  90              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  91      </tr>
  92            <tr>
  93              <td align="right" class="v10">use&nbsp;SMTP_AUTH :&nbsp;</td>
  94              <td><input name="smtp_auth" type="checkbox" id="smtp_auth" value="1" <?php if(intval($phpwcms['SMTP_AUTH']) == 1) echo 'checked="checked"'; ?> /></td>
  95              <td class="chatlist"><em>&nbsp;default: ON </em></td>
  96      </tr>
  97                <tr>
  98              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
  99      </tr>
 100            <tr>
 101              <td align="right" class="v10">SMTP login:&nbsp;</td>
 102              <td><input name="smtp_user" type="text" class="f11b" id="smtp_user" value="<?php echo html_specialchars($phpwcms['SMTP_USER']) ?>" size="30" style="width:200px"></td>
 103              <td class="chatlist">&nbsp;</td>
 104      </tr>
 105            <tr>
 106              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="2"></td>
 107      </tr>
 108            <tr>
 109              <td align="right" class="v10">SMTP&nbsp;password:&nbsp;</td>
 110              <td><input name="smtp_pass" type="text" class="f11b" id="smtp_pass" style="width:200px" value="<?php echo html_specialchars($phpwcms['SMTP_PASS']) ?>" size="30"></td>
 111              <td class="chatlist">&nbsp;</td>
 112      </tr>
 113            <tr>
 114              <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="15"></td>
 115      </tr>
 116            <tr>
 117              <td align="right" class="v10">&nbsp;</td>
 118              <td colspan="2"><input name="Submit" type="submit" class="button10" value="send site data"></td>
 119            </tr>
 120  </table>
 121  <input name="do" type="hidden" value="1"></form>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7