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

Etiketler: sayfalar katogori açmada hata alıyorum

Author Message

3nokta5

Bilgili Üye


Online status

325 posts
http://www.youporn.com
Pagerank: 5

Location: Turkey
Occupation:
Age: 117

#30019   2008-06-15 19:59 GMT      

arkadaşlar böyle bir hata alıyorum yeni sayfa katagori oluşturmaya çalışınca
acaba neden ve öçözümü nedir şimdiden teşekkürler yardımlarınz için orjinal dosyayı da attım düzelmedi yine aynı hata var
Code:
Fatal error: Call to undefined function sed_structure_newcat() in /home/alsancak/domains/al-sancak.net/public_html/system/core/admin/admin.page.structure.inc.php on line 168

Kaan

Moderators


Online status

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

Location: Turkey
Occupation: Destek
Age: 25

#30020   2008-06-16 00:28 GMT      
function sed_structure_newcat böyle bir fonksiyon yok diyor system/core/admin/admin.page.structure.inc.php arat o fonsiyonu oyle bir fonksiyon yok ise orjinali ile degiştir

3nokta5

Bilgili Üye


Online status

325 posts
http://www.youporn.com
Pagerank: 5

Location: Turkey
Occupation:
Age: 117

#30027   2008-06-16 13:19 GMT      

içinde kodlar var baktım yukarda yazdım gibi orjinalinide attım yine hata veriyor
Code:
elseif ($a=='add')
{
$g = array ('ncode','npath', 'ntitle', 'ndesc', 'nicon', 'ngroup');
foreach($g as $k => $x) $$x = $_POST[$x];
$group = (isset($group)) ? 1 : 0;
sed_structure_newcat($ncode, $npath, $ntitle, $ndesc, $nicon, $ngroup);
header("Location: admin.php?m=page&s=structure");
exit;
}

bbuda tamamı
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=admin.structure.inc.php
Version=120
Updated=2007-mar-03
Type=Core.admin
Author=Neocrome
Description=Administration panel
[END_SED]
==================== */

if ( !defined('SED_CODE') || !defined('SED_ADMIN') ) { die('Wrong URL.'); }

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('admin', 'a');
sed_block($usr['isadmin']);

$id = sed_import('id','G','INT');
$c = sed_import('c','G','TXT');

$adminpath[] = array ("admin.php?m=page", $L['Pages']);
$adminpath[] = array ("admin.php?m=page&amp;s=structure", $L['Structure']);
$adminhelp = $L['adm_help_structure'];

if ($n=='options')
{
if ($a=='update')
{
$rpath = sed_import('rpath','P','TXT');
$rtitle = sed_import('rtitle','P','TXT');
$rtplmode = sed_import('rtplmode','P','INT');
$rdesc = sed_import('rdesc','P','TXT');
$ricon = sed_import('ricon','P','TXT');
$rgroup = sed_import('rgroup','P','BOL');
$rgroup = ($rgroup) ? 1 : 0;

if ($rtplmode==1)
{ $rtpl = ''; }
elseif ($rtplmode==3)
{ $rtpl = 'same_as_parent'; }
else
{ $rtpl = sed_import('rtplforced','P','ALP'); }

$sql = sed_sql_query("UPDATE $db_structure SET
structure_path='".sed_sql_prep($rpath)."',
structure_tpl='".sed_sql_prep($rtpl)."',
structure_title='".sed_sql_prep($rtitle)."',
structure_desc='".sed_sql_prep($rdesc)."',
structure_icon='".sed_sql_prep($ricon)."',
structure_group='".$rgroup."'
WHERE structure_id='".$id."'");

sed_cache_clear('sed_cat');
header("Location: admin.php?m=page&s=structure");
exit;
}

$sql = sed_sql_query("SELECT * FROM $db_structure WHERE structure_id='$id' LIMIT 1");
sed_die(sed_sql_numrows($sql)==0);

$handle=opendir("skins/".$cfg['defaultskin']."/");
$allskinfiles = array();

while ($f = readdir($handle))
{
if (($f != ".") && ($f != "..") && strtolower(substr($f, strrpos($f, '.')+1, 4))=='tpl')
{
$allskinfiles[] = $f;
}
}
closedir($handle);

$allskinfiles = implode (',', $allskinfiles);

$row = sed_sql_fetcharray($sql);

$structure_id = $row['structure_id'];
$structure_code = $row['structure_code'];
$structure_path = $row['structure_path'];
$structure_title = $row['structure_title'];
$structure_desc = $row['structure_desc'];
$structure_icon = $row['structure_icon'];
$structure_group = $row['structure_group'];

if (empty($row['structure_tpl']))
{

$check1 = " checked=\"checked\"";
}
elseif ($row['structure_tpl']=='same_as_parent')
{
$structure_tpl_sym = "*";
$check3 = " checked=\"checked\"";
}
else
{
$structure_tpl_sym = "+";
$check2 = " checked=\"checked\"";
}

$adminpath[] = array ("admin.php?m=page&amp;s=structure&amp;n=options&amp;id=".$id, sed_cc($structure_title));

$adminmain .= "<form id=\"savestructure\" action=\"admin.php?m=page&amp;s=structure&amp;n=options&amp;a=update&amp;id=".$structure_id."\" method=\"post\">";
$adminmain .= "<table class=\"cells\">";
$adminmain .= "<tr><td>".$L['Code']." :</td>";
$adminmain .= "<td>".$structure_code."</td></tr>";
$adminmain .= "<tr><td>".$L['Path']." :</td>";
$adminmain .= "<td><input type=\"text\" class=\"text\" name=\"rpath\" value=\"".$structure_path."\" size=\"16\" maxlength=\"16\" /></td></tr>";
$adminmain .= "<tr><td>".$L['Title']." :</td>";
$adminmain .= "<td><input type=\"text\" class=\"text\" name=\"rtitle\" value=\"".$structure_title."\" size=\"64\" maxlength=\"32\" /></td></tr>";
$adminmain .= "<tr><td>".$L['Description']." :</td>";
$adminmain .= "<td><input type=\"text\" class=\"text\" name=\"rdesc\" value=\"".$structure_desc."\" size=\"64\" maxlength=\"255\" /></td></tr>";
$adminmain .= "<tr><td>".$L['Icon']." :</td>";
$adminmain .= "<td><input type=\"text\" class=\"text\" name=\"ricon\" value=\"".$structure_icon."\" size=\"64\" maxlength=\"128\" /></td></tr>";
$checked = $structure_pages ? "checked=\"checked\"" : '';
$checked = $structure_group ? "checked=\"checked\"" : '';
$adminmain .= "<tr><td>".$L['Group']." :</td>";
$adminmain .= "<td><input type=\"checkbox\" class=\"checkbox\" name=\"rgroup\" $checked /></td></tr>";
$adminmain .= "<tr><td>".$L['adm_tpl_mode']." :</td><td>";
$adminmain .= "<input type=\"radio\" class=\"radio\" name=\"rtplmode\" value=\"1\" $check1 /> ".$L['adm_tpl_empty']."<br/>";
$adminmain .= "<input type=\"radio\" class=\"radio\" name=\"rtplmode\" value=\"2\" $check2 /> ".$L['adm_tpl_forced'];
$adminmain .=  " <select name=\"rtplforced\" size=\"1\">";

foreach($sed_cat as $i => $x)
{
if ($i!='all')
{
$selected = ($i==$row['structure_tpl']) ? "selected=\"selected\"" : '';
$adminmain .= "<option value=\"".$i."\" $selected> ".$x['tpath']."</option>";
}
}
$adminmain .= "</select><br/>";
$adminmain .= "<input type=\"radio\" class=\"radio\" name=\"rtplmode\" value=\"3\" $check3 /> ".$L['adm_tpl_parent'];
$adminmain .= "</td></tr>";
$adminmain .= "<tr><td colspan=\"2\"><input type=\"submit\" class=\"submit\" value=\"".$L['Update']."\" /></td></tr>";
$adminmain .= "</table></form>";
}
else
{
if ($a=='update')
{
$s = sed_import('s', 'P', 'ARR');

foreach($s as $i => $k)
{
$s[$i]['rgroup'] = (isset($s[$i]['rgroup'])) ? 1 : 0;

$sql1 = sed_sql_query("UPDATE $db_structure SET
structure_path='".sed_sql_prep($s[$i]['rpath'])."',
structure_title='".sed_sql_prep($s[$i]['rtitle'])."',
structure_group='".$s[$i]['rgroup']."'
WHERE structure_id='".$i."'");
}
sed_auth_clear('all');
sed_cache_clear('sed_cat');
header("Location: admin.php?m=page&s=structure");
exit;
}
elseif ($a=='add')
{
$g = array ('ncode','npath', 'ntitle', 'ndesc', 'nicon', 'ngroup');
foreach($g as $k => $x) $$x = $_POST[$x];
$group = (isset($group)) ? 1 : 0;
sed_structure_newcat($ncode, $npath, $ntitle, $ndesc, $nicon, $ngroup);
header("Location: admin.php?m=page&s=structure");
exit;
}
elseif ($a=='delete')
{
sed_check_xg();
sed_structure_delcat($id, $c);
header("Location: admin.php?m=page&s=structure");
exit;
}

$sql = sed_sql_query("SELECT DISTINCT(page_cat), COUNT(*) FROM $db_pages WHERE 1 GROUP BY page_cat");

while ($row = sed_sql_fetcharray($sql))
{ $pagecount[$row['page_cat']] = $row['COUNT(*)']; }

$sql = sed_sql_query("SELECT * FROM $db_structure ORDER by structure_path ASC, structure_code ASC");

$adminmain .= "<h4>".$L['editdeleteentries']." :</h4>";
$adminmain .= "<form id=\"savestructure\" action=\"admin.php?m=page&amp;s=structure&amp;a=update\" method=\"post\">";
$adminmain .= "<table class=\"cells\">";
$adminmain .= "<tr><td class=\"coltop\">".$L['Delete']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Code']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Path']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['TPL']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Title']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Group']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Pages']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Rights']."</td>";
$adminmain .= "<td class=\"coltop\">".$L['Options']." ".$L['adm_clicktoedit']."</td>";
$adminmain .= "</tr>";

while ($row = sed_sql_fetcharray($sql))
{
$jj++;
$structure_id = $row['structure_id'];
$structure_code = $row['structure_code'];
$structure_path = $row['structure_path'];
$structure_title = $row['structure_title'];
$structure_desc = $row['structure_desc'];
$structure_icon = $row['structure_icon'];
$structure_group = $row['structure_group'];
$pathfieldlen = (strpos($structure_path, ".")==0) ? 3 : 9;
$pathfieldimg = (strpos($structure_path, ".")==0) ? '' : "<img src=\"system/img/admin/join2.gif\" alt=\"\" /> ";
$pagecount[$structure_code] = (!$pagecount[$structure_code]) ? "0" : $pagecount[$structure_code];

if (empty($row['structure_tpl']))
{ $structure_tpl_sym = "-"; }
elseif ($row['structure_tpl']=='same_as_parent')
{ $structure_tpl_sym = "*"; }
else
{ $structure_tpl_sym = "+"; }

$adminmain .= "<tr><td style=\"text-align:center;\">";
$adminmain .= ($pagecount[$structure_code]>0) ? '' : "[<a href=\"admin.php?m=page&amp;s=structure&amp;a=delete&amp;id=".$structure_id."&amp;c=".$row['structure_code']."&amp;".sed_xg()."\">x</a>]";
$adminmain .= "</td>";
$adminmain .= "<td>".$structure_code."</td>";
$adminmain .= "<td>$pathfieldimg<input type=\"text\" class=\"text\" name=\"s[$structure_id][rpath]\" value=\"".$structure_path."\" size=\"$pathfieldlen\" maxlength=\"24\" /></td>";

$adminmain .= "<td style=\"text-align:center;\">".$structure_tpl_sym."</td>";

$adminmain .= "<td><input type=\"text\" class=\"text\" name=\"s[$structure_id][rtitle]\" value=\"".$structure_title."\" size=\"24\" maxlength=\"32\" /></td>";
$checked = $structure_group ? "checked=\"checked\"" : '';
$adminmain .= "<td style=\"text-align:center;\"><input type=\"checkbox\" class=\"checkbox\" name=\"s[$structure_id][rgroup]\" $checked /></td>";
$adminmain .= "<td style=\"text-align:right;\">".$pagecount[$structure_code]." ";
$adminmain .= "<a href=\"list.php?c=".$structure_code."\"><img src=\"system/img/admin/jumpto.gif\" alt=\"\" /></a></td>";
$adminmain .= "<td style=\"text-align:center;\"><a href=\"admin.php?m=rightsbyitem&amp;ic=page&amp;io=".$structure_code."\"><img src=\"system/img/admin/rights2.gif\" alt=\"\" /></a></td>";
$adminmain .= "<td style=\"text-align:center;\"><a href=\"admin.php?m=page&amp;s=structure&amp;n=options&amp;id=".$structure_id."&amp;".sed_xg()."\">".$L['Options']."</a></td>";
$adminmain .= "</tr>";
}

$adminmain .= "<tr><td colspan=\"9\"><input type=\"submit\" class=\"submit\" value=\"".$L['Update']."\" /></td></tr>";
$adminmain .= "</table></form>";
$adminmain .= "<h4>".$L['addnewentry']." :</h4>";
$adminmain .= "<form id=\"addstructure\" action=\"admin.php?m=page&amp;s=structure&amp;a=add\" method=\"post\">";
$adminmain .= "<table class=\"cells\">";
$adminmain .= "<tr><td style=\"width:160px;\">".$L['Code']." :</td><td><input type=\"text\" class=\"text\" name=\"ncode\" value=\"\" size=\"16\" maxlength=\"16\" /> ".$L['adm_required']."</td></tr>";
$adminmain .= "<tr><td>".$L['Path']." :</td><td><input type=\"text\" class=\"text\" name=\"npath\" value=\"\" size=\"16\" maxlength=\"16\" /> ".$L['adm_required']."</td></tr>";
$adminmain .= "<tr><td>".$L['Title']." :</td><td><input type=\"text\" class=\"text\" name=\"ntitle\" value=\"\" size=\"48\" maxlength=\"32\" /> ".$L['adm_required']."</td></tr>";
$adminmain .= "<tr><td>".$L['Description']." :</td><td><input type=\"text\" class=\"text\" name=\"ndesc\" value=\"\" size=\"48\" maxlength=\"255\" /></td></tr>";
$adminmain .= "<tr><td>".$L['Icon']." :</td><td><input type=\"text\" class=\"text\" name=\"nicon\" value=\"\" size=\"48\" maxlength=\"128\" /></td></tr>";
$adminmain .= "<tr><td>".$L['Group']." :</td><td><input type=\"checkbox\" class=\"checkbox\" name=\"ngroup\" /></td></tr>";
$adminmain .= "<tr><td colspan=\"2\"><input type=\"submit\" class=\"submit\" value=\"".$L['Add']."\" /></td></tr></table></form>";
}

?>

Kaan

Moderators


Online status

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

Location: Turkey
Occupation: Destek
Age: 25

#30028   2008-06-16 13:53 GMT      
Fonksiyon.php yi orjinaliyle degiştir dene her hengi bir sorun yok burda.
> 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]