Beispiel #1
0
function pathConfiguration()
{
    global $xoopsModule;
    // Upload and Images Folders
    smartmedia_collapsableBar('configtable', 'configtableicon');
    echo "<img id='configtableicon' name='configtableicon' src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SMEDIA_PATHCONFIGURATION . "</h3>";
    echo "<div id='configtable'>";
    echo "<br />";
    echo "<table width='100%' class='outer' cellspacing='1' cellpadding='3' border='0' ><tr>";
    echo "<td class='bg3'><b>" . _AM_SMEDIA_PATH_ITEM . "</b></td>";
    echo "<td class='bg3'><b>" . _AM_SMEDIA_PATH . "</b></td>";
    echo "<td class='bg3' align='center'><b>" . _AM_SMEDIA_STATUS . "</b></td></tr>";
    echo "<tr><td class='odd'>" . _AM_SMEDIA_PATH_FILES . "</td>";
    $upload_path = smartmedia_getUploadDir();
    echo "<td class='odd'>" . $upload_path . "</td>";
    echo "<td class='even' style='text-align: center;'>" . smartmedia_admin_getPathStatus('root') . "</td></tr>";
    echo "<tr><td class='odd'>" . _AM_SMEDIA_PATH_IMAGES . "</td>";
    $image_path = smartmedia_getImageDir();
    echo "<td class='odd'>" . $image_path . "</td>";
    echo "<td class='even' style='text-align: center;'>" . smartmedia_admin_getPathStatus('images') . "</td></tr>";
    echo "<tr><td class='odd'>" . _AM_SMEDIA_PATH_IMAGES_CATEGORY . "</td>";
    $image_path = smartmedia_getImageDir('category');
    echo "<td class='odd'>" . $image_path . "</td>";
    echo "<td class='even' style='text-align: center;'>" . smartmedia_admin_getPathStatus('images/category') . "</td></tr>";
    echo "<tr><td class='odd'>" . _AM_SMEDIA_PATH_IMAGES_FOLDER . "</td>";
    $image_path = smartmedia_getImageDir('folder');
    echo "<td class='odd'>" . $image_path . "</td>";
    echo "<td class='even' style='text-align: center;'>" . smartmedia_admin_getPathStatus('images/folder') . "</td></tr>";
    echo "<tr><td class='odd'>" . _AM_SMEDIA_PATH_IMAGES_CLIP . "</td>";
    $image_path = smartmedia_getImageDir('clip');
    echo "<td class='odd'>" . $image_path . "</td>";
    echo "<td class='even' style='text-align: center;'>" . smartmedia_admin_getPathStatus('images/clip') . "</td></tr>";
    echo "</table>";
    echo "<br />";
    echo "</div>";
}
Beispiel #2
0
function smartmedia_getImageDir($item = '', $local = true)
{
    if ($item) {
        $item = "images/{$item}";
    } else {
        $item = 'images';
    }
    return smartmedia_getUploadDir($local, $item);
}