File: managetags.php

package info (click to toggle)
collabtive 2.0%2Bdfsg-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,708 kB
  • ctags: 27,425
  • sloc: php: 100,872; sh: 72; makefile: 50
file content (31 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
require("./init.php");
$tagobj = new tags();
$pro = new project();

$action = getArrayVal($_GET, "action");
$mid = getArrayVal($_GET, "mid");
$tag = getArrayVal($_GET, "tag");
$tag = urldecode($tag);
$id = getArrayVal($_GET, "id");

$mode = getArrayVal($_GET, "mode");
$template->assign("mode", $mode);

$start = getArrayVal($_GET, "start");
$end = getArrayVal($_GET, "end");

if ($action == "gettag")
{
    $content = $tagobj->getTagContent($tag, $id);

    $num = count($content);

    $thetag = strip_tags($tag);

    $template->assign("thetag", $thetag);
    $template->assign("num", $num);
    $template->assign("title", $thetag);
    $template->assign("result", $content);
    $template->display("tag.tpl");
}