Пример #1
0
<?php

require __DIR__ . '/git.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>UGit</title>
</head>
<body>
<ul>
<?php 
foreach (Git::getAllRepositories() as $name => $path) {
    ?>
    <li><a href="tree.php?r=<?php 
    echo $name;
    ?>
"><?php 
    echo $name;
    ?>
</a></li>
<?php 
}
?>
</ul>
</body>
</html>
Пример #2
0
 public function getPath()
 {
     $repositories = Git::getAllRepositories();
     return $repositories[$this->name];
 }