Skip to content

Commit 2048785

Browse files
committed
All the other stuff
1 parent d0a0f6c commit 2048785

24 files changed

+299
-0
lines changed

Diff for: .gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Vi
2+
*~
3+
*.swp
4+
*.swo
5+
6+
# Vagrant
7+
Vagrantfile
8+
.vagrant
9+
10+
# SMBWebClient
11+
smbwebclient-config.php

Diff for: README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## SMBWebClient
2+
3+
[`smbwebclient.php`](http://sourceforge.net/projects/smbwebclient/) is a simple
4+
PHP script that allows users to access Windows networks from a Web browser
5+
(using Samba tools).
6+
7+
This is an adaptation for a responsive layout using [Foundation](http://foundation.zurb.com/). This is how it looks like:
8+
9+
![Screenshot](https://raw.github.com/vmassuchetto/smbwebclient/master/style/screenshot.jpg)
10+
11+
## Installation and Configuration
12+
13+
Make sure you have `smbclient` installed in your server, like in Debian/Ubuntu:
14+
15+
sudo apt-get install smbwebclient
16+
17+
Clone the project to an available web directory:
18+
19+
git clone https://github.com/vmassuchetto/smbwebclient.git smbwebclient
20+
21+
Create the file `smbwebclient-config.php` with your settings using the
22+
`smbwebclient-config-sample.php`. Refer to the line 53 in `smbwebclient.php`
23+
for the available options.
24+
25+
cp smbwebclient-config-sample.php smbwebclient.php

Diff for: data/languages.csv

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
af;af|afrikaans
2+
ar;ar([-_][[:alpha:]]{2})?|arabic
3+
az;az|azerbaijani
4+
bg;bg|bulgarian
5+
bs;bs|bosnian
6+
ca;ca|catalan
7+
cs;cs|czech
8+
da;da|danish
9+
de;de([-_][[:alpha:]]{2})?|german
10+
el;el|greek
11+
en;en([-_][[:alpha:]]{2})?|english
12+
eo;eo|esperanto
13+
es;es([-_][[:alpha:]]{2})?|spanish
14+
et;et|estonian
15+
eu;eu|basque
16+
fa;fa|persian
17+
fi;fi|finnish
18+
fr;fr([-_][[:alpha:]]{2})?|french
19+
gl;gl|galician
20+
he;he|hebrew
21+
hi;hi|hindi
22+
hr;hr|croatian
23+
hu;hu|hungarian
24+
id;id|indonesian
25+
it;it|italian
26+
ja;ja|japanese
27+
ko;ko|korean
28+
ka;ka|georgian
29+
lt;lt|lithuanian
30+
lv;lv|latvian
31+
ms;ms|malay
32+
nl;nl([-_][[:alpha:]]{2})?|dutch
33+
no;no|norwegian
34+
pl;pl|polish
35+
pt-br;pt[-_]br|brazilian portuguese
36+
pt;pt([-_][[:alpha:]]{2})?|portuguese
37+
ro;ro|romanian
38+
ru;ru|russian
39+
sk;sk|slovak
40+
sl;sl|slovenian
41+
sq;sq|albanian
42+
sr;sr|serbian
43+
sv;sv|swedish
44+
th;th|thai
45+
tr;tr|turkish
46+
uk;uk|ukrainian
47+
zh-tw;zh[-_]tw|chinese traditional
48+
zh;zh|chinese simplified

Diff for: data/mime.types

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
mdb application/msaccess
2+
doc application/msword
3+
dot application/msword
4+
bin application/octet-stream
5+
pdf application/pdf
6+
pgp application/pgp-signature
7+
ps application/postscript
8+
rtf text/rtf
9+
xls application/vnd.ms-excel
10+
ppt application/vnd.ms-powerpoint
11+
pps application/vnd.ms-powerpoint
12+
pot application/vnd.ms-powerpoint
13+
zip application/zip
14+
deb application/x-debian-package
15+
dvi application/x-dvi
16+
gtar application/x-gtar
17+
tgz application/x-gtar
18+
taz application/x-gtar
19+
ica application/x-ica
20+
js application/x-javascript
21+
lha application/x-lha
22+
lzh application/x-lzh
23+
lzx application/x-lzx
24+
com application/x-msdos-program
25+
exe application/x-msdos-program
26+
bat application/x-msdos-program
27+
dll application/x-msdos-program
28+
msi application/x-msi
29+
pac application/x-ns-proxy-autoconfig
30+
ogg application/x-ogg
31+
swf application/x-shockwave-flash
32+
swfl application/x-shockwave-flash
33+
tar application/x-tar
34+
tex text/x-tex
35+
man application/x-troff-man
36+
crt application/x-x509-ca-cert
37+
au audio/basic
38+
snd audio/basic
39+
mid audio/midi
40+
midi audio/midi
41+
kar audio/midi
42+
mpga audio/mpeg
43+
mpega audio/mpeg
44+
mp2 audio/mpeg
45+
mp3 audio/mpeg
46+
m3u audio/x-mpegurl
47+
ra audio/x-realaudio
48+
rm audio/x-pn-realaudio
49+
ram audio/x-pn-realaudio
50+
pls audio/x-scpls
51+
wav audio/x-wav
52+
bmp image/x-ms-bmp
53+
gif image/gif
54+
ico image/ico
55+
ief image/ief
56+
jpeg image/jpeg
57+
jpg image/jpeg
58+
jpe image/jpeg
59+
pcx image/pcx
60+
png image/png
61+
svg image/svg+xml
62+
svgz image/svg+xml
63+
tiff image/tiff
64+
tif image/tiff
65+
wbmp image/vnd.wap.wbmp
66+
ras image/x-cmu-raster
67+
jng image/x-jng
68+
pnm image/x-portable-anymap
69+
pbm image/x-portable-bitmap
70+
pgm image/x-portable-graymap
71+
ppm image/x-portable-pixmap
72+
xbm image/x-xbitmap
73+
xpm image/x-xpixmap
74+
xwd image/x-xwindowdump
75+
wrl x-world/x-vrml
76+
vrml x-world/x-vrml
77+
csv text/comma-separated-values
78+
css text/css
79+
htm text/html
80+
html text/html
81+
xhtml text/html
82+
asc text/plain
83+
txt text/plain
84+
text text/plain
85+
diff text/plain
86+
rtx text/richtext
87+
tsv text/tab-separated-values
88+
wml text/vnd.wap.wml
89+
wmls text/vnd.wap.wmlscript
90+
xml text/xml
91+
xsl text/xml
92+
fli video/fli
93+
gl video/gl
94+
mpeg video/mpeg
95+
mpg video/mpeg
96+
mpe video/mpeg
97+
qt video/quicktime
98+
mov video/quicktime
99+
asf video/x-ms-asf
100+
asx video/x-ms-asf
101+
avi video/x-msvideo
102+
ice x-conference/x-cooltalk
103+
vrm x-world/x-vrml

Diff for: index.php

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
$SMBWEBCLIENT_CLASS = 'smbwebclient_config';
3+
include 'smbwebclient.php';
4+
include 'smbwebclient-config.php';
5+
$swc = new smbwebclient_config;
6+
$swc->Run();
7+
#include 'smbwebclient-dev.php';

Diff for: smbwebclient-config-sample.php

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
class smbwebclient_config extends smbwebclient {
4+
5+
// These are necessary for the responsive design to work
6+
7+
var $cfgInlineFiles = false;
8+
function Input ($name, $value = '', $type = 'text', $extra = '') {
9+
return "<input class=\"button tiny bottom0\" type=\"{$type}\" name=\"{$name}\" value=\"".htmlentities($value, ENT_COMPAT, $this->cfgDefaultCharset)."\" {$extra}/>";
10+
}
11+
12+
// Put your configuration variables here
13+
// Refer to the line 53 in smbwebclient.php for the available options
14+
15+
// Examples for the most common options:
16+
17+
// Server root
18+
// var $cfgSambaRoot = 'NETWORK/SERVER';
19+
20+
// Allow anonymous login
21+
// var $cfgAnonymous = false;
22+
23+
// Default language
24+
// var $cfgDefaultLanguage = 'en';
25+
26+
// Default server
27+
// var $cfgDefaultServer = 'localhost';
28+
29+
}

Diff for: smbwebclient-dev.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
// Additional scripts to help development
3+
4+
// Dump inline files
5+
6+
foreach ($swc->inlineFiles as $file => $contents) {
7+
$f = fopen($file, 'wb');
8+
fwrite($f, base64_decode($contents));
9+
fclose($f);
10+
}

Diff for: style/custom.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
body { margin-top:1em; }
2+
table thead tr th,
3+
table thead tr td,
4+
table tfoot tr th,
5+
table tfoot tr td,
6+
table tr th,
7+
table tr td {
8+
padding: 0.2625rem 0.625rem;
9+
}
10+
input[type="file"],
11+
input[type="checkbox"],
12+
input[type="radio"],
13+
select {
14+
margin: 0;
15+
}
16+
select {
17+
width: 200px;
18+
}
19+
.bottom0 {
20+
margin-bottom: 0 !important;
21+
}

Diff for: style/disk.png

275 Bytes
Loading

Diff for: style/dotdot.png

194 Bytes
Loading

Diff for: style/down.png

194 Bytes
Loading

Diff for: style/favicon.ico

104 KB
Binary file not shown.

Diff for: style/file.png

277 Bytes
Loading

Diff for: style/folder.png

209 Bytes
Loading

Diff for: style/foundation.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: style/logout.png

339 Bytes
Loading

Diff for: style/page.thtml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE html
3+
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
4+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
5+
<html xmlns="http://www.w3.org/1999/xhtml">
6+
<head>
7+
<title>{title}</title>
8+
<meta http-equiv="content-type" content="text/html; charset={charset}" />
9+
<link rel="icon" href="{favicon}" type="image/ico" />
10+
<link rel="shortcut icon" href="{favicon}" />
11+
<link rel="stylesheet" href="style/foundation.min.css" />
12+
<link rel="stylesheet" href="style/custom.css" />
13+
</head>
14+
<body>
15+
16+
<div class="row">
17+
<div class="columns large-12">
18+
{content}
19+
</div>
20+
</div>
21+
22+
</body>
23+
</html>

Diff for: style/printer.png

358 Bytes
Loading

Diff for: style/rename.png

451 Bytes
Loading

Diff for: style/screenshot.jpg

21.9 KB
Loading

Diff for: style/server.png

387 Bytes
Loading

Diff for: style/up.png

191 Bytes
Loading

Diff for: style/view.thtml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script language="JavaScript">
2+
function sel_all(master_select) {
3+
with (document.d_form) {
4+
for (i=0; i<elements.length; i++) {
5+
ele = elements[i];
6+
if (ele.type=="checkbox")
7+
ele.checked = master_select.checked;
8+
}
9+
}
10+
}
11+
</script>
12+
13+
<form enctype="multipart/form-data" action="{action}" method="post" name="d_form">
14+
<table cellpadding="0" cellspacing="0" border="0">
15+
<thead><tr>
16+
<th class="checkbox"><input type="checkbox" name="chkall" onclick="javascript:sel_all(this)" /></th>
17+
{header}
18+
</thead>
19+
{lines}
20+
</table>
21+
</form>

Diff for: style/workgroup.png

3.06 KB
Loading

0 commit comments

Comments
 (0)