We have clarified our Privacy Statement. Please have a look at our changes.
Browse Source

fixing short-tags and indentation (tabs-to-spaces)

tags/v0.1.9
Izzy 2 years ago
parent
commit
6834b4dcac
8 changed files with 46 additions and 46 deletions
  1. +17
    -17
      class.download.inc
  2. +14
    -14
      class.histview.inc
  3. +4
    -4
      class.hvconfig.inc
  4. +2
    -2
      dl_latest.php
  5. +1
    -1
      doc/limits.txt
  6. +2
    -2
      doc/readme.txt
  7. +4
    -4
      filelist.php
  8. +2
    -2
      histview.php

+ 17
- 17
class.download.inc View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView (c) 2003-2009 by Itzchak Rehberg #
# HistView (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel AT izzysoft DOT de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #
@@ -19,7 +19,7 @@ require_once(dirname(__FILE__)."/class.hvconfig.inc");
* @class download
* @extends hvconfig
* @author Izzy (devel AT izzysoft DOT de)
* @copyright (c) 2007-2009 by Itzchak Rehberg and IzzySoft
* @copyright (c) 2007-2017 by Itzchak Rehberg and IzzySoft
* @version $Revision$ $Date$
*/
class download extends hvconfig {
@@ -66,11 +66,11 @@ class download extends hvconfig {
foreach ($bots as $bot) {
$bot = trim($bot);
if (empty($bot) || substr($bot,0,1)=="#") continue;
switch ($type) {
case "crawler" : $this->crawler_net($bot); break;
case "ignore" : $this->ignore_bot($bot); break;
case "reject" : $this->reject_bot($bot); break;
}
switch ($type) {
case "crawler" : $this->crawler_net($bot); break;
case "ignore" : $this->ignore_bot($bot); break;
case "reject" : $this->reject_bot($bot); break;
}
}
}
}
@@ -167,19 +167,19 @@ class download extends hvconfig {
switch ($cat) {
case "ignore" :
if (is_array($bot)) $this->ignored_bots = array_merge($this->ignored_bots,$bot);
elseif (is_string($bot)) $this->ignored_bots[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
elseif (is_string($bot)) $this->ignored_bots[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
case "reject" :
if (is_array($bot)) $this->rejected_bots = array_merge($this->rejected_bots,$bot);
elseif (is_string($bot)) $this->rejected_bots[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
elseif (is_string($bot)) $this->rejected_bots[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
case "crawler" :
if (is_array($bot)) $this->crawler_nets = array_merge($this->crawler_nets,$bot);
elseif (is_string($bot)) $this->crawler_nets[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
elseif (is_string($bot)) $this->crawler_nets[] = $bot;
else trigger_error("Cannot add this bot(s) - wrong data type.",E_USER_WARNING);
break;
}
}


+ 14
- 14
class.histview.inc View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView (c) 2003-2009 by Itzchak Rehberg #
# HistView (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel AT izzysoft DOT de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #
@@ -19,7 +19,7 @@ require_once(dirname(__FILE__)."/class.hvconfig.inc");
* @class histview
* @extends hvconfig
* @author Izzy (devel@izzysoft.de)
* @copyright (c) 2003-2009 by Itzchak Rehberg and IzzySoft
* @copyright (c) 2003-2017 by Itzchak Rehberg and IzzySoft
* @version $Revision$ $Date$
*/
class histview extends hvconfig {
@@ -56,7 +56,7 @@ class histview extends hvconfig {
$this->input = file($infile);
$this->idx->ver = 0;
$this->idx->mark = 0;
$this->copy = "2003-2009 by Itzchak Rehberg &amp; <A HREF='http://www.izzysoft.de/' "
$this->copy = "2003-2017 by Itzchak Rehberg &amp; <A HREF='http://www.izzysoft.de/' "
. "TARGET='_blank'>IzzySoft</A>";
}

@@ -227,8 +227,8 @@ class histview extends hvconfig {
$this->version[$this->idx->ver]->num = $tline;
return TRUE;
} else {
$this->version[$this->idx->ver]->changes[$this->idx->mark]->content .= " $tline";
}
$this->version[$this->idx->ver]->changes[$this->idx->mark]->content .= " $tline";
}
break;
case $this->plus : ++$this->idx->mark;
$this->version[$this->idx->ver]->changes[$this->idx->mark]->mark = $this->iplus;
@@ -278,15 +278,15 @@ class histview extends hvconfig {
case "deb" : for ($i=$this->max_relnum;$i>=0;--$i) {
$f = trim($this->debbase."/${fname}_".substr($version,1,$pos-2))."-".$this->relname.$i."_";
if ($this->arch=="noarch") $f .= "all.deb";
else $f .= $this->arch.".deb";
if (file_exists($f)) break;
}
break;
else $f .= $this->arch.".deb";
if (file_exists($f)) break;
}
break;
case "rpm" : for ($i=$this->max_relnum;$i>=0;--$i) {
$f = trim($this->rpmbase."/${fname}-".substr($version,1,$pos-2))."-".$this->relname.$i.".".$this->arch.".rpm";
if (file_exists($f)) break;
}
break;
$f = trim($this->rpmbase."/${fname}-".substr($version,1,$pos-2))."-".$this->relname.$i.".".$this->arch.".rpm";
if (file_exists($f)) break;
}
break;
}
if (file_exists($f)) {
$f = substr($f,strlen($this->basedir));

+ 4
- 4
class.hvconfig.inc View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView (c) 2003-2009 by Itzchak Rehberg #
# HistView (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel AT izzysoft DOT de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #
@@ -16,7 +16,7 @@
* @package Api
* @class hvconfig
* @author Izzy (devel@izzysoft.de)
* @copyright (c) 2003-2009 by Itzchak Rehberg and IzzySoft
* @copyright (c) 2003-2017 by Itzchak Rehberg and IzzySoft
* @version $Revision$ $Date$
*/
class hvconfig {
@@ -306,6 +306,6 @@ class hvconfig {
//------------------------------------------------------[ internal stuff ]---
// please don't touch this ;)
$this->hv_version = "0.1.7";
$this->homepage = "http://projects.izzysoft.de/trac/histview";
$this->homepage = "https://github.com/IzzySoft/HistView";
}
}

+ 2
- 2
dl_latest.php View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView (c) 2003-2009 by Itzchak Rehberg #
# HistView (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel AT izzysoft DOT de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #

+ 1
- 1
doc/limits.txt View File

@@ -58,7 +58,7 @@ Database cleaning
-----------------

Since the data in our table is of no use once it is older than $interval
seconds, HostView will automatically purge older values if you set $dlLimitAutopurge
seconds, HistView will automatically purge older values if you set $dlLimitAutopurge
to TRUE (recommended setting). Of course this requires some privileges on the
table used - with the example configuration, this would be:


+ 2
- 2
doc/readme.txt View File

@@ -1,5 +1,5 @@
# =============================================================================
# HistView (c) 2003-2009 by IzzySoft (devel AT izzysoft DOT de)
# HistView (c) 2003-2017 by IzzySoft (devel AT izzysoft DOT de)
# -----------------------------------------------------------------------------
# $Id$
# -----------------------------------------------------------------------------
@@ -105,7 +105,7 @@ histview and the download class. dl_latest.php demonstrates how to use the
download class to provide an alias to the always latest version of a given
program.
For a more detailed documentation, please visit the project site at
http://projects.izzysoft.de/trac/histview. For a complete reference to the
https://github.com/IzzySoft/HistView. For a complete reference to the
methods, please refer to the Api documentation shipping with the distribution.



+ 4
- 4
filelist.php View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView (c) 2003-2007 by Itzchak Rehberg #
# HistView (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel@izzysoft.de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #
@@ -21,7 +21,7 @@ $dl = new download(); # create an instance
# where "xxxx" stands for any amount of letters/digits/-/_/. and
# 0.0.0 for the version number
$dl->set_filetype("tar","/^([\w-\.]+)(\d+)-(\d+)-(\d+).tgz/","tgz","tgz.png");
$e404 = ""; # Here we store the error (if any)
$e404 = ""; # Here we store the error (if any)

#=============================================================[ Processing ]===
#----------------------------------------------[ Was a download requested? ]---
@@ -59,7 +59,7 @@ $dl->add_details(dirname(__FILE__)); # add size, date etc. to the list
<TD CLASS="head">Date</TD>
<TD CLASS="head">Description</TD>
</TR>
<?
<?php
#--------------------------------------------------------------[ File list ]---
# Here we loop the created file list (array) and create one table row per file
foreach ($dl->filelist as $file) {

+ 2
- 2
histview.php View File

@@ -1,6 +1,6 @@
<?
<?php
#############################################################################
# HistView Client (c) 2003-2009 by Itzchak Rehberg #
# HistView Client (c) 2003-2017 by Itzchak Rehberg #
# written by Itzchak Rehberg <devel AT izzysoft DOT de> #
# http://www.izzysoft.de/ #
# ------------------------------------------------------------------------- #

Loading…
Cancel
Save