Permalink
Browse files

commit 104 backup tools

  • Loading branch information...
1 parent b6b3fc3 commit 20a092986ef79a6fc3d6548e698b7e9578f30d11 @phpfreak committed Dec 30, 2011
Showing with 81 additions and 15 deletions.
  1. +45 −0 tools/changes_list.php
  2. +36 −15 tools/commits.php
View
@@ -0,0 +1,45 @@
+<?php
+
+ //var_dump($_POST); die();
+
+ if(file_exists('../config/config.php')) {
+ require_once '../config/config.php';
+ } else {
+ die('Failed to include config file.');
+ } // if
+
+ $link = @mysql_connect(DB_HOST, DB_USER, DB_PASS);
+ $changes_table = DB_PREFIX . 'changes';
+
+ if($link) {
+ if(mysql_select_db(DB_NAME, $link)) {
+
+ $sql = "SELECT `change_time`, `change_type`, `change_value`, `id` FROM `$changes_table` WHERE `change_time` < '2011-11-07 14:00:00' order by `change_time` DESC limit 150";
+ $sql = "SELECT `change_time`, `change_type`, `change_value`, `id` FROM `$changes_table` tt NATURAL JOIN ( SELECT `change_value`, MAX(`change_time`) AS `change_time` FROM `$changes_table` where `change_time` > '2011-12-25 11:00:00' GROUP BY `change_value`) mostrecent order by `change_time` DESC limit 10000";
+ $result = mysql_query($sql, $link);
+ if (!$result) {
+ echo mysql_error();
+ die();
+ }
+
+ $count = 0;
+ $s = "";
+ echo "<table cellspacing=1 cellpadding=1 bgcolor=#000000>";
+ while($row=mysql_fetch_array($result)) {
+ $count++;
+ $a=$row[0]; $b=$row[1]; $c=$row[2]; $id=$row[3];
+ echo "<tr bgcolor=#ffffff><td>$count</td><td>$id</td><td>$a</td><td>$b</td><td>$c</td></tr>";
+ $s = "file $id $c\r\n" . $s;
+ }
+ echo "</table>";
+ echo "<xmp>$s</xmp>";
+
+ mysql_close($link);
+ } else {
+ mysql_close($link);
+ die('Failed to select database');
+ } // if
+ } else {
+ die('Failed to connect to database');
+ } // if
+?>
View
@@ -1,21 +1,42 @@
<?php
-echo "file 2659 /public_html/pp088/application/views/company/company_card.php
-commit 56 show description in card
-file 2660 /public_html/pp088/application/views/project/overview.php
-commit 57 fix subproject progress
-file 2661 /public_html/pp088/application/controllers/ContactsController.class.php
-commit 58 $password defined properly
-file 2662 /public_html/pp088/application/models/users/User.class.php
-commit 59 handle no active projects situation
-file 2663 /public_html/pp088/endings.php
-commit 60 utility to check files with extra space after last ?>
-file 2664 /public_html/pp088/application/permissions.php
-commit 61 handle situation when no project available
-file 2665 /public_html/pp088/application/plugins/tickets/views/add_ticket.php
-file 2666 /public_html/pp088/application/plugins/tickets/views/edit_ticket.php
-commit 62 milestone in add ticket, remove lang() in edit for now";
+
+echo "file 6786 /public_html/pp088/tools/changes_list.php
+file 6801 /public_html/pp088/tools/commits.php
+commit 104 backup tools";
+die();
+
+echo "file 6799 /public_html/pp088/application/plugins/tags/views/project_tag.php
+commit 102 tags for wiki fix url (3034)
+file 6802 /public_html/pp088/application/plugins/wiki/models/WikiPage.class.php
+file 6803 /public_html/pp088/application/plugins/wiki/models/base/BaseRevisions.class.php
+file 6807 /public_html/pp088/application/plugins/wiki/models/base/BaseWikiPage.class.php
+file 6808 /public_html/pp088/application/plugins/wiki/models/Revision.class.php
+file 6811 /public_html/pp088/public/assets/themes/marine/stylesheets/project/search_results.css
+file 6810 /public_html/pp088/application/views/project/search.php
+file 6809 /public_html/pp088/application/plugins/wiki/models/base/BaseRevision.class.php
+commit 103 search support for wiki (3034)";
+
die();
+echo "file 5236 /public_html/pp088/application/plugins/form/views/add_project_form.php
+file 5350 /public_html/pp088/application/plugins/tickets/views/add_ticket.php
+file 5477 /public_html/pp088/application/views/contacts/add_contact.php
+file 5497 /public_html/pp088/application/views/dashboard/weekly_schedule.php
+file 5562 /public_html/pp088/application/views/project/add_contact.php
+file 5580 /public_html/pp088/application/views/project_settings/permissions.php
+file 6712 /public_html/pp088/public/install/installation/templates/db/mysql/initial_data.php
+file 6730 /public_html/pp088/public/patch/086-088.txt
+commit 99 miscellaneous";
+die();
+
+echo "file 6789 /public_html/pp088/application/layouts/inlinejs.php
+file 6788 /public_html/pp088/application/functions.php
+file 6790 /public_html/pp088/application/views/administration/list_contacts.php
+file 6791 /public_html/pp088/application/views/milestone/calendar.php
+file 6792 /public_html/pp088/application/views/milestone/view_milestone.php
+file 6793 /public_html/pp088/application/plugins/tickets/views/view_tickets.php
+commit 99 fix html issues (navale)";
+
echo "file 73 /public_html/pp088/application/views/task/add_list.php
commit 17 add send notification checkbox
file 74 /public_html/pp088/application/views/comment/object_comments.php

0 comments on commit 20a0929

Please sign in to comment.