Пример #1
0
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: upgrade_6.php v1.0 2013-08-08 datazen $
*/
$www_location = 'http://' . $_SERVER['HTTP_HOST'];
$www_ssl_location = 'https://' . $_SERVER['HTTP_HOST'];
if (isset($_SERVER['REQUEST_URI']) && empty($_SERVER['REQUEST_URI']) === false) {
    $www_location .= $_SERVER['REQUEST_URI'];
    $www_ssl_location .= $_SERVER['REQUEST_URI'];
} else {
    $www_location .= $_SERVER['SCRIPT_FILENAME'];
    $www_ssl_location .= $_SERVER['SCRIPT_FILENAME'];
}
$www_location = substr($www_location, 0, strpos($www_location, 'install'));
$www_ssl_location = substr($www_ssl_location, 0, strpos($www_ssl_location, 'install'));
$dir_fs_www_root = lc_realpath(dirname(__FILE__) . '/../../../') . '/';
?>
<script language="javascript" type="text/javascript" src="../includes/javascript/xmlhttp/xmlhttp.js"></script>
<script language="javascript" type="text/javascript" src="../includes/javascript/xmlhttp/autocomplete.js"></script>
<script language="javascript" type="text/javascript">
<!--
String.prototype.wordWrap = function(m, b, c){
  var i, j, s, r = this.split("\n");
  if(m > 0) for(i in r){
      for(s = r[i], r[i] = ""; s.length > m;
          j = c ? m : (j = s.substr(0, m).match(/\S*$/)).input.length - j[0].length
          || m,
          r[i] += s.substr(0, j) + ((s = s.substr(j)).length ? b : "")
      );
      r[i] += s;
  }
Пример #2
0
?>
" border="0" width="16" height="16"></td>
              <td style="padding-left:5px;">images/products/small/</td>
              <td align="left"><?php 
echo $writeable ? $lC_Language->get('box_server_writeable') : $lC_Language->get('box_server_not_writeable');
?>
</td>
              <?php 
if (!$writeable) {
    $ok = FALSE;
}
?>
            </tr>                     
            <tr>
              <?php 
$writeable = is_dir(lc_realpath(dirname(__FILE__) . '/../../../images/products/thumbnails/')) && is_writeable(lc_realpath(dirname(__FILE__) . '/../../../images/products/thumbnails/')) && substr(sprintf('%o', fileperms(lc_realpath(dirname(__FILE__) . '/../../../images/products/thumbnails/'))), -4) >= "0755" ? TRUE : FALSE;
?>
              <td width="23px" align="right"><img src="templates/img/icons/<?php 
echo $writeable ? 'tick.gif' : 'cross.gif';
?>
" border="0" width="16" height="16"></td>
              <td style="padding-left:5px;">images/products/thumbnails/</td>
              <td align="left"><?php 
echo $writeable ? $lC_Language->get('box_server_writeable') : $lC_Language->get('box_server_not_writeable');
?>
</td>
              <?php 
if (!$writeable) {
    $ok = FALSE;
}
?>