Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d1750eaaf | ||
|
|
c9e896c27e | ||
|
|
dd61225eae | ||
|
|
980321b73f | ||
|
|
25939cc553 |
@@ -75,7 +75,7 @@ if ($nr)
|
||||
{
|
||||
Memc::flush();
|
||||
$rp = $nr != 1 ? "reports" : "report";
|
||||
IRCNotify::send("#replex", "[CrashProcessor] $nr new $rp. http://crash.replex.org/");
|
||||
//IRCNotify::send("#SingularityViewer", "[CrashProcessor] $nr new $rp. http://crash.singularityviewer.org/");
|
||||
}
|
||||
|
||||
Session::GC();
|
||||
|
||||
@@ -15,4 +15,4 @@ if (!$miniDump || !($miniDump->getData()))
|
||||
}
|
||||
|
||||
header("Content-Type: application/octet-stream");
|
||||
http::sendDownload("replex" . ((int)$_GET["report_id"]) . ".dmp", $miniDump->getData());
|
||||
http::sendDownload("singularity" . ((int)$_GET["report_id"]) . ".dmp", $miniDump->getData());
|
||||
BIN
htdocs/images/favicon.ico
Normal file
BIN
htdocs/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 318 B |
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
BIN
htdocs/images/singularity_icon.png
Normal file
BIN
htdocs/images/singularity_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
BIN
htdocs/images/singularity_text.png
Normal file
BIN
htdocs/images/singularity_text.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -11,12 +11,12 @@ if (!$S->isAnonymous() && $S->user->isAllowed())
|
||||
Layout::header();
|
||||
?>
|
||||
|
||||
<p>This application is used for analyzing crash reports and statitstics for the Replex
|
||||
<p>This application is used for analyzing crash reports and statistics for the Singularity
|
||||
Viewer project.</p>
|
||||
|
||||
<p>Access to this tool is granted to the members of the development team.
|
||||
The main goal is to identify the most common problems and improve the expierience
|
||||
for the users of Replex Viewer.</p>
|
||||
The main goal is to identify the most common problems and improve the experience
|
||||
for the users of Singularity Viewer.</p>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class CrashReport
|
||||
|
||||
static function htmlFrame($f, $chan, $version)
|
||||
{
|
||||
$urlBase = "https://github.com/replex-viewer/replex/blob/" . self::getHash($chan, $version);
|
||||
$urlBase = "https://github.com/singularity-viewer/SingularityViewer/blob/" . self::getHash($chan, $version);
|
||||
|
||||
$ret = "";
|
||||
$link = "";
|
||||
@@ -275,9 +275,9 @@ class CrashReport
|
||||
|
||||
$f->source_file = str_replace("\\", "/", $f->source_file);
|
||||
|
||||
if (stristr($f->module, "replex") !== false)
|
||||
if (stristr($f->module, "singularity") !== false)
|
||||
{
|
||||
$f->module = "replex";
|
||||
$f->module = "singularity";
|
||||
}
|
||||
else if (stristr($f->module, "llcommon") !== false)
|
||||
{
|
||||
@@ -432,7 +432,7 @@ class CrashReport
|
||||
self::$builds_map = self::getBuildsMap();
|
||||
}
|
||||
|
||||
if (!self::$builds_map[$chan]) $chan = "ReplexAlpha";
|
||||
if (!self::$builds_map[$chan]) $chan = "SingularityAlpha";
|
||||
|
||||
if (!self::$builds_map[$chan][$version]) return "master";
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ class DBH
|
||||
|
||||
function log($line)
|
||||
{
|
||||
return;
|
||||
static $f = false;
|
||||
static $failed = false;
|
||||
|
||||
@@ -50,7 +49,7 @@ class DBH
|
||||
$this->db_pass = $db_pass;
|
||||
$this->db_user = $db_user;
|
||||
$this->db_host = $db_host;
|
||||
|
||||
|
||||
$this->dbh = @mysql_pconnect($db_host, $db_user, $db_pass);
|
||||
|
||||
if (!$this->dbh) {
|
||||
@@ -192,4 +191,4 @@ class DBH
|
||||
* vim600: sw=4 ts=4 fdm=marker
|
||||
* vim<600: sw=4 ts=4
|
||||
*/
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Common html for all pages
|
||||
*
|
||||
* Description
|
||||
* @package Replex Crash Processor
|
||||
* @package Singularity Crash Processor
|
||||
* @author Latif Khalifa <latifer@streamgrid.net>
|
||||
* @copyright Copyright © 2012-2014, Latif Khalifa
|
||||
* @copyright Copyright © 2012, Latif Khalifa
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files
|
||||
@@ -113,23 +113,8 @@ class Layout
|
||||
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/css/singularity/singularity.css"/>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="//www.replex.org//apple-touch-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="//www.replex.org//apple-touch-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="//www.replex.org//apple-touch-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="//www.replex.org//apple-touch-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="//www.replex.org//apple-touch-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="//www.replex.org//apple-touch-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="//www.replex.org//apple-touch-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="//www.replex.org//apple-touch-icon-152x152.png">
|
||||
<link rel="icon" type="image/png" href="//www.replex.org//favicon-196x196.png" sizes="196x196">
|
||||
<link rel="icon" type="image/png" href="//www.replex.org//favicon-160x160.png" sizes="160x160">
|
||||
<link rel="icon" type="image/png" href="//www.replex.org//favicon-96x96.png" sizes="96x96">
|
||||
<link rel="icon" type="image/png" href="//www.replex.org//favicon-16x16.png" sizes="16x16">
|
||||
<link rel="icon" type="image/png" href="//www.replex.org//favicon-32x32.png" sizes="32x32">
|
||||
<meta name="msapplication-TileColor" content="#101040">
|
||||
<meta name="msapplication-TileImage" content="//www.replex.org/mstile-144x144.png">
|
||||
|
||||
<title>Replex Viewer - Automated Crash Report Processing System</title>
|
||||
<link rel="shortcut icon" href="<?php print IMG_ROOT ?>/favicon.ico" type="image/x-icon" />
|
||||
<title>Singularity Viewer - Automated Crash Report Processing System</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
@@ -147,10 +132,10 @@ class Layout
|
||||
|
||||
<div style="padding-top:10px;">
|
||||
<div style="display: inline-block;">
|
||||
<a href="<?php echo URL_ROOT ?>"><img src="images/replex_logo_square.png" width="70px" height="70px"/></a>
|
||||
<a href="<?php echo URL_ROOT ?>"><img src="images/singularity_icon.png" width="70px" height="70px"/></a>
|
||||
</div>
|
||||
<div style="display: inline-block; margin-left: 15px; color: #eee; padding-bottom: 10px; vertical-align: bottom;">
|
||||
<a href="<?php echo URL_ROOT ?>" style="font-size: 3em; font-weight: bold;">Replex Viewer</a>
|
||||
<a href="<?php echo URL_ROOT ?>" style="font-size: 3em; font-weight: bold;">Singularity Viewer</a>
|
||||
<br/>
|
||||
<span style="font-size: 1.6em;">Automated Crash Report Processing</span>
|
||||
</div>
|
||||
@@ -174,13 +159,13 @@ class Layout
|
||||
{ ?>
|
||||
<div style="margin-top:10px; padding: 5px;" class="ui-widget-header ui-corner-all">
|
||||
<div style="float: left; padding: 4px;">
|
||||
© 2013-2014 Replex Viewer Project
|
||||
© 2013 Singularity Viewer Project
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<a class="toolbarbutton" href="http://www.replex.org/">Replex Main Site</a>
|
||||
<a class="toolbarbutton" href="http://www.replex.org/wp/about">About</a>
|
||||
<a class="toolbarbutton" href="http://jira.openmetaverse.org/browse/REPLEX">Issue Tracker</a>
|
||||
<a class="toolbarbutton" href="https://github.com/replex-viewer/replex">Source Tracker</a>
|
||||
<a class="toolbarbutton" href="http://www.singularityviewer.org/">Singularity Main Site</a>
|
||||
<a class="toolbarbutton" href="http://www.singularityviewer.org/about">About</a>
|
||||
<a class="toolbarbutton" href="http://code.google.com/p/singularity-viewer/issues/">Issue Tracker</a>
|
||||
<a class="toolbarbutton" href="https://github.com/singularity-viewer/SingularityViewer">Source Tracker</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Simple key-value store for various options
|
||||
*
|
||||
* Description
|
||||
* @package Replex Crash Processor
|
||||
* @package Singularity Crash Processor
|
||||
* @author Latif Khalifa <latifer@streamgrid.net>
|
||||
* @copyright Copyright © 2012, Latif Khalifa
|
||||
*
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Parses incoming raw crash reports
|
||||
*
|
||||
* Description
|
||||
* @package Replex Crash Processor
|
||||
* @package Singularity Crash Processor
|
||||
* @author Latif Khalifa <latifer@streamgrid.net>
|
||||
* @copyright Copyright © 2012, Latif Khalifa
|
||||
*
|
||||
|
||||
@@ -205,8 +205,8 @@ class SearchFilter
|
||||
<div class="radio">
|
||||
Channel<br />
|
||||
<input type="radio" id="chan1" name="chan" value="" <?php echo !$this->chan ? 'checked="checked"' : '' ?>/><label for="chan1">All</label>
|
||||
<input type="radio" id="chan2" name="chan" value="Replex" <?php echo $this->chan == "Replex" ? 'checked="checked"' : '' ?>/><label for="chan2">Replex</label>
|
||||
<input type="radio" id="chan3" name="chan" value="ReplexAlpha" <?php echo $this->chan == "ReplexAlpha" ? 'checked="checked"' : '' ?>/><label for="chan3">ReplexAlpha</label>
|
||||
<input type="radio" id="chan2" name="chan" value="Singularity" <?php echo $this->chan == "Singularity" ? 'checked="checked"' : '' ?>/><label for="chan2">Singularity</label>
|
||||
<input type="radio" id="chan3" name="chan" value="SingularityAlpha" <?php echo $this->chan == "SingularityAlpha" ? 'checked="checked"' : '' ?>/><label for="chan3">SingularityAlpha</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This class handles sessions
|
||||
*
|
||||
* Description
|
||||
* @package Replex Crash Processor
|
||||
* @package Singularity Crash Processor
|
||||
* @author Latif Khalifa <latifer@streamgrid.net>
|
||||
* @copyright Copyright © 2012, Latif Khalifa
|
||||
*
|
||||
@@ -47,7 +47,7 @@ class Session
|
||||
$this->timeout = 604800; // 7 days
|
||||
$this->authenticated = false;
|
||||
$this->validsession = false;
|
||||
$this->cookie = "replex_sid";
|
||||
$this->cookie = "singularity_sid";
|
||||
$this->user = new User;
|
||||
$this->persist = new stdClass;
|
||||
register_shutdown_function(array(&$this, 'shutdown'));
|
||||
|
||||
@@ -139,7 +139,7 @@ class User
|
||||
*/
|
||||
public static function getByEmail($email)
|
||||
{
|
||||
$query = kl_str_sql('SELECT * FROM users WHERE cust_id!=1 AND email=!s', $email);
|
||||
$query = kl_str_sql('SELECT * FROM users WHERE email=!s', $email);
|
||||
if (!$res = DBH::$db->query($query) OR !$row = DBH::$db->fetchRow($res)) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
USE crashproc;
|
||||
|
||||
|
||||
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: singucrash
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Common http operations such as redirects, etc.
|
||||
*
|
||||
* Description
|
||||
* @package Replex Crash Processor
|
||||
* @package Singularity Crash Processor
|
||||
* @author Latif Khalifa <latifer@streamgrid.net>
|
||||
* @copyright Copyright © 2012, Latif Khalifa
|
||||
*
|
||||
|
||||
@@ -14,16 +14,24 @@ $user_email = GoogleLogin::userEmail();
|
||||
|
||||
$user = User::getByLogin($user_identity);
|
||||
|
||||
if (!$user)
|
||||
{
|
||||
var_dump($user_email);
|
||||
$user_tmp = User::getByEmail($user_email);
|
||||
if($user_tmp /* && (!$user->login) || ($user->login == "")*/)
|
||||
{
|
||||
$user = $user_tmp;
|
||||
$user->login = $user_identity;
|
||||
$user->update();
|
||||
}
|
||||
}
|
||||
|
||||
if (!$user)
|
||||
{
|
||||
$user = new User();
|
||||
$user->email = $user_email;
|
||||
$user->is_admin = 0;
|
||||
$user->is_allowed = 0;
|
||||
if ($user->email == "ek@krug.dk" || $user->email == "shyotl@gmail.com")
|
||||
{
|
||||
$user->is_allowed = 1;
|
||||
}
|
||||
$user->login = $user_identity;
|
||||
if (!$user->save())
|
||||
{
|
||||
|
||||
@@ -131,7 +131,7 @@ $(function() {
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Minidump</th>
|
||||
<td><a href="download.php/replex<?php echo (int)$report->id ?>.dmp?report_id=<?php echo (int)$report->id ?>">Download</a></td>
|
||||
<td><a href="download.php?report_id=<?php echo (int)$report->id ?>">Download</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ if (PHP_SAPI != "cli")
|
||||
header("Content-Type: text/plain");
|
||||
}
|
||||
|
||||
if (!$remote_map = json_decode(file_get_contents("http://files.streamgrid.net/replex/builds_map.php"))) return;
|
||||
if (!$remote_map = json_decode(file_get_contents("http://alpha.singularityviewer.org/alpha/builds_map.php"))) return;
|
||||
|
||||
$existing = CrashReport::getBuildsMap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user