Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: leri yapma

Author Message

Sender

Bilgili Üye


Online status

336 posts

Location: Turkey
Occupation:
Age:

#4982   2007-07-23 22:14 GMT      

türkeçeleştirme yaparken id ler olmadı.id yazan yeri no yapcm ama yapamadım yardım!!


Code:
<?PHP

/* ====================
Land Down Under - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_LDU]
File=da.php
Version=802
Updated=2005-dec-12
Type=Core
Author=Neocrome
Description=Dosya Alanı
[END_LDU]

==================== */

if (!defined('LDU_CODE')) { die('Wrong URL.'); }

$id = cv('id','G','STX');
$o = cv('o','G','STX');
$f = cv('f','G','INT');
$v = cv('v','G','STX');
$c1 = cv('c1','G','STX');
$c2 = cv('c2','G','STX');
$userid = cv('userid','G','INT');
$gd_supported = array('jpg', 'jpeg', 'png', 'gif');

list($usr['isadmin'], $usr['access']) = ldu_getrights($usr['id'], $usr['level'], "pfs", "all");

if (!$usr['isadmin'] || empty($userid))
{ $userid = $usr['id']; }
else
{
$more1 = "?userid=".$userid;
$more = "&userid=".$userid;
}

reset($ldu_extensions);
foreach ($ldu_extensions as $k => $line)
{
$icon[$line[0]] = "<img src=\"system/img/pfs/".$line[2].".gif\" alt=\"".$line[1]."\" />";
$filedesc[$line[0]] = $line[1];
}

$files_count=0;
$folders_count=0;
$standalone = FALSE;

if (!empty($c1) || !empty($c2))
{
$morejavascript = "
function addthumb(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[thumb=".$cfg['th_dir']."'+gfile+']'+gfile+'[/thumb]'; }
function addpix(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[img]'+gfile+'[/img]'; }
";
$more .= "&c1=".$c1."&c2=".$c2;
$more1 .= ($more1=='') ? "?c1=".$c1."&c2=".$c2 : "&c1=".$c1."&c2=".$c2;
$standalone = TRUE;
}

ldu_minlevel(max(1, $cfg['access_pfs']));

if ($ldu_acc[$usr['level']]['pfsmaxtotal']==0 || $ldu_acc[$usr['level']]['pfsmaxfile']==0)
{
header("Location: message.php?msg=930");
exit;
}

/* === Hook === */
$extp = ldu_getextplugins('pfs.first');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/extended/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$L['pfs_title'] = ($userid=='0') ? $L['SFS'] : $L['pfs_title'];
$title = "<a href=\"da.php".$more1."\">".$L['pfs_title']."</a>";

if ($userid!=$usr['id'])
{
ldu_adminonly($usr['isadmin']);
$user_info = ldu_getuserinfo($userid);
$title .= ($userid==0) ? " (".$cfg['maintitle'].")" : " (".ldu_build_user($user_info['user_id'], $user_info['user_name']).")";
$maxfile = $ldu_acc[$user_info['user_level']]['pfsmaxfile'];
$maxtotal = $ldu_acc[$user_info['user_level']]['pfsmaxtotal'];
$maxfile = ($userid==0) ? $ldu_acc[99]['pfsmaxfile'] : $maxfile;
$maxtotal = ($userid==0) ? $ldu_acc[99]['pfsmaxtotal'] : $maxtotal;
}
else
{
$maxfile = $ldu_acc[$usr['level']]['pfsmaxfile'];
$maxtotal = $ldu_acc[$usr['level']]['pfsmaxtotal'];
}

$u_totalsize=0;
$sql = ldu_query("SELECT SUM(pfs_size) FROM $db_pfs WHERE pfs_userid='$userid' ");
$pfs_totalsize = ldu_result($sql,0,"SUM(pfs_size)");

if ($a=='yukle')
{
$folderid = cv('folderid','P','INT');
$ndesc = cv('ndesc','P','ARR');

/* === Hook === */
$extp = ldu_getextplugins('pfs.upload.first');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/extended/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

if ($folder_id!=0)
{
$sql = ldu_query("SELECT pff_id FROM $db_pfs_folders WHERE pff_userid='$userid' AND pff_id='$folderid' ");
ldu_dieifzero(ldu_num_rows($sql));
}

$disp_errors = "<ul>";

for ($ii = 0; $ii < $cfg['pfsmaxuploads']; $ii++)
{
$u_tmp_name = $_FILES['userfile']['tmp_name'][$ii];
$u_type = $_FILES['userfile']['type'][$ii];
$u_name = $_FILES['userfile']['name'][$ii];
$u_size = $_FILES['userfile']['size'][$ii];
$u_name  = str_replace("\'",'',$u_name );
$u_name  = trim(str_replace("\"",'',$u_name ));

if (!empty($u_name))
{
$disp_errors .= "<li>".$u_name." : ";
$f_extension_ok = 0;
$desc = ldu_addslashes($ndesc[$ii]);
$u_name = strtolower($u_name);
$u_newname = $userid."-".$u_name;
$u_sqlname = ldu_addslashes($u_newname);
$dotpos = strrpos($u_name,".")+1;
$f_extension = substr($u_name, $dotpos, 5);
$f_extension_ok = 0;

if ($f_extension!='php' && $f_extension!='php3' && $f_extension!='php4')
{
foreach ($ldu_extensions as $k => $line)
{
if (strtolower($f_extension) == $line[0])
{ $f_extension_ok = 1; }
}
}

if (is_uploaded_file($u_tmp_name) && $u_size>0 && $u_size<($maxfile*1024) && $f_extension_ok && ($pfs_totalsize+$u_size)<$maxtotal*1024   )
{
if (!file_exists($cfg['pfs_dir'].$u_newname))
{
move_uploaded_file($u_tmp_name, $cfg['pfs_dir'].$u_newname);
@chmod($cfg['pfs_dir'].$u_newname, 0766);

/* === Hook === */
$extp = ldu_getextplugins('pfs.upload.moved');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/extended/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$u_size = filesize($cfg['pfs_dir'].$u_newname);
$sql = ldu_query("INSERT INTO $db_pfs (pfs_userid, pfs_date, pfs_file, pfs_extension, pfs_folderid, pfs_desc, pfs_size, pfs_count) VALUES ('$userid', '".$sys['now']."', '$u_sqlname', '$f_extension', '$folderid', '$desc', '$u_size', '0') ");
$sql = ldu_query("UPDATE $db_pfs_folders SET pff_updated='".$sys['now']."' WHERE pff_id='$folderid' " );
$disp_errors .= $L['Yes'];
$pfs_totalsize += $u_size;

/* === Hook === */
$extp = ldu_getextplugins('pfs.upload.done');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/extended/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

if (in_array($f_extension, $gd_supported) && $cfg['th_amode']!='Disabled' && file_exists($cfg['pfs_dir'].$u_newname))
{
@unlink($cfg['th_dir'].$u_newname);
$th_colortext = array(hexdec(substr($cfg['th_colortext'],0,2)), hexdec(substr($cfg['th_colortext'],2,2)), hexdec(substr($cfg['th_colortext'],4,2)));
$th_colorbg = array(hexdec(substr($cfg['th_colorbg'],0,2)), hexdec(substr($cfg['th_colorbg'],2,2)), hexdec(substr($cfg['th_colorbg'],4,2)));
ldu_createthumb($cfg['pfs_dir'].$u_newname, $cfg['th_dir'].$u_newname, $cfg['th_x'],$cfg['th_y'], $cfg['th_keepratio'], $f_extension, $u_newname, floor($u_size/1024), $th_colortext, $cfg['th_textsize'], $th_colorbg, $cfg['th_border'], $cfg['th_jpeg_quality']);
}
}
else
{
$disp_errors .= $L['pfs_fileexists'];
}
}
else
{
$disp_errors .= $L['pfs_filetoobigorext'];
}
$disp_errors .= "</li>";
}
}
$disp_errors .= "</ul>";
}
elseif ($a=='sil')
{
ldu_check_xg();
$sql = ldu_query("SELECT pfs_file, pfs_folderid FROM $db_pfs WHERE pfs_userid='$userid' AND pfs_id='$id' LIMIT 1");

if ($row = ldu_fetch_array($sql))
{
$pfs_file = $row['pfs_file'];
$f = $row['pfs_folderid'];
$ff = $cfg['pfs_dir'].$pfs_file;

if (file_exists($ff) && (substr($pfs_file,0,strpos($pfs_file,"-"))==$userid || $usr['isadmin']))
{
unlink($ff);
if (file_exists($cfg['th_dir'].$pfs_file))
{ unlink($cfg['th_dir'].$pfs_file); }
$sql = ldu_query("DELETE FROM $db_pfs WHERE pfs_id='$id' ");
header("Location: da.php?f=$f".$more."&o=".$o);
exit;
}
}
else
{ ldu_die(); }
}

elseif ($a=='yenidizin')

{
$g = array ('ntitle','ndesc', 'nminlevel', 'nispublic', 'nisgallery');
foreach($g as $k => $x) $$x = $_POST[$x];

$sql = ldu_query("INSERT INTO $db_pfs_folders (pff_userid, pff_title, pff_date, pff_updated, pff_desc, pff_ispublic, pff_isgallery, pff_minlevel, pff_count) VALUES ('$userid', '$ntitle', '".$sys['now']."', '".$sys['now']."', '$ndesc', '$nispublic ', '$nisgallery', '$nminlevel', '0') ");
header("Location: da.php".$more1);
exit;
}

elseif ($a=='klasorsil')
{
ldu_check_xg();
$sql = ldu_query("DELETE FROM $db_pfs_folders WHERE pff_userid='$userid' AND pff_id='$f' ");
$sql = ldu_query("UPDATE $db_pfs SET pfs_folderid=0 WHERE pfs_userid='$userid' AND pfs_folderid='$f' ");
header("Location: da.php".$more1);
exit;
}

$f = (empty($f)) ? '0' : $f;

if ($f>0)
{
$sql1 = ldu_query("SELECT * FROM $db_pfs_folders WHERE pff_id='$f' AND pff_userid='$userid'");
if ($row1 = ldu_fetch_array($sql1))
{
$pff_id = $row1['pff_id'];
$pff_title = stripslashes($row1['pff_title']);
$pff_updated = $row1['pff_updated'];
$pff_desc = stripslashes($row1['pff_desc']);
$pff_ispublic = $row1['pff_ispublic'];
$pff_isgallery = $row1['pff_isgallery'];
$pff_minlevel = $row1['pff_minlevel'];
$pff_count = $row1['pff_count'];

$sql = ldu_query("SELECT * FROM $db_pfs WHERE pfs_userid='$userid' AND pfs_folderid='$f' ORDER BY pfs_file ASC");
$title .= " ".$cfg['separator']." <a href=\"da.php?f=".$pff_id.$more."\">".$pff_title."</a>";
}
else
{ ldu_die(); }
$movebox = ldu_selectboxfolders($userid,"",$f);
}
else
{
$sql = ldu_query("SELECT * FROM $db_pfs WHERE pfs_userid='$userid' AND pfs_folderid=0 ORDER BY pfs_file ASC");
$sql1 = ldu_query("SELECT * FROM $db_pfs_folders WHERE pff_userid='$userid' ORDER BY pff_isgallery ASC, pff_title ASC");
$sql2 = ldu_query("SELECT COUNT(*) FROM $db_pfs WHERE pfs_folderid>0 AND pfs_userid='$userid'");
$sql3 = ldu_mysql_query("SELECT pfs_folderid, COUNT(*), SUM(pfs_size) FROM $db_pfs WHERE pfs_userid='$userid' GROUP BY pfs_folderid");

while ($row3 = ldu_fetch_array($sql3))
{
$pff_filescount[$row3['pfs_folderid']] = $row3['COUNT(*)'];
$pff_filessize[$row3['pfs_folderid']] = $row3['SUM(pfs_size)'];
}

$folders_count = ldu_num_rows($sql1);
$subfiles_count = ldu_result($sql2,0,"COUNT(*)");
$movebox = ldu_selectboxfolders($userid,"/","");

while ($row1 = ldu_fetch_array($sql1))
{
$pff_id = $row1['pff_id'];
$pff_title = stripslashes($row1['pff_title']);
$pff_updated = $row1['pff_updated'];
$pff_desc = stripslashes($row1['pff_desc']);
$pff_ispublic = $row1['pff_ispublic'];
$pff_isgallery = $row1['pff_isgallery'];
$pff_minlevel = $row1['pff_minlevel'];
$pff_count = $row1['pff_count'];
$pff_fcount = $pff_filescount[$pff_id];
$pff_fsize = floor($pff_filessize[$pff_id]/1024);
$pff_fcount = (empty($pff_fcount)) ? "0" : $pff_fcount;
$pff_fssize = (empty($pff_fsize)) ? "0" : $pff_fsize;

$list_folders .= "<tr><td>[<a href=\"da.php?a=klasorsil&amp;".ldu_xg()."&amp;f=".$pff_id.$more."\">x</a>]</td>";
$list_folders .= "<td><a href=\"da.php?m=klasorduzenle&amp;f=".$pff_id.$more."\">".$L['Edit']."</a></td>";

if ($pff_isgallery)
{ $icon_f = "<img src=\"skins/$skin/img/system/icon-gallery.gif\" alt=\"\" />"; }
else
{ $icon_f = "<img src=\"skins/$skin/img/system/icon-folder.gif\" alt=\"\" />"; }

$list_folders .= "<td><a href=\"da.php?f=".$pff_id.$more."\">".$icon_f."</a></td>";
$list_folders .= "<td><a href=\"da.php?f=".$pff_id.$more."\">".$pff_title."</a></td>";
$list_folders .= "<td style=\"text-align:right;\">".$pff_fcount."</td>";
$list_folders .= "<td style=\"text-align:right;\">".$pff_fsize." ".$L['kb']."</td>";
$list_folders .= "<td style=\"text-align:center;\">".date($cfg['dateformat'], $row1['pff_updated'] + $usr['timezone'] * 3600)."</td>";
$list_folders .= "<td style=\"text-align:center;\">".$ldu_yesno[$pff_ispublic]."</td>";
$list_folders .= "<td style=\"text-align:center;\">".$pff_minlevel."</td>";
$list_folders .= "<td>".ldu_cutstring($pff_desc,32)."</td></tr>";
}
}

$files_count = ldu_num_rows($sql);
$movebox = (empty($f)) ? ldu_selectboxfolders($userid,"/","") : ldu_selectboxfolders($userid,"$f","");
$th_colortext = array(hexdec(substr($cfg['th_colortext'],0,2)), hexdec(substr($cfg['th_colortext'],2,2)), hexdec(substr($cfg['th_colortext'],4,2)));
$th_colorbg = array(hexdec(substr($cfg['th_colorbg'],0,2)), hexdec(substr($cfg['th_colorbg'],2,2)), hexdec(substr($cfg['th_colorbg'],4,2)));

while ($row = ldu_fetch_array($sql))
{
$pfs_id = $row['pfs_id'];
$pfs_file = $row['pfs_file'];
$pfs_date = $row['pfs_date'];
$pfs_extension = $row['pfs_extension'];
$pfs_desc = stripslashes($row['pfs_desc']);
$pfs_fullfile = $cfg['pfs_dir'].$pfs_file;
$pfs_filesize = floor($row['pfs_size']/1024);
$pfs_icon = $icon[$pfs_extension];

$dotpos = strrpos($pfs_file, ".")+1;
$pfs_realext = strtolower(substr($pfs_file, $dotpos, 5));
$add_thumbnail = "&nbsp;";
$add_image = "&nbsp;";
$add_file = ($standalone) ? "<a href=\"javascript:addfile('".$pfs_file."','".$c1."','".$c2."')\"><img src=\"skins/".$skin."/img/system/icon-pastefile.gif\" alt=\"\" /></a>" : '';

if ($pfs_extension!=$pfs_realext);
{
$sql1 = ldu_query("UPDATE $db_pfs SET pfs_extension='$pfs_realext' WHERE pfs_id='$pfs_id' " );
$pfs_extension = $pfs_realext;
}

if (in_array($pfs_extension, $gd_supported) && $cfg['th_amode']!='Disabled')
{
if (!file_exists($cfg['th_dir'].$pfs_file) && file_exists($cfg['pfs_dir'].$pfs_file))
{
$th_colortext = array(hexdec(substr($cfg['th_colortext'],0,2)), hexdec(substr($cfg['th_colortext'],2,2)), hexdec(substr($cfg['th_colortext'],4,2)));
$th_colorbg = array(hexdec(substr($cfg['th_colorbg'],0,2)), hexdec(substr($cfg['th_colorbg'],2,2)), hexdec(substr($cfg['th_colorbg'],4,2)));
ldu_createthumb($cfg['pfs_dir'].$pfs_file, $cfg['th_dir'].$pfs_file, $cfg['th_x'],$cfg['th_y'], $cfg['th_keepratio'], $pfs_extension, $pfs_file, $pfs_filesize, $th_colortext, $cfg['th_textsize'], $th_colorbg, $cfg['th_border'], $cfg['th_jpeg_quality']);
}

   if ($standalone)
{
$add_thumbnail .= "<a href=\"javascript:addthumb('".$pfs_file."','".$c1."','".$c2."')\"><img src=\"skins/".$skin."/img/system/icon-pastethumb.gif\" alt=\"\" /></a>";
$add_image = "<a href=\"javascript:addpix('".$cfg['pfs_dir'].$pfs_file."','".$c1."','".$c2."')\"><img src=\"skins/".$skin."/img/system/icon-pasteimage.gif\" alt=\"\" /></a>";
}
if ($o=='onizleme')
{ $pfs_icon = "<a href=\"".$pfs_fullfile."\"><img src=\"".$cfg['th_dir'].$pfs_file."\" alt=\"".$pfs_file."\"></a>"; }
}

$list_files .= "<tr><td>[<a href=\"da.php?a=sil&amp;".ldu_xg()."&amp;id=".$pfs_id.$more."&amp;o=".$o."\">x</a>]</td>";
$list_files .= "<td><a href=\"da.php?m=duzenle&amp;id=".$pfs_id.$more."\">".$L['Edit']."</a></td>";
$list_files .= "<td>".$pfs_icon."</td>";
$list_files .= "<td><a href=\"".$pfs_fullfile."\">".$pfs_file."</a></td>";
$list_files .= "<td>".date($cfg['dateformat'], $pfs_date + $usr['timezone'] * 3600)."</td>";
$list_files .= "<td style=\"text-align:right;\">".$pfs_filesize.$L['kb']."</td>";
$list_files .= "<td style=\"text-align:right;\">".$row['pfs_count']."</td>";
$list_files .= "<td>".$filedesc[$pfs_extension]." / ".$pfs_desc."</td>";
$list_files .= "<td>".$add_thumbnail.$add_image.$add_file."</td></tr>";
$pfs_foldersize = $pfs_foldersize + $pfs_filesize;
}

if ($files_count>0 || $folders_count>0)
{
if ($folders_count>0)
{
$disp_main .= "<h4>".$folders_count." ".$L['Folders']." / ".$subfiles_count." ".$L['Files']." :</h4>";
$disp_main .= "<table class=\"cells\">";
$disp_main .= "<tr><td><i>".$L['sil']."</i></td>";
$disp_main .= "<td><i>".$L['Edit']."</i></td>";
$disp_main .= "<td colspan=\"2\" style=\"text-align:center;\"><i>".$L['Folder']."/".$L['Gallery']."</i></td>";
$disp_main .= "<td><i>".$L['Files']."</i></td>";
$disp_main .= "<td><i>".$L['Size']."</i></td>";
$disp_main .= "<td><i>".$L['Updated']."</i></td>";
$disp_main .= "<td><i>".$L['Public']."</i></td>";
$disp_main .= "<td><i>".$L['Minlevel']."</i></td>";
$disp_main .= "<td><i>".$L['Description']."</i></td></tr>";
$disp_main .= $list_folders."</table>";
}

if ($files_count>0)
{

$disp_main .= "<h4>".$files_count." ";

if ($f>0)
{ $disp_main .= $L['pfs_filesinthisfolder']; }
else
{ $disp_main .= $L['pfs_filesintheroot']; }

$disp_main .= "</h4><table class=\"cells\">";

$disp_main .= "<tr><td><i>".$L['sil']."</i></td>";
$disp_main .= "<td><i>".$L['Edit']."</i></td>";
$disp_main .= "<td colspan=\"2\" style=\"text-align:center;\"><i>".$L['File']."</i></td>";
$disp_main .= "<td style=\"text-align:center;\"><i>".$L['Date']."</i></td>";
$disp_main .= "<td style=\"text-align:right;\"><i>".$L['Size']."</i></td>";
$disp_main .= "<td style=\"text-align:right;\"><i>".$L['Hits']."</i></td>";
$disp_main .= "<td><i>".$L['Description']."</i></td>";
$disp_main .= "<td>&nbsp;</td></tr>";
$disp_main .= $list_files."</table>";
}
}
else
{
$disp_main = $L['pfs_folderistempty'];
}

// ========== Statistics =========

$pfs_precentbar = @floor(100 * $pfs_totalsize / 1024 / $maxtotal);
$disp_stats = $L['pfs_totalsize']." : ".floor($pfs_totalsize/1024).$L['kb']." / ".$maxtotal.$L['kb'];
$disp_stats .= " (".@floor(100*$pfs_totalsize/1024/$maxtotal)."%) ";
$disp_stats .= " &nbsp; ".$L['pfs_maxsize']." : ".$maxfile.$L['kb'];
$disp_stats .= ($o!='thumbs' && $files_count>0 && $cfg['th_amode']!='Disabled') ? " &nbsp; <a href=\"da.php?f=".$f.$more."&amp;o=onizleme\">".$L['Thumbnails']."</a>" : '';
$disp_stats .= "<div style=\"width:200px; margin-top:0;\"><div class=\"bar_back\">";
$disp_stats .= "<div class=\"bar_front\" style=\"width:".$pfs_precentbar."%;\"></div></div></div>";


// ========== Upload =========

$disp_upload = "<h4>".$L['pfs_newfile']."</h4>";
$disp_upload .= "<form enctype=\"multipart/form-data\" action=\"da.php?a=yukle".$more."\" method=\"post\">";
$disp_upload .= "<table class=\"cells\"><tr><td colspan=\"3\">";
$disp_upload .= "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"".($maxfile*1024)."\" />";
$disp_upload .= $L['Folder']." : ".ldu_selectboxfolders($userid,"",$f)."</td></tr>";
$disp_upload .= "<tr><td>&nbsp;</td><td><i>".$L['Description']."</i></td>";
$disp_upload .= "<td style=\"width:100%;\"><i>".$L['File']."</i></td></tr>";

for ($ii = 0; $ii < $cfg['pfsmaxuploads']; $ii++)
{
$disp_upload .= "<tr><td style=\"text-align:center;\">#".($ii+1)."</td>";
$disp_upload .= "<td><input type=\"text\" class=\"text\" name=\"ndesc[$ii]\" value=\"\" size=\"40\" maxlength=\"255\" /></td>";
$disp_upload .= "<td><input name=\"userfile[$ii]\" type=\"file\" class=\"file\" size=\"24\" /></td></tr>";
}
$disp_upload .= "<tr><td colspan=\"3\" style=\"text-align:center;\">";
$disp_upload .= "<input type=\"submit\" class=\"submit\" value=\"".$L['Upload']."\" /></td></tr></table></form>";

// ========== Allowed =========

$disp_allowed = "<h4>".$L['pfs_extallowed']." :</h4><table class=\"cells\">";
reset($ldu_extensions);
sort($ldu_extensions);
foreach ($ldu_extensions as $k => $line)
{
$disp_allowed .= "<tr><td style=\"width:24px; text-align:center;\">".$icon[$line[0]]."</td>";
$disp_allowed .= "<td style=\"width:80px;\">".$line[0]."</td><td>".$filedesc[$line[0]]."</td></tr>";
}
$disp_allowed .= "</table>";

// ========== Create a new folder =========

if ($f==0)
{
$disp_newfolder = "<h4>".$L['pfs_newfolder']."</h4>";
$disp_newfolder .= "<form id=\"newfolder\" action=\"da.php?a=dizin".$more."\" method=\"post\">";
$disp_newfolder .= "<table class=\"cells\"><tr><td>".$L['Title']."</td>";
$disp_newfolder .= "<td><input type=\"text\" class=\"text\" name=\"ntitle\" value=\"\" size=\"32\" maxlength=\"64\" /></td></tr>";
$disp_newfolder .= "<tr><td>".$L['Description']."</td>";
$disp_newfolder .= "<td><input type=\"text\" class=\"text\" name=\"ndesc\" value=\"\" size=\"32\" maxlength=\"255\" /></td></tr>";
$disp_newfolder .= "<tr><td>".$L['Minlevel']."</td>";
$disp_newfolder .= "<td>".ldu_selectboxlevels(0, 94, 0, 'nminlevel')."</td></tr>";
$disp_newfolder .= "<tr><td>".$L['pfs_ispublic']."</td>";
$disp_newfolder .= "<td><input type=\"radio\" class=\"radio\" name=\"nispublic\" value=\"1\" />".$L['Yes']." <input type=\"radio\" class=\"radio\" name=\"nispublic\" value=\"0\" checked=\"checked\" />".$L['No']."</td></tr>";
$disp_newfolder .= "<tr><td>".$L['pfs_isgallery']."</td>";
$disp_newfolder .= "<td><input type=\"radio\" class=\"radio\" name=\"nisgallery\" value=\"1\" />".$L['Yes']." <input type=\"radio\" class=\"radio\" name=\"nisgallery\" value=\"0\" checked=\"checked\" />".$L['No']."</td></tr>";
$disp_newfolder .= "<tr><td colspan=\"2\" style=\"text-align:center;\">";
$disp_newfolder .= "<input type=\"submit\" class=\"submit\" value=\"".$L['Create']."\" /></td></tr>";
$disp_newfolder .= "</table></form>";
}

// ========== Putting all together =========

$body = "<p>".$disp_stats."</p>";
$body .= (!empty($disp_errors)) ? "<p>".$disp_errors."</p>" : '';
$body .= "<p>".$disp_main."</p>";
$body .= "<p>".$disp_upload."</p>";
$body .= "<p>".$disp_newfolder."</p>";
$body .= "<p>".$disp_allowed."</p>";

$out['subtitle'] = $L['Mypfs'];


/* ============= */

if ($standalone)
{
$pfs_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".ldu_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=512,top=16'); }
function addthumb(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[thumb=".$cfg['th_dir']."'+gfile+']'+gfile+'[/thumb]'; }
function addpix(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[img]'+gfile+'[/img]'; }
function addfile(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[pfs]'+gfile+'[/pfs]'; }
function addglink(id,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[gallery='+id+']".$L["pfs_gallery"]." #'+id+'[/gallery]'; }
function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=576,top=64'); }
function picture(url,sx,sy)
{ window.open('da.php?m=view&id='+url,'Picture','toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width='+sx+',height='+sy+',left=0,top=0'); }
function ratings(rcode)
{ window.open('ratings.php?id='+rcode,'Ratings','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16'); }
//-->
</script>
";

$pfs_header2 = "</head><body>";
$pfs_footer = "</body></html>";

$t = new XTemplate("skins/".$skin."/pfs.tpl");

$t->assign(array(
"PFS_STANDALONE_HEADER1" => $pfs_header1,
"PFS_STANDALONE_HEADER2" => $pfs_header2,
"PFS_STANDALONE_FOOTER" => $pfs_footer,
));

$t->parse("MAIN.STANDALONE_HEADER");
$t->parse("MAIN.STANDALONE_FOOTER");

$t-> assign(array(
"PFS_TITLE" => $title,
"PFS_BODY" => $body
));

$t->parse("MAIN");
$t->out("MAIN");
}
else
{
require("system/header.php");

$t = new XTemplate("skins/".$skin."/pfs.tpl");

$t-> assign(array(
"PFS_TITLE" => $title,
"PFS_BODY" => $body
));

$t->parse("MAIN");
$t->out("MAIN");

require("system/footer.php");
}



?>

Kaan

Moderators


Online status

2,187 posts
http://www.ntka.org
Pagerank: 2

Location: Turkey
Occupation: Destek
Age: 26

#4987   2007-07-23 23:41 GMT      
Ldu yu tamamen türkçe yapıcaksın.? yoksa eklentiyimi.?

Sender

Bilgili Üye


Online status

336 posts

Location: Turkey
Occupation:
Age:

#4999   2007-07-24 09:26 GMT      

lduyu
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[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] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279] [280] [281] [282] [283] [284] [285] [286] [287] [288] [289] [290] [291] [292] [293] [294] [295] [296] [297] [298] [299] [300] [301] [302] [303] [304] [305] [306] [307] [308] [309] [310]