⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpl_settings.php

📁 一款文件上传程序
💻 PHP
📖 第 1 页 / 共 3 页
字号:
        <legend>Email Templates</legend>
        <p style="padding:5px;">
            <strong class="s1">Activation email</strong><br />
            Sent when user registers. Variables for this email: {activation_url}<br />
            <textarea name="emails[activation]" rows="7" cols="105"><?=$emails['activation']?></textarea>
        </p>

        <p style="padding:5px;">
            <strong class="s1">Password reset email</strong><br />
            Sent when user's password has been reset. Variables for this email: {new_password}, {login_url}<br />
            <textarea name="emails[password_reset]" rows="5" cols="105"><?=$emails['password_reset']?></textarea>
        </p>

        <p style="padding:5px;">
            <strong class="s1">Password request email</strong><br />
            Sent when user forgot his/her password. Variables for this email: {ip}, {reset_url}<br />
            <textarea name="emails[password_request]" rows="7" cols="105"><?=$emails['password_request']?></textarea>
        </p>

        <p style="padding:5px;">
            <strong class="s1">User approved email</strong><br />
            Sent when user has been approved by admin. Variables for this email: {uploader_url}<br />
            <textarea name="emails[user_approved]" rows="5" cols="105"><?=$emails['user_approved']?></textarea>
        </p>

        <p style="padding:5px;">
            <strong class="s1">"Change email" email</strong><br />
            Sent when user changes his/her email address in the UserCP. Variables for this email: {ip}, {confirm_url}<br />
            <textarea name="emails[change_email]" rows="6" cols="105"><?=$emails['change_email']?></textarea>
        </p>

        <p style="text-align:center;">
            <input type="submit" value="Save Templates" class="blue_button" />
        </p>
    </fieldset>
</form>
<?php
// ######################################################################################
// THIS IS A SEPERATOR
// ######################################################################################
/* New user settings */ elseif ( $action == 'public' ) : ?>
<?php /* If settings have been saved, display this little notification */ if ( isset ( $saved ) && $saved ) : ?>
<p class="note1" style="text-align:center;">All settings have been saved!</p>
<?php endif; ?>
<form id="public_form" method="post" action="admin.php?action=public">
    <input type="hidden" name="action" value="public" />
    <input type="hidden" name="task" value="save" />
	<fieldset>
        <legend>Public Uploader settings</legend>
        <table id="tbl_rr" style="width:100%;" cellpadding="5" cellspacing="1" border="0">
            <tr>
                <td colspan="3" style="line-height:1.5em;">
                    Remember to add a trailing slash after every path and URL
                </td>
            </tr>
            <tr>
                <td style="width:150px;">Public Uploader</td>
                <td colspan="2">
                    <input type="checkbox" name="psettings[enabled]" value="1" <?=$psettings['enabled']?'checked="checked"':''?> id="psettings_enabled" class="chkbox" />
                    <label for="psettings_enabled">Enable the public uploader</label>
                </td>
            </tr>
            <tr>
                <td >Public files directory</td>
                <td>
                    <input type="text" name="psettings[public_files_dir]" size="80" value="<?=@$psettings['public_files_dir']?>" />
                </td>
                <td class="cr"><span class="help" onclick="help('Similiar to the userfiles directory setting in the Uploader settings, this is the path to the directory were the files will be uploaded into.');">Explain</span></td>
            </tr>
            <tr>
                <td>Public files URL</td>
                <td>
                    <input type="text" name="psettings[public_files_url]" size="80" value="<?=@$psettings['public_files_url']?>" />
                </td>
                <td class="cr"><span class="help" onclick="help('This is the full URL to the user files directory above. Remember to add a trailing slash!');">Explain</span></td>
            </tr>
            <tr>
                <td>Allowed file types</td>
                <td>
                    <input type="text" name="psettings[allowed_filetypes]" size="80" value="<?=@$psettings['allowed_filetypes']?>" />
                </td>
                <td class="cr"><span class="help" onclick="help('Allowed file types, seperate with a comma and enter in lowercase. You don't have to enter uppercase. To allow all file types (except those set as illegal in the Uploader Settings), enter ANY');">Explain</span></td>
            </tr>
            <tr>
                <td>Max file size</td>
                <td>
                    <input type="text" name="psettings[max_file_size]" size="8" value="<?=@$psettings['max_file_size']?>" style="text-align:center;" /> KB
                </td>
                <td class="cr"><span class="help" onclick="help('Max file size in KB, enter 0 for unlimited.');">Explain</span></td>
            </tr>
            <tr>
                <td>Max views</td>
                <td>
                    <input type="text" name="psettings[max_views]" size="8" value="<?=@$psettings['max_views']?>" style="text-align:center;" />
                </td>
                <td class="cr"><span class="help" onclick="help('Delete a file after it has had this many views. Enter 0 for no view limit. The file will be deleted when either it has had too many views or too many transfer, whichever comes first. If you set one limit (view or bandwidth) as unlimited, then it will depend on the other limit.');">Explain</span></td>
            </tr>
            <tr>
                <td>Max bandwidth</td>
                <td>
                    <input type="text" name="psettings[max_bandwidth]" size="8" value="<?=@$psettings['max_bandwidth']?>" style="text-align:center;" /> MB
                </td>
                <td class="cr"><span class="help" onclick="help('Delete a file after it has had this much transfer. Enter 0 for no bandwidth limit. The file will be deleted when either it has had too many views or too many transfer, whichever comes first. If you set one limit (view or bandwidth) as unlimited, then it will depend on the other limit.');">Explain</span></td>
            </tr>
            <tr>
                <td>Images</td>
                <td colspan="2">
                    <input type="checkbox" name="psettings[images_only]" value="1" <?=$psettings['images_only']?'checked="checked"':''?> id="psettings_images_only" class="chkbox" />
                    <label for="psettings_images_only">Only images (JPEG, PNG, GIF) can be uploaded.</label><br />
                </td>
            </tr>
            <tr>
                <td>Thumbnails</td>
                <td colspan="2">
                    <input type="checkbox" name="psettings[allow_thumbnails]" value="1" <?=$psettings['allow_thumbnails']?'checked="checked"':''?> id="psettings_allow_thumbnails" class="chkbox" />
                    <label for="psettings_allow_thumbnails">Allow users to create thumbnails of uploaded images.</label>
                </td>
            </tr>

            <tr>
                <td>Thumbnails border</td>
                <td colspan="2">
                    <input type="checkbox" name="psettings[thumb_border]" value="1" <?=$psettings['thumb_border']?'checked="checked"':''?> id="psettings_thumbnail_border" class="chkbox" />
                    <label for="psettings_thumbnail_border">Add border to thumbnails plus original image dimension and size. Ex: 935x1234 124.5KB</label>
                </td>
            </tr>

            <tr>
                <td>Small thumbnail size</td>
                <td>
                    <input type="text" name="psettings[thumb_small]" size="10" value="<?=@$psettings['thumb_small']?>" style="text-align:center;" /> pixels
                </td>
                <td class="cr"><span class="help" onclick="help('Dimension of the small thumbnail. The default size is recommended as it fits with the template of the site. The thumbnails will be resized and cropped automatically for best looks.');">Explain</span></td>
            </tr>

            <tr>
                <td>Large thumbnail size</td>
                <td>
                    <input type="text" name="psettings[thumb_large]" size="10" value="<?=@$psettings['thumb_large']?>" style="text-align:center;" /> pixels
                </td>
                <td class="cr"><span class="help" onclick="help('Dimension of the large thumbnail. See Small thumbnail explanation for more details.');">Explain</span></td>
            </tr>

            <tr>
                <td>Uploader view</td>
                <td>
                    <input type="checkbox" name="psettings[uploader_view]" value="1" <?=@$psettings['uploader_view']?'checked="checked"':''?> id="uploader_view" class="chkbox" />
                    <label for="uploader_view">Use the uploader to view images.</label>
                </td>
                <td class="cr"><span class="help" onclick="help('If enabled, links to the uploaded images will be changed to force the image to be viewed in an html page. This will allow you to add contents (advertisement for example) around the image. This feature can be bypassed if you disable image hot linking protection. Edit tpl_public_view_image.php to change the layout of the mentioned page.');">Explain</span></td>
            </tr>

            <tr>
                <td></td>
                <td colspan="2"><input type="submit" value="Save" class="blue_button" /> <input type="reset" value="Reset" onclick="return confirm('Reset form?');" class="blue_button" /></td>
            </tr>
        </table>
	</fieldset>
</form>
<?php endif; ?>




<!-- alternating row color -->
<script type="text/javascript">
    alternateRowColor(getObj('tbl1'),'tr','#F5F5F5','#FBFBFB');
    alternateRowColor(getObj('tbl2'),'tr','#F5F5F5','#FBFBFB');
    alternateRowColor(getObj('tbl_rr'),'tr','#F5F5F5','#FBFBFB');
    alternateRowColor(getObj('emails_form'),'p','#F5F5F5','#FBFBFB');
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -