50 |
global ${"ed_clear_".$i}, ${"ed_clr_".$i}; |
global ${"ed_clear_".$i}, ${"ed_clr_".$i}; |
51 |
${"clear_".$i} = ${"ed_clear_".$i}; |
${"clear_".$i} = ${"ed_clear_".$i}; |
52 |
${"clr_".$i} = ${"ed_clr_".$i}; |
${"clr_".$i} = ${"ed_clr_".$i}; |
53 |
|
global ${"ed_fclear_".$i}, ${"ed_fclr_".$i}; |
54 |
|
${"fclear_".$i} = ${"ed_fclear_".$i}; |
55 |
|
${"fclr_".$i} = ${"ed_fclr_".$i}; |
56 |
global ${"ed_textpic_url_".$i}, ${"ed_textpic_url2_".$i}, ${"ed_textpic_name_".$i}; |
global ${"ed_textpic_url_".$i}, ${"ed_textpic_url2_".$i}, ${"ed_textpic_name_".$i}; |
57 |
${"textpic_url_".$i} = ${"ed_textpic_url_".$i}; |
${"textpic_url_".$i} = ${"ed_textpic_url_".$i}; |
58 |
${"textpic_url2_".$i} = ${"ed_textpic_url2_".$i}; |
${"textpic_url2_".$i} = ${"ed_textpic_url2_".$i}; |
59 |
${"textpic_name_".$i} = urldecode(${"ed_textpic_name_".$i}); |
${"textpic_name_".$i} = urldecode(${"ed_textpic_name_".$i}); |
60 |
# Fix for M$IE |
# Fix for M$IE |
61 |
if (${"textpic_url_".$i} == "none") ${"textpic_url_".$i} = ""; |
if (${"textpic_url_".$i} == "none") ${"textpic_url_".$i} = ""; |
62 |
|
global ${"ed_textpic_full_".$i}, ${"ed_textpic_full2_".$i}, ${"ed_textpic_fname_".$i}; |
63 |
|
${"textpic_full_".$i} = ${"ed_textpic_full_".$i}; |
64 |
|
${"textpic_full2_".$i} = ${"ed_textpic_full2_".$i}; |
65 |
|
${"textpic_fname_".$i} = urldecode(${"ed_textpic_fname_".$i}); |
66 |
|
# Fix for M$IE |
67 |
|
if (${"textpic_full_".$i} == "none") ${"textpic_full_".$i} = ""; |
68 |
$i++; |
$i++; |
69 |
} |
} |
70 |
// ----- |
// ----- |
126 |
} |
} |
127 |
global $ed_title, $ed_lead, $ed_titlepic_alt, |
global $ed_title, $ed_lead, $ed_titlepic_alt, |
128 |
$ed_titlepic_pos, $ed_more, $ed_more_title, |
$ed_titlepic_pos, $ed_more, $ed_more_title, |
129 |
$ed_cat, $ed_author_alt, $ed_author_info; |
$ed_cat, $ed_author_alt, $ed_author_info, |
130 |
|
$ed_author_ime, $ed_prikazi; |
131 |
$ed_title = MyQuote($ed_title); |
$ed_title = MyQuote($ed_title); |
132 |
$ed_lead = MyQuote($ed_lead); |
$ed_lead = MyQuote($ed_lead); |
133 |
$ed_author_nm = urldecode(MyQuote(basename($author_name))); |
$ed_author_nm = urldecode(MyQuote(basename($author_name))); |
134 |
$ed_author_alt = MyQuote($ed_author_alt); |
$ed_author_alt = MyQuote($ed_author_alt); |
135 |
|
$ed_author_ime = MyQuote($ed_author_ime); |
136 |
$ed_author_info = MyQuote($ed_author_info); |
$ed_author_info = MyQuote($ed_author_info); |
137 |
$ed_titlepic_nm = urldecode(MyQuote(basename($titlepic_name))); |
$ed_titlepic_nm = urldecode(MyQuote(basename($titlepic_name))); |
138 |
$ed_titlepic_alt = MyQuote($ed_titlepic_alt); |
$ed_titlepic_alt = MyQuote($ed_titlepic_alt); |
140 |
$ed_more_title = MyQuote($ed_more_title); |
$ed_more_title = MyQuote($ed_more_title); |
141 |
if (!$ed_titlepic_pos) $ed_titlepic_pos = 0; |
if (!$ed_titlepic_pos) $ed_titlepic_pos = 0; |
142 |
if ($ed_id > 0) { |
if ($ed_id > 0) { |
143 |
$sql = "UPDATE news SET category = '$ed_cat', title = $ed_title, lead = $ed_lead, title_pic = $ed_titlepic_nm, title_alt = $ed_titlepic_alt, title_pos = $ed_titlepic_pos, author_pic = $ed_author_nm, author_alt = $ed_author_alt, author_info = $ed_author_info, url = $ed_more, url_title = $ed_more_title, plivamed = ".($isMed?"true":"false").", ord = 0, d_change = NOW() WHERE (news_id = $ed_id)"; |
$sql = "UPDATE news SET category = '$ed_cat', title = $ed_title, lead = $ed_lead, title_pic = $ed_titlepic_nm, title_alt = $ed_titlepic_alt, title_pos = $ed_titlepic_pos, author_pic = $ed_author_nm, author_alt = $ed_author_alt, author_info = $ed_author_info, author_name = $ed_author_ime, url = $ed_more, url_title = $ed_more_title, plivamed = ".($isMed?"true":"false").", prikazi = ".($ed_prikazi?"true":"false").", ord = 0, d_change = NOW() WHERE (news_id = $ed_id)"; |
144 |
sql($sql); |
sql($sql); |
145 |
$dbh->dbh_do($sql); |
$dbh->dbh_do($sql); |
146 |
} else { |
} else { |
147 |
$sql = "INSERT INTO news (category, title, lead, title_pic, title_alt, title_pos, author_pic, author_alt, author_info, url, url_title, plivamed, d_orig, d_change) VALUES ('$ed_cat', $ed_title, $ed_lead, $ed_titlepic_nm, $ed_titlepic_alt, $ed_titlepic_pos, $ed_author_nm, $ed_author_alt, $ed_author_info, $ed_more, $ed_more_title, ".($isMed?"true":"false").", NOW(), NOW())"; |
$sql = "INSERT INTO news (category, title, lead, title_pic, title_alt, title_pos, author_pic, author_alt, author_info, author_name, url, url_title, plivamed, prikazi, d_orig, d_change) VALUES ('$ed_cat', $ed_title, $ed_lead, $ed_titlepic_nm, $ed_titlepic_alt, $ed_titlepic_pos, $ed_author_nm, $ed_author_alt, $ed_author_info, $ed_author_ime, $ed_more, $ed_more_title, ".($isMed?"true":"false").", ".($ed_prikazi?"true":"false").", NOW(), NOW())"; |
148 |
sql($sql); |
sql($sql); |
149 |
$dbh->dbh_do($sql); |
$dbh->dbh_do($sql); |
150 |
$sql = "SELECT news_id FROM news WHERE (title = $ed_title)"; |
$sql = "SELECT currval('news_news_id_seq')::text"; |
151 |
sql($sql); |
sql($sql); |
152 |
$sth = $dbh->prepare($sql); |
$sth = $dbh->prepare($sql); |
153 |
if (!$sth) error("Cannot prepare query: \"$sql\""); |
if (!$sth) error("Cannot prepare query: \"$sql\""); |
170 |
${"ed_textpic_alt_".$i}, ${"ed_textpic_pos_".$i}, |
${"ed_textpic_alt_".$i}, ${"ed_textpic_pos_".$i}, |
171 |
${"ed_text_level_".$i}, ${"ed_hl_".$i}, |
${"ed_text_level_".$i}, ${"ed_hl_".$i}, |
172 |
${"ed_textpic_exp_".$i}; |
${"ed_textpic_exp_".$i}; |
173 |
list($id, $tit, $txt, $pic, $orig, $alt, $pos, $del, $lev, $hl, $exp) = array( |
list($id, $tit, $txt, $pic, $full, $orig, $alt, $pos, $del, $lev, $hl, $exp) = array( |
174 |
${"ed_text_id_".$i}, ${"ed_text_title_".$i}, |
${"ed_text_id_".$i}, ${"ed_text_title_".$i}, |
175 |
${"ed_text_".$i}, ${"textpic_url2_".$i}, ${"textpic_name_".$i}, |
${"ed_text_".$i}, ${"textpic_url2_".$i}, ${"textpic_full2_".$i}, |
176 |
${"ed_textpic_alt_".$i}, ${"ed_textpic_pos_".$i}, |
${"textpic_name_".$i}, ${"ed_textpic_alt_".$i}, |
177 |
${"del_".$i}, ${"ed_text_level_".$i}, ${"ed_hl_".$i}, |
${"ed_textpic_pos_".$i}, ${"del_".$i}, ${"ed_text_level_".$i}, |
178 |
${"ed_textpic_exp_".$i}); |
${"ed_hl_".$i}, ${"ed_textpic_exp_".$i}); |
179 |
if ($lev != $last_level) { |
if ($lev != $last_level) { |
180 |
if ($last_level) { |
if ($last_level) { |
181 |
if ($last_level < $lev) array_push($parents, $id); |
if ($last_level < $lev) array_push($parents, $id); |
258 |
while (isset(${"ed_textpic_id_".$i})) { |
while (isset(${"ed_textpic_id_".$i})) { |
259 |
$tmp = ${"textpic_url2_".$i}; |
$tmp = ${"textpic_url2_".$i}; |
260 |
if (ereg("$phptmp", $tmp)) MyDelete($syspicdir."/".$tmp); |
if (ereg("$phptmp", $tmp)) MyDelete($syspicdir."/".$tmp); |
261 |
|
$tmp = ${"textpic_full2_".$i}; |
262 |
|
if (ereg("$phptmp", $tmp)) MyDelete($syspicdir."/".$tmp); |
263 |
$i++; |
$i++; |
264 |
} |
} |
265 |
} |
} |
302 |
$u = ${"textpic_url2_".$n}; |
$u = ${"textpic_url2_".$n}; |
303 |
if (ereg("$phptmp", $u)) MyDelete($syspicdir."/".$u2); |
if (ereg("$phptmp", $u)) MyDelete($syspicdir."/".$u2); |
304 |
unset(${"clear_".$n}, ${"clr_".$n}); |
unset(${"clear_".$n}, ${"clr_".$n}); |
305 |
|
} else if (ereg("^ed_textpic_full_([1-9][0-9]*)$", $key, $regs)) { |
306 |
|
move_uploaded_file($tname, $syspicdir."/".$nm.$ext); |
307 |
|
$n = $regs[1]; |
308 |
|
${"textpic_full_".$n} = $nm.$ext; |
309 |
|
${"textpic_fname_".$n} = $name; |
310 |
|
$u = ${"textpic_full2_".$n}; |
311 |
|
if (ereg("$phptmp", $u)) MyDelete($syspicdir."/".$u2); |
312 |
|
unset(${"fclear_".$n}, ${"fclr_".$n}); |
313 |
} else { |
} else { |
314 |
// [?!?] |
// ?!? |
315 |
} |
} |
316 |
} |
} |
317 |
// ----- |
// ----- |
318 |
$tp = new Smarty(); |
$tp = new Smarty(); |
|
// ----- |
|
319 |
$tp->assign("levels", $levels); |
$tp->assign("levels", $levels); |
320 |
// ----- |
// ----- |
321 |
global $ed_id, $ed_title, $ed_lead, $ed_titlepic_pos, |
global $ed_id, $ed_title, $ed_lead, $ed_titlepic_pos, |
322 |
$ed_titlepic_alt, $ed_cat, $ed_more, |
$ed_titlepic_alt, $ed_cat, $ed_more, |
323 |
$ed_more_title, $ed_author_url, $ed_author_alt, |
$ed_more_title, $ed_author_url, $ed_author_alt, |
324 |
$ed_author_info; |
$ed_author_info, $ed_author_ime, $ed_prikazi; |
325 |
global $ed_edit, $ed_preview, $preview, $add; |
global $ed_edit, $ed_preview, $preview, $add; |
326 |
if (!$ed_preview) $ed_preview = ($preview ? true : false); |
if (!$ed_preview) $ed_preview = ($preview ? true : false); |
327 |
if ($ed_edit) $ed_preview = false; |
if ($ed_edit) $ed_preview = false; |
352 |
global $ed_title, $ed_lead, $ed_titlepic_pos, |
global $ed_title, $ed_lead, $ed_titlepic_pos, |
353 |
$ed_titlepic_alt, $ed_cat, $ed_more, |
$ed_titlepic_alt, $ed_cat, $ed_more, |
354 |
$ed_more_title, $ed_author_url, |
$ed_more_title, $ed_author_url, |
355 |
$ed_author_alt, $ed_author_info; |
$ed_author_alt, $ed_author_info, |
356 |
|
$ed_author_ime, $ed_prikazi; |
357 |
if (!$HTTP_POST_FILES["ed_titlepic_url"]["name"]) $titlepic_url = ""; |
if (!$HTTP_POST_FILES["ed_titlepic_url"]["name"]) $titlepic_url = ""; |
358 |
if (!$titlepic_url) $titlepic_url = $titlepic_url2; |
if (!$titlepic_url) $titlepic_url = $titlepic_url2; |
359 |
if (!$titlepic_url && !($clear_main || $clr_main)) $titlepic_url = $art["pic_url"]; |
if (!$titlepic_url && !($clear_main || $clr_main)) $titlepic_url = $art["pic_url"]; |
372 |
$pic_url = ($HTTP_POST_FILES["ed_textpic_url_".$i]["name"]) ? |
$pic_url = ($HTTP_POST_FILES["ed_textpic_url_".$i]["name"]) ? |
373 |
${"textpic_url_".$i} : ""; |
${"textpic_url_".$i} : ""; |
374 |
if (!$pic_url) $pic_url = ${"textpic_url2_".$i}; |
if (!$pic_url) $pic_url = ${"textpic_url2_".$i}; |
375 |
|
$full_url = ($HTTP_POST_FILES["ed_textpic_full_".$i]["name"]) ? |
376 |
|
${"textpic_full_".$i} : ""; |
377 |
|
if (!$full_url) $full_url = ${"textpic_full2_".$i}; |
378 |
$tmp = ""; |
$tmp = ""; |
379 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
380 |
if ($art["text"][$j]["id"] == $id) $tmp = $art["text"][$j]["pic"]; |
if ($art["text"][$j]["id"] == $id) $tmp = $art["text"][$j]["pic"]; |
381 |
if (!$pic_url && $tmp && !(${"clear_".$i} || ${"clr_".$i})) $pic_url = $tmp; |
if (!$pic_url && $tmp && !(${"clear_".$i} || ${"clr_".$i})) $pic_url = $tmp; |
382 |
|
$tmp = ""; |
383 |
|
for ($j = 0; $j < count($art["text"]); $j++) |
384 |
|
if ($art["text"][$j]["id"] == $id) $tmp = $art["text"][$j]["full"]; |
385 |
|
if (!$full_url && $tmp && !(${"fclear_".$i} || ${"fclr_".$i})) $full_url = $tmp; |
386 |
$level = ${"ed_text_level_".$i}; |
$level = ${"ed_text_level_".$i}; |
387 |
list($w, $h) = PicSize($pic_url); |
list($w, $h) = PicSize($pic_url); |
388 |
|
list($w2, $h2) = PicSize($full_url); |
389 |
array_push($ed_pgfs, array($id, |
array_push($ed_pgfs, array($id, |
390 |
${"ed_text_".$i}, ${"ed_text_title_".$i}, |
${"ed_text_".$i}, ${"ed_text_title_".$i}, |
391 |
$level, $pic_url, ${"textpic_name_".$i}, |
$level, $pic_url, ${"textpic_name_".$i}, |
392 |
|
$full_url, ${"textpic_fname_".$i}, |
393 |
${"ed_textpic_alt_".$i}, ${"ed_textpic_pos_".$i}, |
${"ed_textpic_alt_".$i}, ${"ed_textpic_pos_".$i}, |
394 |
$w, $h, ${"ed_hl_".$i}, ${"ed_textpic_exp_".$i}, false)); |
$w, $h, $w2, $h2, ${"ed_hl_".$i}, ${"ed_textpic_exp_".$i}, false)); |
395 |
$i++; |
$i++; |
396 |
} |
} |
397 |
} else { |
} else { |
410 |
if (!$sth->execute()) error("Cannot execute query: \"$sql\""); |
if (!$sth->execute()) error("Cannot execute query: \"$sql\""); |
411 |
while ($row = $sth->fetchrow_array()) $ncats[$row[0]] = true; |
while ($row = $sth->fetchrow_array()) $ncats[$row[0]] = true; |
412 |
$sth->finish(); |
$sth->finish(); |
413 |
} |
} else $art["show"] = true; |
414 |
list($ed_title, $ed_lead, $ed_titlepic_pos, $titlepic_url, |
list($ed_title, $ed_lead, $ed_titlepic_pos, $titlepic_url, |
415 |
$titlepic_url2, $titlepic_name, $ed_titlepic_alt, |
$titlepic_url2, $titlepic_name, $ed_titlepic_alt, |
416 |
$ed_cat, $ed_more, $ed_more_title, $width, $height, |
$ed_cat, $ed_more, $ed_more_title, $width, $height, |
417 |
$author_url, $author_url2, $author_name, |
$author_url, $author_url2, $author_name, |
418 |
$ed_author_alt, $ed_author_info, $width2, $height2) = |
$ed_author_alt, $ed_author_info, $width2, $height2, |
419 |
array($art["title"], $art["lead"], $art["pic_pos"], |
$ed_author_ime, $ed_prikazi) = array($art["title"], $art["lead"], |
420 |
$art["pic_url"], $art["pic_url"], urldecode($art["pic_url"]), |
$art["pic_pos"], $art["pic_url"], $art["pic_url"], |
421 |
$art["pic_alt"], $art["category"], $art["more"], |
urldecode($art["pic_url"]), $art["pic_alt"], $art["category"], |
422 |
$art["more_title"], $art["pic_w"], $art["pic_h"], |
$art["more"], $art["more_title"], $art["pic_w"], $art["pic_h"], |
423 |
$art["au_pic"], $art["au_pic"], urldecode($art["au_pic"]), |
$art["au_pic"], $art["au_pic"], urldecode($art["au_pic"]), |
424 |
$art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"]); |
$art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"], |
425 |
|
$art["au_name"], $art["show"]); |
426 |
|
if ($art["text"]) reset($art["text"]); |
427 |
while ($art["text"] && list($id, $val) = each($art["text"])) { |
while ($art["text"] && list($id, $val) = each($art["text"])) { |
428 |
array_push($ed_pgfs, array($val["id"], $val["text"], $val["title"], |
array_push($ed_pgfs, array($val["id"], $val["text"], $val["title"], |
429 |
$val["level"], urldecode($val["pic"]), |
$val["level"], urldecode($val["pic"]), |
430 |
urldecode($val["pic"]), $val["alt"], $val["pos"], $val["w"], |
urldecode($val["pic"]), urldecode($val["full"]), urldecode($val["full"]), |
431 |
$val["h"], $val["hl"], $val["exp"], false)); |
$val["alt"], $val["pos"], $val["w"], $val["h"], $val["fw"], $val["fh"], |
432 |
|
$val["hl"], $val["exp"], false)); |
433 |
} |
} |
434 |
$ed_id = $art["id"]; |
$ed_id = $art["id"]; |
435 |
if (!$ed_id) $ed_id = -1; |
if (!$ed_id) $ed_id = -1; |
446 |
if ($add) { |
if ($add) { |
447 |
global $add_num; |
global $add_num; |
448 |
for ($i = 0; $i < intval($add_num); $i++) |
for ($i = 0; $i < intval($add_num); $i++) |
449 |
array_push($ed_pgfs, array(-1, "", "", -1, "", "", "", 0, 0, 0, "", "", true)); |
array_push($ed_pgfs, array(-1, "", "", -1, "", "", "", "", "", 0, 0, 0, 0, 0, "", "", true)); |
450 |
} |
} |
451 |
$ed_empty = ($ed_title || $ed_lead || $ed_titlepic_pos || $ed_more) ? false : true; |
$ed_empty = ($ed_title || $ed_lead || $ed_titlepic_pos || $ed_more) ? false : true; |
452 |
$ed_text = array(); |
$ed_text = array(); |
454 |
$ed_warnings = ($ed_warning ? true : false); |
$ed_warnings = ($ed_warning ? true : false); |
455 |
$i = 1; |
$i = 1; |
456 |
while (list($key, $val) = each($ed_pgfs)) { |
while (list($key, $val) = each($ed_pgfs)) { |
457 |
list($id, $txt, $tit, $lev, $pic, $name, $alt, $pos, $w, $h, $hl, $exp, $new) = $val; |
list($id, $txt, $tit, $lev, $pic, $name, $fpic, $fname, $alt, $pos, $w, $h, $fw, $fh, $hl, $exp, $new) = $val; |
458 |
$del = ((${"delete_".$i} || ${"del_".$i}) ? true : false); |
$del = ((${"delete_".$i} || ${"del_".$i}) ? true : false); |
459 |
array_push($ed_records, array("val" => $del, "id" => $id)); |
array_push($ed_records, array("val" => $del, "id" => $id)); |
460 |
if ($del) { $i++; continue; } |
if ($del) { $i++; continue; } |
461 |
$picurl = ${"textpic_url_".$id}; |
$picurl = ${"textpic_url_".$id}; |
462 |
if (!$picurl) $picurl = $pic; |
if (!$picurl) $picurl = $pic; |
463 |
|
$fullurl = ${"textpic_full_".$id}; |
464 |
|
if (!$fullurl) $fullurl = $fpic; |
465 |
$class = ""; |
$class = ""; |
466 |
reset($levels); |
reset($levels); |
467 |
while (list($k, $v) = each($levels)) if ($v["id"] == $lev) $class = $v["class"]; |
while (list($k, $v) = each($levels)) if ($v["id"] == $lev) $class = $v["class"]; |
471 |
$picurl = ${"textpic_url_".$i} = ${"textpic_url2_".$i} = $name = ""; |
$picurl = ${"textpic_url_".$i} = ${"textpic_url2_".$i} = $name = ""; |
472 |
} |
} |
473 |
if (!$name) $name = $picurl; |
if (!$name) $name = $picurl; |
474 |
|
if ((${"fclear_".$i} || ${"fclr_".$i}) && $ed_preview && (${"textpic_full_".$i} != ${"textpic_full2_".$i})) { |
475 |
|
$tmp = ${"textpic_full2_".$i}; |
476 |
|
if (ereg("$phptmp", $tmp)) MyDelete($syspicdir."/".$tmp); |
477 |
|
$fullurl = ${"textpic_full_".$i} = ${"textpic_full2_".$i} = $fname = ""; |
478 |
|
} |
479 |
|
if (!$fname) $fname = $fullurl; |
480 |
$txt = MyEscape(convert_html($txt), false); |
$txt = MyEscape(convert_html($txt), false); |
481 |
$txt2 = ParseNewline($txt, true); |
$txt2 = ParseNewline($txt, true); |
482 |
$txt3 = str_replace("&", "&", $txt); |
$txt3 = str_replace("&", "&", MyEscape(convert_html($txt), true)); |
483 |
$txt3 = str_replace("\"", """, $txt3); |
$txt3 = str_replace("\"", """, $txt3); |
484 |
$txt3 = str_replace("<", "<", $txt3); |
$txt3 = str_replace("<", "<", $txt3); |
485 |
$txt3 = str_replace(">", ">", $txt3); |
$txt3 = str_replace(">", ">", $txt3); |
486 |
$hl = MyEscape(convert_html($hl), false); |
$hl = MyEscape(convert_html($hl), false); |
487 |
$hl2 = ParseNewline($hl, true); |
$hl2 = ParseNewline($hl, true); |
488 |
if ($hl2) $hl2 = GetHighlight($hl2); |
if ($hl2) $hl2 = GetHighlight($hl2); |
489 |
$hl3 = str_replace("&", "&", $hl); |
$hl3 = str_replace("&", "&", MyEscape(convert_html($hl), true)); |
490 |
$hl3 = str_replace("\"", """, $hl3); |
$hl3 = str_replace("\"", """, $hl3); |
491 |
$hl3 = str_replace("<", "<", $hl3); |
$hl3 = str_replace("<", "<", $hl3); |
492 |
$hl3 = str_replace(">", ">", $hl3); |
$hl3 = str_replace(">", ">", $hl3); |
512 |
"class" => MyEscape(convert_html($class)), |
"class" => MyEscape(convert_html($class)), |
513 |
"url" => MyEscape(convert_html($picurl)), |
"url" => MyEscape(convert_html($picurl)), |
514 |
"name" => MyEscape(convert_html($name)), |
"name" => MyEscape(convert_html($name)), |
515 |
|
"full" => MyEscape(convert_html($fullurl)), |
516 |
|
"fname" => MyEscape(convert_html($fname)), |
517 |
"alt" => MyEscape(convert_html($alt)), |
"alt" => MyEscape(convert_html($alt)), |
518 |
"w" => $w, |
"w" => $w, |
519 |
"h" => $h, |
"h" => $h, |
520 |
|
"fw" => $fw, |
521 |
|
"fh" => $fh, |
522 |
"pos" => $pos, |
"pos" => $pos, |
523 |
"exp" => MyEscape(convert_html($exp)), |
"exp" => MyEscape(convert_html($exp)), |
524 |
"warning" => $warning, |
"warning" => $warning, |
525 |
"clr" => (${"clear_".$i} || ${"clr_".$i} || !$picurl) ? true : false |
"clr" => (${"clear_".$i} || ${"clr_".$i} || !$picurl) ? true : false, |
526 |
|
"fclr" => (${"fclear_".$i} || ${"fclr_".$i} || !$fullurl) ? true : false |
527 |
)); |
)); |
528 |
$i++; |
$i++; |
529 |
} |
} |
533 |
$tp->assign("ed_preview", $ed_preview); |
$tp->assign("ed_preview", $ed_preview); |
534 |
$tp->assign("ed_trigger", $trigger); |
$tp->assign("ed_trigger", $trigger); |
535 |
$tp->assign("ed_title", MyEscape(convert_html($ed_title))); |
$tp->assign("ed_title", MyEscape(convert_html($ed_title))); |
536 |
$tp->assign("ed_lead", MyEscape(convert_html($ed_lead))); |
$tp->assign("ed_lead", MyEscape(convert_html($ed_lead), true)); |
537 |
|
$tp->assign("ed_lead2", ParseNewline(MyEscape(convert_html($ed_lead), false), false)); |
538 |
$tp->assign("ed_titlepic_pos", $ed_titlepic_pos); |
$tp->assign("ed_titlepic_pos", $ed_titlepic_pos); |
539 |
$tp->assign("ed_titlepic_url", MyEscape(convert_html($titlepic_url))); |
$tp->assign("ed_titlepic_url", MyEscape(convert_html($titlepic_url))); |
540 |
$tp->assign("ed_titlepic_url2", MyEscape(convert_html($titlepic_url2))); |
$tp->assign("ed_titlepic_url2", MyEscape(convert_html($titlepic_url2))); |
547 |
$tp->assign("ed_author_name", MyEscape(convert_html($author_name))); |
$tp->assign("ed_author_name", MyEscape(convert_html($author_name))); |
548 |
$tp->assign("ed_author_alt", MyEscape(convert_html($ed_author_alt))); |
$tp->assign("ed_author_alt", MyEscape(convert_html($ed_author_alt))); |
549 |
$tp->assign("ed_author_info", MyEscape(convert_html($ed_author_info))); |
$tp->assign("ed_author_info", MyEscape(convert_html($ed_author_info))); |
550 |
|
$tp->assign("ed_author_ime", MyEscape(convert_html($ed_author_ime))); |
551 |
$tp->assign("ed_author_width", $width2); |
$tp->assign("ed_author_width", $width2); |
552 |
$tp->assign("ed_author_height", $height2); |
$tp->assign("ed_author_height", $height2); |
553 |
$tp->assign("ed_more", MyEscape($ed_more)); |
$tp->assign("ed_more", MyEscape($ed_more)); |
554 |
$tp->assign("ed_more_new", strstr($ed_more, "://") ? true : false); |
$tp->assign("ed_more_new", strstr($ed_more, "://") ? true : false); |
555 |
$tp->assign("ed_more_title", MyEscape($ed_more_title)); |
$tp->assign("ed_more_title", MyEscape($ed_more_title)); |
556 |
|
$tp->assign("ed_prikazi", $ed_prikazi); |
557 |
$tp->assign("ed_clr_main", ($clear_main || $clr_main || !$titlepic_url) ? true : false); |
$tp->assign("ed_clr_main", ($clear_main || $clr_main || !$titlepic_url) ? true : false); |
558 |
$tp->assign("ed_clr_author", ($clear_author || $clr_author || !$author_url) ? true : false); |
$tp->assign("ed_clr_author", ($clear_author || $clr_author || !$author_url) ? true : false); |
559 |
$tp->assign("ed_text", $ed_text); |
$tp->assign("ed_text", $ed_text); |
565 |
$tp->assign("aupicdir", "$aupicdir/"); |
$tp->assign("aupicdir", "$aupicdir/"); |
566 |
$tp->assign("vijest", $isVijest ? true : false); |
$tp->assign("vijest", $isVijest ? true : false); |
567 |
if ($ed_preview) { |
if ($ed_preview) { |
|
include_once("author.php"); |
|
568 |
$tp->assign("AUTHOR", GetAuthor(MyEscape(convert_html($author_url)), |
$tp->assign("AUTHOR", GetAuthor(MyEscape(convert_html($author_url)), |
569 |
MyEscape(convert_html($ed_author_alt)), |
MyEscape(convert_html($ed_author_alt)), |
570 |
MyEscape(convert_html($ed_author_info)), |
MyEscape(convert_html($ed_author_info)), |