27 const NAME =
"upload_instructions";
29 public function __construct()
31 parent::__construct(self::NAME, array(
32 self::TITLE => _(
"Upload Instructions"),
33 self::MENU_LIST =>
"Upload::Instructions",
42 protected function handle(Request $request)
45 $this->renderer->clearTemplateCache();
46 $this->renderer->clearCacheFiles();
48 return $this->
render(
'upload_instructions.html.twig', $this->mergeWithDefault($vars));
51 private function asciiUnrock()
55 $V .= _(
"Select the type of upload based on where the data is located:\n");
57 $V .=
"<table border=0>\n";
59 $V .=
"<td bgcolor='white'> </td>";
60 $V .=
"<td bgcolor='blue'> </td>";
61 $V .=
"<td bgcolor='blue'> </td>";
62 $V .=
"<td bgcolor='blue'> </td>";
63 $V .=
"<td bgcolor='white'> </td>";
64 $V .=
"<td bgcolor='blue'> </td>";
65 $V .=
"<td bgcolor='blue'> </td>";
66 $V .=
"<td bgcolor='blue'> </td>";
67 $V .=
"<td bgcolor='white'> </td>";
69 $V .=
"<td bgcolor='white'> </td>";
70 $V .=
"<td bgcolor='blue'> </td>";
71 $text = _(
"Your computer");
72 $V .=
"<td bgcolor='white' align='center'><a href='${Uri}?mod=upload_file'>$text</a></td>";
73 $V .=
"<td bgcolor='blue'> </td>";
74 $V .=
"<td bgcolor='white'> → </td>";
75 $V .=
"<td bgcolor='blue'> </td>";
76 $text = _(
"FOSSology web server");
77 $V .=
"<td bgcolor='white' align='center'><a href='${Uri}?mod=upload_srv_files'>$text</a></td>";
78 $V .=
"<td bgcolor='blue'> </td>";
79 $V .=
"<td bgcolor='white'> </td>";
81 $V .=
"<td bgcolor='white'> </td>";
82 $V .=
"<td bgcolor='blue'> </td>";
83 $V .=
"<td bgcolor='blue'> </td>";
84 $V .=
"<td bgcolor='blue'> </td>";
85 $V .=
"<td bgcolor='white'> </td>";
86 $V .=
"<td bgcolor='blue'> </td>";
87 $V .=
"<td bgcolor='blue'> </td>";
88 $V .=
"<td bgcolor='blue'> </td>";
89 $V .=
"<td bgcolor='white'> </td>";
91 $V .=
"<td bgcolor='white'> </td>";
92 $V .=
"<td bgcolor='white'> </td>";
93 $V .=
"<td bgcolor='white'> </td>";
94 $V .=
"<td bgcolor='white'> </td>";
95 $V .=
"<td bgcolor='white'> </td>";
96 $V .=
"<td bgcolor='white'> </td>";
97 $V .=
"<td bgcolor='white' align='center'>↓</td>";
98 $V .=
"<td bgcolor='white'> </td>";
99 $V .=
"<td bgcolor='white'> </td>";
101 $V .=
"<td bgcolor='white'> </td>";
102 $V .=
"<td bgcolor='white'> </td>";
103 $V .=
"<td bgcolor='white'> </td>";
104 $V .=
"<td bgcolor='white'> </td>";
105 $V .=
"<td bgcolor='white'> </td>";
106 $V .=
"<td bgcolor='blue'> </td>";
107 $V .=
"<td bgcolor='blue'> </td>";
108 $V .=
"<td bgcolor='blue'> </td>";
109 $V .=
"<td bgcolor='white'> </td>";
111 $V .=
"<td bgcolor='white'> </td>";
112 $V .=
"<td bgcolor='white'> </td>";
113 $V .=
"<td bgcolor='white'> </td>";
114 $V .=
"<td bgcolor='white'> </td>";
115 $V .=
"<td bgcolor='white'> </td>";
116 $V .=
"<td bgcolor='blue'> </td>";
117 $text = _(
"Remote web or FTP server");
118 $V .=
"<td bgcolor='white' align='center'><a href='${Uri}?mod=upload_url'>$text</a></td>";
119 $V .=
"<td bgcolor='blue'> </td>";
120 $V .=
"<td bgcolor='white'> </td>";
122 $V .=
"<td bgcolor='white'> </td>";
123 $V .=
"<td bgcolor='white'> </td>";
124 $V .=
"<td bgcolor='white'> </td>";
125 $V .=
"<td bgcolor='white'> </td>";
126 $V .=
"<td bgcolor='white'> </td>";
127 $V .=
"<td bgcolor='blue'> </td>";
128 $V .=
"<td bgcolor='blue'> </td>";
129 $V .=
"<td bgcolor='blue'> </td>";
130 $V .=
"<td bgcolor='white'> </td>";
Traceback_uri()
Get the URI without query to this location.
render($templateName, $vars=null, $headers=null)
#define PERM_WRITE
Read-Write permission.