forked from tbagriyanik/eOgr
/
data_dosyalar2.php
134 lines (125 loc) · 4.2 KB
/
data_dosyalar2.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
/*
eOgr - elearning project
Developer Site: http://yunus.sourceforge.net
Demo Site: http://yunus.sourceforge.net/eogr
Source Track: http://eogr.googlecode.com
Support: http://www.ohloh.net/p/eogr
This project is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or any later version. See the GNU
Lesser General Public License for more details.
*/
@session_start();
require("conf.php");
checkLoginLang(true,true,"data_dosyalar2.php");
if (!check_source()) die ("<font id='hata'>$metin[295]</font>");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>eOgr - File List</title>
<script language="javascript" type="text/javascript" src="lib/jquery-1.9.1.min.js"></script>
<script type="text/javascript" language="javascript" src="lib/datatables/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="lib/datatables/table.css" type="text/css" media="screen" charset="utf-8" />
<link href="theme/file.css" rel="stylesheet" type="text/css" />
<style media="all" type="text/css">
body {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:14px;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
/*
delWithCon:
onay ile silme iþlemi
*/
function delWithCon(field_value) {
if (confirm("<?php echo $metin[104]?>")==1){
location.href = eval('\"data_dosyalar2.php?id='+field_value+'&delCon=1\"');
}
return false;
}
//-->
</script>
<script type="text/javascript" charset="utf-8">
var oTable;
var giRedraw = false;
$(document).ready(function() {
$('#example').dataTable( {
"oLanguage": {
"sProcessing": "<?php echo $metin[656]?>",
"sLengthMenu": "<?php echo $metin[110]?> _MENU_",
"sZeroRecords": "<?php echo $metin[497]?>",
"sInfo": "_START_ / _END_ : _TOTAL_",
"sInfoEmpty": "",
"sInfoFiltered": "(_MAX_)",
"sInfoPostFix": "",
"sSearch": "<?php echo $metin[29]?>",
"sUrl": "",
"oPaginate": {
"sFirst": "«",
"sPrevious": "‹",
"sNext": "›",
"sLast": "»"
}
},
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "data_dosyalar.php",
"bAutoWidth": true,
"aaSorting": [[0,'desc']],
"sPaginationType": "full_numbers",
"bStateSave": true,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 4 ] }
],
"aoColumns": [
{ "sClass": "right" },
{ },
{ },
{ "sClass": "right" },
{ }
]
} );
/* Init the table */
oTable = $('#example').dataTable( );
} );
</script>
</head>
<body>
<?php
if ((isset($_GET['id'])) && ($_GET['id'] != "") && ($_GET['delCon'] == "1") &&
(getUserID2($_SESSION['usern'])==dosyaKimID($_GET['id']) or getUserType($_SESSION['usern'])=='2')) {
if(preg_match("/777/",decoct(@fileperms($_uploadFolder)))
or preg_match("/766/",decoct(@fileperms($_uploadFolder)))) {
dosyaSil(RemoveXSS($_GET['id']));
$deleteSQL = sprintf("DELETE FROM eo_files WHERE id=%s",
GetSQLValueString($_GET['id'], "int"));
mysql_select_db($_db, $yol);
$Result1 = mysql_query($deleteSQL, $yol) or die(mysql_error());
if ($Result1) echo "<font id='uyari'> $metin[501]</font>";
}
}
?>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example" align="center">
<thead>
<tr>
<th width="10%"><?php echo $metin[26]?></th>
<th width="20%"><?php echo $metin[17]?></th>
<th width="50%"><?php echo $metin[657]." (".$metin[465].", ".$metin[129].")"?></th>
<th width="5%"><?php echo $metin[466]?></th>
<th width="5%"> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5" class="dataTables_empty"><img src="img/ajax-loader.gif"></td>
</tr>
</tbody>
</table>
</body>
</html>