12 use Symfony\Component\HttpFoundation\Request;
16 const NAME =
"upload_instructions";
18 public function __construct()
20 parent::__construct(self::NAME, array(
21 self::TITLE => _(
"Upload Instructions"),
22 self::MENU_LIST =>
"Upload::Instructions",
31 protected function handle(Request $request)
35 return $this->
render(
'upload_instructions.html.twig', $this->mergeWithDefault($vars));
38 private function asciiUnrock()
42 $V .= _(
"Select the type of upload based on where the data is located:\n");
44 $V .=
"<table border=0>\n";
46 $V .=
"<td bgcolor='white'> </td>";
47 $V .=
"<td bgcolor='blue'> </td>";
48 $V .=
"<td bgcolor='blue'> </td>";
49 $V .=
"<td bgcolor='blue'> </td>";
50 $V .=
"<td bgcolor='white'> </td>";
51 $V .=
"<td bgcolor='blue'> </td>";
52 $V .=
"<td bgcolor='blue'> </td>";
53 $V .=
"<td bgcolor='blue'> </td>";
54 $V .=
"<td bgcolor='white'> </td>";
56 $V .=
"<td bgcolor='white'> </td>";
57 $V .=
"<td bgcolor='blue'> </td>";
58 $text = _(
"Your computer");
59 $V .=
"<td bgcolor='white' align='center'><a href='{$Uri}?mod=upload_file'>$text</a></td>";
60 $V .=
"<td bgcolor='blue'> </td>";
61 $V .=
"<td bgcolor='white'> → </td>";
62 $V .=
"<td bgcolor='blue'> </td>";
63 $text = _(
"FOSSology web server");
64 $V .=
"<td bgcolor='white' align='center'><a href='{$Uri}?mod=upload_srv_files'>$text</a></td>";
65 $V .=
"<td bgcolor='blue'> </td>";
66 $V .=
"<td bgcolor='white'> </td>";
68 $V .=
"<td bgcolor='white'> </td>";
69 $V .=
"<td bgcolor='blue'> </td>";
70 $V .=
"<td bgcolor='blue'> </td>";
71 $V .=
"<td bgcolor='blue'> </td>";
72 $V .=
"<td bgcolor='white'> </td>";
73 $V .=
"<td bgcolor='blue'> </td>";
74 $V .=
"<td bgcolor='blue'> </td>";
75 $V .=
"<td bgcolor='blue'> </td>";
76 $V .=
"<td bgcolor='white'> </td>";
78 $V .=
"<td bgcolor='white'> </td>";
79 $V .=
"<td bgcolor='white'> </td>";
80 $V .=
"<td bgcolor='white'> </td>";
81 $V .=
"<td bgcolor='white'> </td>";
82 $V .=
"<td bgcolor='white'> </td>";
83 $V .=
"<td bgcolor='white'> </td>";
84 $V .=
"<td bgcolor='white' align='center'>↓</td>";
85 $V .=
"<td bgcolor='white'> </td>";
86 $V .=
"<td bgcolor='white'> </td>";
88 $V .=
"<td bgcolor='white'> </td>";
89 $V .=
"<td bgcolor='white'> </td>";
90 $V .=
"<td bgcolor='white'> </td>";
91 $V .=
"<td bgcolor='white'> </td>";
92 $V .=
"<td bgcolor='white'> </td>";
93 $V .=
"<td bgcolor='blue'> </td>";
94 $V .=
"<td bgcolor='blue'> </td>";
95 $V .=
"<td bgcolor='blue'> </td>";
96 $V .=
"<td bgcolor='white'> </td>";
98 $V .=
"<td bgcolor='white'> </td>";
99 $V .=
"<td bgcolor='white'> </td>";
100 $V .=
"<td bgcolor='white'> </td>";
101 $V .=
"<td bgcolor='white'> </td>";
102 $V .=
"<td bgcolor='white'> </td>";
103 $V .=
"<td bgcolor='blue'> </td>";
104 $text = _(
"Remote web or FTP server");
105 $V .=
"<td bgcolor='white' align='center'><a href='{$Uri}?mod=upload_url'>$text</a></td>";
106 $V .=
"<td bgcolor='blue'> </td>";
107 $V .=
"<td bgcolor='white'> </td>";
109 $V .=
"<td bgcolor='white'> </td>";
110 $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='blue'> </td>";
115 $V .=
"<td bgcolor='blue'> </td>";
116 $V .=
"<td bgcolor='blue'> </td>";
117 $V .=
"<td bgcolor='white'> </td>";
Contains the constants and helpers for authentication of user.
render($templateName, $vars=null, $headers=null)
Traceback_uri()
Get the URI without query to this location.
#define PERM_WRITE
Read-Write permission.