Committing a cardinal sin (heh, didn't he just pass on?) index.php is BROKEN. I...
authorBen Klang <ben@alkaloid.net>
Thu, 30 Jun 2005 05:27:03 +0000 (05:27 +0000)
committerBen Klang <ben@alkaloid.net>
Thu, 30 Jun 2005 05:27:03 +0000 (05:27 +0000)
git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@36 06cd67b6-e706-0410-b29e-9de616bca6e9

index.php
shout.webprj

index 14f1cfc..02724d7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,14 +8,66 @@
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
  */
 
-define('SHOUT_BASE', dirname(__FILE__));
+@define('SHOUT_BASE', dirname(__FILE__));
 $shout_configured = (@is_readable(SHOUT_BASE . '/config/conf.php'));# &&
                      #@is_readable(SHOUT_BASE . '/config/prefs.php'));
-
 if (!$shout_configured) {
     require SHOUT_BASE . '/../lib/Test.php';
     Horde_Test::configFilesMissing('Shout', SHOUT_BASE,
                                    array('conf.php', 'prefs.php'));
 }
 
-require SHOUT_BASE . '/contexts.php';
\ No newline at end of file
+require_once SHOUT_BASE . '/lib/base.php';
+require_once SHOUT_BASE . '/lib/Shout.php';
+#require_once SHOUT_TEMPLATES . '/comment.inc';
+require_once 'Horde/Variables.php';
+require_once 'Horde/Text/Filter.php';
+
+$contexts = $shout->getContexts();
+$vars = &Variables::getDefaultVariables();
+#$ticket->setDetails($vars);
+
+$title = '[#' . $ticket->getId() . '] ' . $ticket->get('summary');
+require WHUPS_TEMPLATES . '/common-header.inc';
+require WHUPS_TEMPLATES . '/menu.inc';
+require WHUPS_TEMPLATES . '/prevnext.inc';
+
+$tabs = &Whups::getTicketTabs($vars);
+$tabs->preserve('id', $ticket->getId());
+echo $tabs->render();
+
+$form = &new TicketDetailsForm($vars);
+$form->addAttributes($whups->getAllTicketAttributesWithNames($ticket->getId()));
+
+$RENDERER = &new Horde_Form_Renderer();
+$RENDERER->beginInactive($title);
+$RENDERER->renderFormInactive($form, $vars);
+$RENDERER->end();
+
+echo '<br />';
+
+$COMMENT = &new Comment();
+$COMMENT->begin(_("History"));
+$history = Whups::permissionsFilter($whups->getHistory($ticket->getId()),
+                                    'comment', PERMS_READ);
+$chtml = array();
+foreach ($history as $comment_values) {
+    $chtml[] = $COMMENT->render(new Variables($comment_values));
+}
+if ($prefs->getValue('comment_sort_dir')) {
+    $chtml = array_reverse($chtml);
+}
+echo implode('', $chtml);
+$COMMENT->end();
+
+require $registry->get('templates', 'horde') . '/common-footer.inc';
+
+
+
+
+
+
+
+
+
+#require SHOUT_BASE . '/contexts.php';
\ No newline at end of file
index 22b596d..82bd623 100644 (file)
@@ -66,7 +66,7 @@
       <mailinglist address="" />
     </teamdata>
     <events/>
-    <item modified_time="1120084144" url="users.php" />
+    <item url="users.php" />
     <treestatus>
       <openfolder url="lib" />
       <openfolder url="lib/Driver" />