<li><a href="iv2.php?reset_filter=1" target="_self">画像キャッシュ一覧</a></li> <?php } ?> <li><a href="#tgrep">スレッド検索</a></li> <li class="group">管理</li> <li><a href="editpref.php" target="_self">設定管理</a></li> <li><a href="setting.php" target="_self">ログイン管理</a></li> <li><a href="#login_info">ログイン情報</a></li> </ul> <?php // }}} // {{{ エラー if (P2Util::hasInfoHtml()) { echo '<div id="info_msg" class="panel" title="エラー">'; P2Util::printInfoHtml(); echo '</div>'; } // }}} // {{{ サブメニュー if ($_conf['expack.misc.multi_favs']) { // {{{ お気にスレ $favlist = FavSetManager::getFavSetTitles('m_favlist_set'); if (!$favlist) { $favlist = array(); } $fav_elems = ''; $fav_new_elems = ''; $fav_elem_prefix = '';
if ($rank != -5) { $setter = new IC2_DataObject_Images(); $setter->rank = $rank; $setter->whereAddQuoted('size', '=', $finder->size); $setter->whereAddQuoted('md5', '=', $finder->md5); $setter->whereAddQuoted('mime', '=', $finder->mime); if ($setter->update()) { $code = 1; } else { $code = 0; } } if ($remove) { $orig_info_msg_ht = P2Util::getInfoHtml(); $removed_files = IC2_DatabaseManager::remove(array($finder->id), $rank < 0); if ($code != 0 && !P2Util::hasInfoHtml()) { $code = 1; } else { $code = 0; } P2Util::pushInfoHtml($orig_info_msg_ht); } } echo $code; exit; // }}} /* * Local Variables: * mode: php * coding: cp932 * tab-width: 4
} $file = ic2_check_uploaded_file($path, $name, $type, $filesize, $tmpname, $errcode); if (is_array($file)) { $upfiles[] = $file; } else { P2Util::pushInfoHtml($file); } } } } // }}} // {{{ output $_flexy_options = array('locale' => 'ja', 'charset' => 'Shift_JIS', 'compileDir' => $_conf['compile_dir'] . DIRECTORY_SEPARATOR . 'ic2', 'templateDir' => P2EX_LIB_DIR . '/ic2/templates', 'numberFormat' => ''); $flexy = new HTML_Template_Flexy($_flexy_options); $flexy->compile('ic2s.tpl.html'); if (!$isPopUp && (!empty($upfiles) || P2Util::hasInfoHtml())) { $showForm = false; } else { $showForm = true; } // フォームを修正 $elements = $flexy->getElements(); if ($showForm) { $form_attr = array('action' => $_SERVER['SCRIPT_NAME'] . '?upload=1', 'accept-charset' => $_conf['accept_charset']); $elements['fileupload']->setAttributes($form_attr); $elements['MAX_FILE_SIZE']->setValue($maxsize); $elements['popup']->setValue($isPopUp); if ($isPopUp) { $elements['fileupload']->setAttributes('target="_self"'); } else { $elements['fileupload']->setAttributes('target="read"');