📄 admin.php
字号:
</div> <?}function thumbnails(){ if(@$_GET['act'] == 'clear'){ $opendiryg = "data/"; if ($handle = opendir($opendiryg)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && substr($file, -4) == ".jpg") { unlink($opendiryg . $file); } } closedir($handle); } ?> <div style="border:1px solid #C6C6C6; padding:10px;"> Thumbs data cleared. Please re-generate it by browse one by one of the gallery. </div> <br /> <? } ?> <b>Thumbnail Maintenance</b> <br /><br /> <fieldset> <legend><b>Clear Thumbnail Data</b></legend> <div style="padding:10px;"> This will clear all thumbnails file inside 'Data' folder. Remember, when you remove thumbnail data, the 'Latest Added Photos' won't work until you re-generate again by browse the gallery one by one. <br /><br /> <input type="button" name="remove_all_thumb_data" value="Clear Thumbnails Data" onclick="javascript:window.location='?p=thumbnails&act=clear'"> </div> </fieldset> <?}function sentinal(){}function logout(){ setcookie('ifotocp', '', time()-3600, '/', false); echo '<meta http-equiv=refresh content=0;URL=?>';}function html_interface(){ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>iFoto - My Simple Photo Gallery</title> <style type="text/css"> <!-- /* main layout styles */ html, body {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #494949; background-color:#DDDDDD; text-align:center;} #wrapper {width: 750px; border:1px solid #CCCCCC; background-color: #EEEEEE; text-align:left; padding-bottom:20px; margin:0 auto;} #nav { padding:8px; background-color:#E5E5E5; border:1px solid #CCCCCC;} #nav ul {margin:0px 0px 0px 0px; padding:0px; list-style:none;} #nav li {padding:3px 10px; margin-bottom:1px; display:inline;} #nav a{color:#666666; text-decoration:none; font-weight:bold;} #nav a:hover {text-decoration:underline;} #content {padding:8px;} #header {margin-bottom: 0px;padding: 8px;} #header_left {float:left;} #header_right {text-align:right;} #footer {clear:both; padding:8px;} h3 {margin:0px; padding:0px; font-size:17px;} .clear {clear:both; height:1px; overflow:hidden; margin-top:-1px; padding:0; font-size:0px; line-height:0px;} a:link {color: #006699; text-decoration: none;} a:visited {text-decoration: none; color: #006699;} a:hover {text-decoration: underline; color: #000000;} a:active {text-decoration: none; color: #006699;} .comments {} .comments .list{ margin-top:10px; margin-top:10px; text-align:left; padding:5px 0px 10px 0px;} .comments .thumb{ float:left; margin-top:20px; background:#CCCCCC; padding:5px;} .comments .thumb img{ border:1px solid #666666;} .comments .entry {padding:5px 10px; margin-left:50px;} .comments .entry .meta { padding:5px 0px 5px 10px;} .comments .entry .comment { background:#DADADA; padding:10px; font-size:12px; line-height:20px;} .comments .form{ text-align:left; padding-left:100px;} .comments .form input{ border:1px solid #CCCCCC; color:#666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; padding:3px; width:200px;} .comments .form textarea{ border:1px solid #CCCCCC; color:#666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; padding:3px; width:350px; height:100px;} --> </style> <script> function pop(action, param){ window.open('admin_popup.php?pop='+action+'&id='+ param,'Gallery','width=500,height=150,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'); } </script> </head> <body> <div id="wrapper"> <div id="header"> <div id="header_left"> <h3><font color="#FF6600">i</font>Foto Control Panel v1.0</h3> My World, My Life, My Pride </div> <div id="header_right"> <?php echo date('l, j F Y'); ?><br /> <a href="./" target="_blank">Go to Gallery</a> </div> <div class="clear"> </div> </div> <div id="nav"> <ul> <li><a href="?">Admin Home</a></li> <li><a href="?p=gallery">Gallery</a></li> <li><a href="?p=comments">Comments</a></li> <li><a href="?p=thumbnails">Thumbnails</a></li> <!--<li><a href="?p=sentinal">Sentinal</a></li>--> <li><a href="?p=logout">Logout</a></li> </ul> </div> <div id="content"><?php admin_contents(); ?></div> <div class="clear"> </div> </div> <div id="footer"> <div align="center"> Powered by <a href="http://ifoto.ireans.com">iFoto</a> © Copyright 2006 Ireans </div> </div> </body> </html> <?}function html_login(){ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>iFoto - My Simple Photo Gallery - Control Panel</title> <style type="text/css"> <!-- /* main layout styles */ html, body {font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #494949; background-color:#DDDDDD; text-align:center;} #wrapper {width: 750px; border:1px solid #CCCCCC; background-color: #EEEEEE; text-align:left; padding-bottom:20px; margin:0 auto;} #nav { padding:8px; background-color:#E5E5E5; border:1px solid #CCCCCC;} #nav ul {margin:0px 0px 0px 0px; padding:0px; list-style:none;} #nav li {padding:3px 10px; margin-bottom:1px; display:inline;} #nav a{color:#666666; text-decoration:none; font-weight:bold;} #nav a:hover {text-decoration:underline;} #content {padding:8px;} #header {margin-bottom: 0px;padding: 8px;} #header_left {float:left;} #header_right {text-align:right;} #footer {clear:both; padding:8px;} h3 {margin:0px; padding:0px; font-size:17px;} .clear {clear:both; height:1px; overflow:hidden; margin-top:-1px; padding:0; font-size:0px; line-height:0px;} a:link {color: #006699; text-decoration: none;} a:visited {text-decoration: none; color: #006699;} a:hover {text-decoration: underline; color: #000000;} a:active {text-decoration: none; color: #006699;} #login_box { padding:8px; margin:0 auto; background-color:#E5E5E5; border:1px solid #CCCCCC; width:180px;} #login_box form { margin:0px; } #login_box input { border:1px solid #666666; background:#ECECEC; font-size:11px;} --> </style> </head> <body> <div id="wrapper"> <div id="header"> <div id="header_left"> <h3><font color="#FF6600">i</font>Foto Control Panel v1.0</h3> My World, My Life, My Pride </div> <div id="header_right"> <?php echo date('l, j F Y'); ?> </div> <div class="clear"> </div> </div> <div id="nav"></div> <div id="content"> <center> Use a valid username and password to gain access to the control panel area. <br /><br /> </center> <div id="login_box"> <form name="login_form" method="POST"> Username : <input type="text" name="login" /><br /> Password : <input type="password" name="password" /><br /> <div align="right"> <input type="submit" name="submit" value="Login" /> </div> </form> </div> <br /> <center> <a href="./">Go to Gallery</a> </center> </div> <div class="clear"> </div> </div> <div id="footer"> <div align="center"> Powered by <a href="http://ifoto.ireans.com">iFoto</a> © Copyright 2006 Ireans </div> </div> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> document.login_form.login.focus(); </SCRIPT> </body> </html> <?}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -