-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 816d473
Showing
19 changed files
with
1,460 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="start_page" basedir="." default="main"> | ||
<!-- $Id: build.xml,v 75eae3b69b79 2009/03/05 16:12:07 ladislav $ --> | ||
<property name="tmp" value="/tmp" /> | ||
<property name="wsname" value="source" /> | ||
<property name="package" value="${phing.project.name}" override="true" /> | ||
<property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" /> | ||
<property name="srcdir" value="./src/" override="true" /> | ||
|
||
<!-- Main Target --> | ||
<target name="main" description="main target"> | ||
|
||
<!-- Create dirs --> | ||
<mkdir dir="${builddir}/reports"/> | ||
<mkdir dir="${builddir}/reports/phpunit"/> | ||
<mkdir dir="${builddir}/reports/coverage"/> | ||
|
||
<!-- PHP API Documentation --> | ||
<phpdoc title="API Documentation" | ||
destdir="${builddir}/apidocs" | ||
sourcecode="yes" | ||
defaultpackagename="StartPage" | ||
output="HTML:Smarty:PHP"> | ||
<fileset dir="."> | ||
<include name="*/*.php" /> | ||
</fileset> | ||
</phpdoc> | ||
|
||
<!-- PHP CodeSniffer --> | ||
<exec command="phpcs --standard=ZEND --report=checkstyle ${ws}/${wsname}/src/ > ${builddir}/reports/checkstyle.xml" escape="false" /> | ||
|
||
<!-- PHPUnit --> | ||
<exec command="phpunit --log-xml ${builddir}/reports/phpunit.xml --log-pmd ${builddir}/reports/phpunit.pmd.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/ tests/AllTests.php"/> | ||
|
||
<phpunit> | ||
<formatter todir="${builddir}/reports/phpunit" type="xml"/> | ||
<batchtest> | ||
<fileset dir="."> | ||
<include name="tests/*Test*.php"/> | ||
</fileset> | ||
</batchtest> | ||
</phpunit> | ||
<phpunitreport infile="${builddir}/reports/phpunit/testsuites.xml" format="frames" todir="${builddir}/reports/phpunit/" /> | ||
|
||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?ph | ||
/** | ||
* @package startpage | ||
* @author Ladislav Prskavec <ladislav@prskavec.net> | ||
* @copyright Copyright (c) 2007-2008 | ||
* @version $Id: 404.php,v 58aa8855a2ab 2009/03/09 08:25:16 ladislav $ | ||
* @filesource | ||
*/ | ||
?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | ||
<meta http-equiv="pragma" content="no-cache" /> | ||
<meta http-equiv="content-language" content="en" /> | ||
<meta name="author" content="Prometheus Design, 2004; mailto:webmaster[at]prskavec.net" /> | ||
<meta name="copyright" content="Ladislav Prskavec [abtris] - xhtml,css and php" /> | ||
<title>HTTP 404 [Page not found | Stránka nenalezena]</title> | ||
<style type="text/css"> | ||
html, body { | ||
background:black; | ||
color: white; | ||
font:10pt/1.5 "verdana ce", verdana, "helvetica ce", helvetica, "arial ce", arial, sans-serif; | ||
margin: 0px auto; padding: 10px; | ||
} | ||
a:link,a:visited { color:red; } | ||
|
||
h2 { color:red; } | ||
hr { width:80%; | ||
text-align: left; | ||
margin-left: 0; | ||
background-color: white; | ||
height: 3px; | ||
} | ||
acronym:hover { cursor:pointer; } | ||
</style> | ||
|
||
</head> | ||
<body> | ||
|
||
<h1>HTTP 404 [Page not found | Stránka nenalezena]</h1> | ||
<?php | ||
if ($_SERVER["SERVER_PROTOCOL"]==HTTP/1.1) $protokol="http://"; | ||
?> | ||
<h2><acronym title='Uniform Resource Locator - The address of a file or page accessible on the Internet'>URL</acronym>: | ||
<?php echo $protokol.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"] ?></h2> | ||
<hr /> | ||
<p> | ||
Sorry, but the page <em><?php echo $protokol.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"] ?></em> | ||
doesn't exist on this server. | ||
The link you have followed may be broken or out of date.</p> | ||
|
||
<h3>Maybe can help following:</h3> | ||
<ul> | ||
<li>please check the URL to ensure that the path is correct.</li> | ||
<li>go to web <a href='/' title='go to homepage'>homepage</a></li> | ||
<li>finally, send me e-mail <a href='mailto:webmaster@prskavec.net'>webmaster@prskavec.net</a></li> | ||
</ul> | ||
|
||
<hr /> | ||
<p>Je mi líto, požadovaná stránka <em><?php echo $protokol.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"] ?></em> | ||
se bohužel na serveru nenachází. Patrně byla odstraněna, přemístěna nebo přejmenována.</p> | ||
|
||
<h3>Pomoci vám může následující:</h3> | ||
<ul> | ||
<li>pokud jste zapsali adresu do prohlížeče ručně, zkontrolujte zadanou URL.</li> | ||
<li>přejděte na úvodní <a href='/' title='Přejít na homepage'>stránku webu</a> a dál pokračujte odtud</li> | ||
<li>pokud nic nepomůe napište mi na mail <a href='mailto:webmaster@prskavec.net'>webmaster@prskavec.net</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# http://www.kernel.org/pub/software/scm/git/docs/git-whatchanged.html | ||
cd $1; | ||
git pull | ||
echo '<?xml version="1.0"?>\n<log>' >$1.xml | ||
git log --pretty=format:' | ||
<logentry revision="%h"> | ||
<author>%an</author> | ||
<date>%ai</date> | ||
<msg><![CDATA[%s%n%b]]></msg> | ||
</logentry>' >>$1.xml | ||
echo '</log>' >>$1.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html | ||
echo '<?xml version="1.0"?>\n<log>\n' >$1.xml | ||
hg log --template '<logentry revision="{rev}"> | ||
<author>{author|obfuscate}</author> | ||
<date>{date|isodate}</date> | ||
<msg>{desc|escape}\n</msg> | ||
<paths><path>{files}</path></paths> | ||
</logentry>\n' $1/ >>$1.xml | ||
echo '</log>\n' >>$1.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* @package startpage | ||
* @author Ladislav Prskavec <ladislav@prskavec.net> | ||
* @copyright Copyright (c) 2007-2008 | ||
* @version $Id: changelog.php,v f99124d6fbe3 2009/09/22 12:39:22 ladislav $ | ||
* @filesource | ||
*/ | ||
/** | ||
* Include config | ||
*/ | ||
include_once "config.inc.php"; | ||
$debug=0; | ||
$changelog=$_GET['file']; | ||
$changelogName = basename($changelog); | ||
/** | ||
* Include class | ||
*/ | ||
include_once "startpage_class.php"; | ||
?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> | ||
<head> | ||
<meta name="generator" content="PSPad editor, www.pspad.com" /> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<link href="<?php echo BASE_URL; ?>/startpage.css" type="text/css" rel="stylesheet" /> | ||
<title><?php echo "Changelog ".str_replace(XMLLOGNAME, "", $changelogName); ?></title> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
<?php | ||
echo "<h1>Changelog ".str_replace(XMLLOGNAME, "", $changelogName)."</h1>"; | ||
StartPage::changeLog($changelog, false); | ||
?> | ||
<p class="foot"><?php echo "Generated:".date(DATE_RFC822); ?></p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Config file | ||
* $Id: config.inc.php,v f99124d6fbe3 2009/09/22 12:39:22 ladislav $ | ||
*/ | ||
define('MYSQL_USER', 'root'); // Your MySQL username | ||
define('MYSQL_PASS', 'goli83'); // ...and password | ||
define('MYSQL_HOST', 'localhost'); | ||
define('MYSQL_DB', 'startpage'); | ||
define('SQLITE_TEST_DB', 'http://www/_start/sqlm/test.sqlite3'); | ||
define('BUG_URL', 'https://helpdesk.cvut.cz/ets/0/showTicket?id='); | ||
define('SVN_PATH', 'https://svn.prod.lmc.cz/svn/'); | ||
define('SQLITE_PATH', 'http://www/_start/sqlm/'); | ||
define('MYADMIN_PATH', 'http://localhost/phpmyadmin/'); | ||
define('MINADMIN_PATH', 'http://localhost/adminer/'); | ||
define('APACHELOG_PATH', '/usr/local/zend/var/log/php.log'); | ||
define('BASE_URL', 'http://localhost/startpage/src/'); | ||
define('PROJECT_FILTER', '*'); | ||
define('WIKI', 'http://wiki.prskavec.net'); | ||
define('WIKI_LINK', 'http://wiki.prskavec.net/doku.php?id=projects:'); | ||
define('XMLLOGNAME', '.xml'); | ||
define('PROJECT_PATH', '/srv/www2/|/home/prskavecl/src/'); | ||
define('PROJECT_URL', 'http://localhost/|'); | ||
define('REP_BROWSER',''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Config file | ||
* $Id: config.inc.php,v bd6da69ba419 2009/07/17 11:45:45 ladislav $ | ||
*/ | ||
define('MYSQL_USER', 'startpage'); // Your MySQL username | ||
define('MYSQL_PASS', 'startpage'); // ...and password | ||
define('MYSQL_HOST', 'localhost'); | ||
define('MYSQL_DB', 'startpage'); | ||
define('SQLITE_TEST_DB', ''); | ||
define('BUG_URL', ''); | ||
define('SVN_PATH', ''); | ||
define('SQLITE_PATH', '/'); | ||
define('MYADMIN_PATH', 'http://localhost/phpmyadmin/'); | ||
define('MINADMIN_PATH', 'http://localhost/adminer/adminer/'); | ||
define('APACHELOG_PATH', '/usr/local/zend/var/log/php.log'); | ||
define('BASE_URL', ''); | ||
define('PROJECT_FILTER', '*'); | ||
define('WIKI', ''); | ||
define('WIKI_LINK', ''); | ||
define('XMLLOGNAME', '.xml'); | ||
define('PROJECT_PATH', ''); // support for more directories separator pipe | | ||
define('PROJECT_URL', ''); | ||
define('REP_BROWSER',''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/usr/local/zend/bin/php | ||
<?php | ||
include_once "config.inc.php"; | ||
|
||
// take arguments | ||
$skipSvn = false; | ||
$allSvn = false; | ||
// command line arguments | ||
if (isset($argv[1])) { | ||
switch ($argv[1]) { | ||
case "--skipSvn": | ||
$skipSvn = true; | ||
break; | ||
case "--allSvn": | ||
$allSvn = true; | ||
break; | ||
case "--help": | ||
echo 'SVN changelog $Id: cron.php,v af678c04bdb8 2009/07/24 06:04:33 ladislav $ Ladislav Prskavec'."\n"; | ||
echo "\n"; | ||
echo "Usage: php cron.php [options]\n"; | ||
echo "\n"; | ||
echo " --help Help\n"; | ||
echo " --skipSvn skip check SVN directories\n"; | ||
echo " --allSvn make log for whole repository, not URL\n"; | ||
exit; | ||
break; | ||
} | ||
} | ||
|
||
$roots = explode('|', PROJECT_PATH); | ||
if ($roots[0]=="/srv/www2/") unset($roots[0]); | ||
|
||
$pwd = shell_exec("pwd"); | ||
|
||
foreach ($roots as $i) { | ||
foreach (glob ($i.'*',GLOB_ONLYDIR) as $dirs) { | ||
// echo "Make: $dirs\n"; | ||
// SVN | ||
if (!$skipSvn) { | ||
if (file_exists($dirs.'/.svn/entries')) { | ||
echo "$dirs" . "\n"; | ||
exec("cd $dirs"); | ||
exec("svn up $dirs"); | ||
// for All repository | ||
if ($allSvn) { | ||
$output = shell_exec("svn info $dirs | grep 'Root' | awk '{print $3}'"); | ||
} else { | ||
// for URL repository | ||
$output = shell_exec("svn info $dirs | grep 'URL' | awk '{print $2}'"); | ||
} | ||
$out = shell_exec("svn log --xml -v $output"); | ||
if (!empty($out) && strlen($out)>28) { | ||
file_put_contents("{$dirs}.xml",$out); | ||
} | ||
} | ||
} | ||
// HG | ||
if (file_exists($dirs.'/.hg')) { | ||
echo "$dirs" . "\n"; | ||
exec("hg pull $dirs"); | ||
exec("sh ".dirname(__FILE__)."/bin/hglog.sh $dirs"); | ||
} | ||
// GIT | ||
if (file_exists($dirs.'/.git')) { | ||
echo "$dirs" . "\n"; | ||
exec("sh ".dirname(__FILE__)."/bin/gitlog.sh $dirs"); | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
echo "Done\n"; |
Oops, something went wrong.