//Include logic
include_once "logic/create-article.php";
//Include html
include_once "html/head.php";
?>

<div class="container">
	<a href=""><img src="img/title-banner.png" width="100%"></a>

	<div class="artikkel">
		<form action="" method="post" enctype="multipart/form-data">
			<div class="form-group">
				<label>Tittel:</label>
				<input type="text" placeholder="Skriv inn tittel..." value="<?php 
echo Get_Title();
?>
" class="form-control" name="title">
			</div>

			<div class="form-group">
				<label>Filer:</label>
				<input type="file" class="form-control" name="upload">
			</div>

			<div class="form-group">
				<label>Innhold:</label>
				<textarea rows="10" placeholder="Legg til innhold til artikkelen her..." class="form-control" name="content"><?php 
echo Get_Content();
?>
</textarea>
Exemple #2
0
        }
        echo "<SCRIPT LANGUAGE=\"JavaScript\">\n\t\tparent.document.getElementById('{$iframeID}').innerHTML='{$show}';\n\t\t</SCRIPT>";
    } else {
        //JS式会拖慢主页面打开速度,不推荐
        echo "document.write('{$show}');";
    }
    exit;
}
require dirname(__FILE__) . "/" . "global.php";
require_once ROOT_PATH . "inc/label_funcation.php";
$query = $db->query(" SELECT * FROM {$pre}label WHERE lid='{$id}' ");
while ($rs = $db->fetch_array($query)) {
    //读数据库的标签
    if ($rs[typesystem]) {
        $_array = unserialize($rs[code]);
        $value = $rs[type] == 'special' ? Get_sp($_array) : Get_Title($_array);
        if (strstr($value, "(/mv)")) {
            $value = get_label_mv($value);
        }
        if ($_array[c_rolltype]) {
            $value = "<marquee direction='{$_array['c_rolltype']}' scrolldelay='1' scrollamount='1' onmouseout='if(document.all!=null){this.start()}' onmouseover='if(document.all!=null){this.stop()}' height='{$_array['roll_height']}'>{$value}</marquee>";
        }
    } elseif ($rs[type] == 'code') {
        $value = stripslashes($rs[code]);
        //纠正一下不完整的javascript代码,不必做权限判断,普通用户也能删除
        if (eregi("<SCRIPT", $value) && !eregi("<\\/SCRIPT", $value)) {
            if ($delerror) {
                $db->query("UPDATE `{$pre}label` SET code='' WHERE lid='{$rs['lid']}'");
            } else {
                die("<A HREF='{$WEBURL}?&delerror=1'>此“{$rs[tag]}”标签有误,点击删除之!</A><br>{$value}");
            }