Changeset 2388
- Timestamp:
- 11/26/2011 2:11:18 AM (18 months ago)
- Location:
- trunk/website/scripts
- Files:
-
- 1 added
- 2 edited
-
Build.php (modified) (1 diff)
-
BuildBranch.php (added)
-
BuildServer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/Build.php
r1935 r2388 144 144 } 145 145 } 146 147 /**148 * Represents a branch of all builds.149 */150 class BuildBranch151 {152 private $ID;153 private $Title;154 private $Version;155 156 private function __construct($branchId, $title, $version)157 {158 $this->ID = $branchId;159 $this->Title = $title;160 $this->Version = $version;161 }162 163 /**164 * Gets the branches that are currently maintained.165 *166 * @return array The list of branches that are currently maintained.167 */168 public static function Get()169 {170 return array(171 'Eraser6' => new BuildBranch('Eraser6', 'Eraser 6.0', '6.0.8'),172 'Eraser6.2' => new BuildBranch('Eraser6.2', 'Eraser 6.2', '6.1.0')173 );174 }175 176 public function __get($name)177 {178 return $this->$name;179 }180 }181 146 ?> -
trunk/website/scripts/BuildServer.php
r2387 r2388 55 55 http_digest_challenge(); 56 56 57 require('Build.php'); 58 require('BuildUtil.php'); 59 require('Credentials.php'); 60 require('Database.php'); 57 require_once('Build.php'); 58 require_once('BuildUtil.php'); 59 require_once('BuildBranch.php'); 60 require_once('Credentials.php'); 61 require_once('Database.php'); 61 62 62 63 try … … 70 71 71 72 //Get the branch the notification is for 72 define('HTTP_WEB_ROOT', 'http://eraser.sourceforge.net');73 73 $branch = $branches[$_GET['branch']]; 74 74
Note: See TracChangeset
for help on using the changeset viewer.
