コード例 #1
0
?>
"/>
<p />
<label class='settings_email_editor_admin_email_test'><?php 
echo CMTX_FIELD_LABEL_FROM_EMAIL;
?>
</label> <input type="email" required name="admin_email_test_from_email" size="35" maxlength="250" value="<?php 
echo cmtx_setting('admin_email_test_from_email');
?>
"/>
<p />
<label class='settings_email_editor_admin_email_test'><?php 
echo CMTX_FIELD_LABEL_REPLY_EMAIL;
?>
</label> <input type="email" required name="admin_email_test_reply_to" size="35" maxlength="250" value="<?php 
echo cmtx_setting('admin_email_test_reply_to');
?>
"/>
<p /><br />
<b><?php 
echo CMTX_FIELD_VALUE_VARIABLES;
?>
</b>: <i>[admin link] [signature]</i>
<textarea name="email_content" cols="" rows="10" style="width:100%"><?php 
echo $data;
?>
</textarea>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
コード例 #2
0
echo CMTX_FIELD_LABEL_ENABLED;
?>
</label> <?php 
if (cmtx_setting('task_enabled_delete_bans')) {
    ?>
 <input type="checkbox" checked="checked" name="enabled"/> <?php 
} else {
    ?>
 <input type="checkbox" name="enabled"/> <?php 
}
?>
<p />
<label class='task_delete_bans'><?php 
echo CMTX_FIELD_LABEL_DAYS;
?>
</label> <input type="text" required name="days" size="1" maxlength="4" value="<?php 
echo cmtx_setting('days_to_delete_bans');
?>
"/>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #3
0
}
function cmtx_delete_replies($id)
{
    //delete replies of comment
    global $cmtx_mysql_table_prefix;
    $query = cmtx_db_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `reply_to` = '{$id}'");
    while ($comments = cmtx_db_fetch_assoc($query)) {
        $id = $comments["id"];
        cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `id` = '{$id}'");
        cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "voters` WHERE `comment_id` = '{$id}'");
        cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "reporters` WHERE `comment_id` = '{$id}'");
        cmtx_delete_replies($id);
    }
}
//end of delete-replies function
//delete comments older than the configured time period
$query = cmtx_db_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `dated` < DATE_SUB(NOW(), INTERVAL " . cmtx_setting('days_to_delete_comments') . " DAY)");
//select comments to delete
while ($comments = cmtx_db_fetch_assoc($query)) {
    //while there are comments to delete
    $id = $comments["id"];
    //get the ID of the comment
    cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `id` = '{$id}'");
    //delete it
    cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "voters` WHERE `comment_id` = '{$id}'");
    //delete its voters
    cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "reporters` WHERE `comment_id` = '{$id}'");
    //delete its reporters
    cmtx_delete_replies($id);
    //delete its replies
}
コード例 #4
0
    ?>
</label> <?php 
    if (cmtx_setting('akismet_enabled')) {
        ?>
 <input type="checkbox" checked="checked" name="enabled"/> <?php 
    } else {
        ?>
 <input type="checkbox" name="enabled"/> <?php 
    }
    ?>
<p />
<label class='settings_akismet'><?php 
    echo CMTX_FIELD_LABEL_AKISMET_KEY;
    ?>
</label> <input type="text" name="akismet_key" size="15" maxlength="250" value="<?php 
    echo cmtx_setting('akismet_key');
    ?>
"/>
<p />
<?php 
    cmtx_set_csrf_form_key();
    ?>
<input type="submit" class="button" name="submit" title="<?php 
    echo CMTX_BUTTON_UPDATE;
    ?>
" value="<?php 
    echo CMTX_BUTTON_UPDATE;
    ?>
"/>
</form>
コード例 #5
0
</label> <?php 
if (cmtx_setting('check_time')) {
    ?>
 <input type="checkbox" checked="checked" name="check_time"/> <?php 
} else {
    ?>
 <input type="checkbox" name="check_time"/> <?php 
}
cmtx_generate_hint(CMTX_HINT_CHECK_TIME);
?>
<p />
<label class='settings_security'><?php 
echo CMTX_FIELD_LABEL_BAN_COOKIE;
?>
</label> <input type="text" required name="ban_cookie_days" size="1" maxlength="3" value="<?php 
echo cmtx_setting('ban_cookie_days');
?>
"/> <span class='note'><?php 
echo CMTX_NOTE_DAYS;
?>
</span>
<?php 
cmtx_generate_hint(CMTX_HINT_BAN_COOKIE);
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
コード例 #6
0
ファイル: dashboard.php プロジェクト: GTAWWEKID/tsiserver.us
            if ($i != 5) {
                echo "<br />";
            }
            $i++;
        }
    }
    ?>
</div>
</div>

</div>

<p />

<?php 
    if (isset($_POST['submit_notes']) && !cmtx_setting('is_demo')) {
        cmtx_check_csrf_form_key();
        $data = $_POST['admin_notes'];
        $file = 'includes/words/custom/admin_notes.txt';
        $handle = fopen($file, 'w');
        fputs($handle, $data);
        fclose($handle);
    }
    ?>

<?php 
    if (file_exists('includes/words/custom/admin_notes.txt')) {
        $data = file_get_contents('includes/words/custom/admin_notes.txt');
    } else {
        $data = file_get_contents('includes/words/admin_notes.txt');
    }
コード例 #7
0
    }
}
echo '<p />';
echo '<b><u>Error Logs</u></b>';
echo '<p />';
if (is_writable('../includes/logs/errors.log')) {
    echo '/' . cmtx_setting('commentics_folder') . '/' . 'includes/logs/errors.log <span class="positive">' . CMTX_FIELD_VALUE_IS_WRITABLE . '</span>.';
} else {
    echo '/' . cmtx_setting('commentics_folder') . '/' . 'includes/logs/errors.log <span class="negative">' . CMTX_FIELD_VALUE_IS_NOT_WRITABLE . '</span>.';
    $permissions_correct = false;
}
echo '<br />';
if (is_writable('includes/logs/errors.log')) {
    echo '/' . cmtx_setting('commentics_folder') . '/' . cmtx_setting('admin_folder') . '/includes/logs/errors.log <span class="positive">' . CMTX_FIELD_VALUE_IS_WRITABLE . '</span>.';
} else {
    echo '/' . cmtx_setting('commentics_folder') . '/' . cmtx_setting('admin_folder') . '/includes/logs/errors.log <span class="negative">' . CMTX_FIELD_VALUE_IS_NOT_WRITABLE . '</span>.';
    $permissions_correct = false;
}
echo '<p />';
if ($permissions_correct) {
    echo '<span class="positive">' . CMTX_FIELD_VALUE_PERMISSIONS_CORRECT . '</span>.';
} else {
    echo '<span class="negative">' . CMTX_FIELD_VALUE_PERMISSIONS_INCORRECT . '</span>.';
}
?>

<p />

<input type="button" class="button" name="refresh" title="<?php 
echo CMTX_BUTTON_REFRESH;
?>
コード例 #8
0
</label> <?php 
if (cmtx_setting('viewers_refresh_enabled')) {
    ?>
 <input type="checkbox" checked="checked" name="viewers_refresh_enabled"/> <?php 
} else {
    ?>
 <input type="checkbox" name="viewers_refresh_enabled"/> <?php 
}
cmtx_generate_hint(CMTX_HINT_VISITOR_REFRESH);
?>
<p />
<label class='settings_viewers'><?php 
echo CMTX_FIELD_LABEL_INTERVAL;
?>
</label> <input type="text" required name="viewers_refresh_time" size="1" maxlength="250" value="<?php 
echo cmtx_setting('viewers_refresh_time');
?>
"/> <span class='note'><?php 
echo CMTX_NOTE_SECONDS;
?>
</span>
<?php 
cmtx_generate_hint(CMTX_HINT_VISITOR_INTERVAL);
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
?>
"/>
<p />
<label class='settings_email_editor_user_subscriber_notification_reply'><?php 
echo CMTX_FIELD_LABEL_FROM_EMAIL;
?>
</label> <input type="email" required name="subscriber_notification_reply_from_email" size="35" maxlength="250" value="<?php 
echo cmtx_setting('subscriber_notification_reply_from_email');
?>
"/>
<p />
<label class='settings_email_editor_user_subscriber_notification_reply'><?php 
echo CMTX_FIELD_LABEL_REPLY_EMAIL;
?>
</label> <input type="email" required name="subscriber_notification_reply_reply_to" size="35" maxlength="250" value="<?php 
echo cmtx_setting('subscriber_notification_reply_reply_to');
?>
"/>
<p /><br />
<b><?php 
echo CMTX_FIELD_VALUE_VARIABLES;
?>
</b>: <i>[name] [page reference] [page url] [comment url] [poster] [comment] [signature] [subscription link]</i>
<textarea name="email_content" cols="" rows="10" style="width:100%"><?php 
echo $data;
?>
</textarea>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
コード例 #10
0
<?php

/*
Copyright © 2009-2014 Commentics Development Team [commentics.org]
License: GNU General Public License v3.0
		 http://www.commentics.org/license/

This file is part of Commentics.

Commentics is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Commentics is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Commentics. If not, see <http://www.gnu.org/licenses/>.

Text to help preserve UTF-8 file encoding: 汉语漢語.
*/
if (!isset($cmtx_path)) {
    die('Access Denied.');
}
//delete voters older than the configured time period
cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "voters` WHERE `dated` < DATE_SUB(NOW(), INTERVAL " . cmtx_setting('days_to_delete_voters') . " DAY)");
コード例 #11
0
</label> <?php 
if (cmtx_setting('rich_snippets')) {
    ?>
 <input type="checkbox" checked="checked" name="rich_snippets"/> <?php 
} else {
    ?>
 <input type="checkbox" name="rich_snippets"/> <?php 
}
?>
<p />
<label class='settings_rich_snippets'><?php 
echo CMTX_FIELD_LABEL_RICH_SNIPPETS_FORMAT;
?>
</label>
<?php 
$rich_snippets_markups = "<select name='rich_snippets_markups'>\n<option value='Microdata'>Microdata</option>\n<option value='Microformats'>Microformats</option>\n<option value='RDFa'>RDFa</option>\n</select>";
$rich_snippets_markups = str_ireplace("'" . cmtx_setting('rich_snippets_markup') . "'", "'" . cmtx_setting('rich_snippets_markup') . "' selected='selected'", $rich_snippets_markups);
echo $rich_snippets_markups;
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #12
0
echo CMTX_FIELD_LABEL_LIMIT_ITEMS;
?>
</label> <?php 
if (cmtx_setting('rss_most_recent_enabled')) {
    ?>
 <input type="checkbox" checked="checked" name="rss_most_recent_enabled"/> <?php 
} else {
    ?>
 <input type="checkbox" name="rss_most_recent_enabled"/> <?php 
}
?>
<p />
<label class='settings_rss'><?php 
echo CMTX_FIELD_LABEL_LIMIT_AMOUNT;
?>
:</label> <input type="text" required name="rss_most_recent_amount" size="1" maxlength="250" value="<?php 
echo cmtx_setting('rss_most_recent_amount');
?>
"/>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #13
0
    echo CMTX_FIELD_LABEL_RECAPTCHA_THEME;
    ?>
</label>
<?php 
    $recaptcha_themes = "<select name='recaptcha_themes'>\n<option value='red'>red</option>\n<option value='white'>white</option>\n<option value='blackglass'>blackglass</option>\n<option value='clean'>clean</option>\n</select>";
    $recaptcha_themes = str_ireplace("'" . cmtx_setting('recaptcha_theme') . "'", "'" . cmtx_setting('recaptcha_theme') . "' selected='selected'", $recaptcha_themes);
    echo $recaptcha_themes;
    ?>
<p />
<label class='layout_form_captchas_recaptcha'><?php 
    echo CMTX_FIELD_LABEL_RECAPTCHA_LANGUAGE;
    ?>
</label>
<?php 
    $recaptcha_languages = "<select name='recaptcha_languages'>\n<option value='en'>english</option>\n<option value='nl'>dutch</option>\n<option value='fr'>french</option>\n<option value='de'>german</option>\n<option value='pt'>portuguese</option>\n<option value='ru'>russian</option>\n<option value='es'>spanish</option>\n<option value='tr'>turkish</option>\n</select>";
    $recaptcha_languages = str_ireplace("'" . cmtx_setting('recaptcha_language') . "'", "'" . cmtx_setting('recaptcha_language') . "' selected='selected'", $recaptcha_languages);
    echo $recaptcha_languages;
    ?>
<p />
<?php 
    cmtx_set_csrf_form_key();
    ?>
<input type="submit" class="button" name="submit" title="<?php 
    echo CMTX_BUTTON_UPDATE;
    ?>
" value="<?php 
    echo CMTX_BUTTON_UPDATE;
    ?>
"/>
</form>
コード例 #14
0
echo cmtx_setting('comment_maximum_characters');
?>
"/>
<p />
<label class='layout_form_maximums'><?php 
echo CMTX_FIELD_LABEL_QUESTION;
?>
</label> <input type="text" required name="field_maximum_question" size="1" maxlength="250" value="<?php 
echo cmtx_setting('field_maximum_question');
?>
"/>
<p />
<label class='layout_form_maximums'><?php 
echo CMTX_FIELD_LABEL_CAPTCHA;
?>
</label> <input type="text" required name="field_maximum_captcha" size="1" maxlength="250" value="<?php 
echo cmtx_setting('field_maximum_captcha');
?>
"/>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #15
0
<label class='edit_comment'><?php 
    echo CMTX_FIELD_LABEL_DISLIKES;
    ?>
</label>
<?php 
    echo $dislikes;
    if ($dislikes == 1) {
        echo " " . CMTX_FIELD_VALUE_ONE_DISLIKE;
    } else {
        echo " " . CMTX_FIELD_VALUE_MANY_DISLIKES;
    }
}
?>

<?php 
if (cmtx_setting('show_flag')) {
    ?>
<br /><hr class="separator"/><br />
<label class='edit_comment'><?php 
    echo CMTX_FIELD_LABEL_REPORTS;
    ?>
</label><?php 
    if ($reports == 0) {
        echo CMTX_FIELD_VALUE_NO_REPORTS;
    }
    if ($reports == 1) {
        echo CMTX_FIELD_VALUE_ONE_REPORT;
    }
    if ($reports > 1) {
        echo CMTX_FIELD_VALUE_THERE_ARE . " " . $reports . " " . CMTX_FIELD_VALUE_REPORTS;
    }
コード例 #16
0
echo CMTX_FIELD_VALUE_DELAY_PAGES;
?>
<br />
<?php 
if (cmtx_setting('lower_pages')) {
    ?>
 <input type="checkbox" checked="checked" name="lower_pages"/> <?php 
} else {
    ?>
 <input type="checkbox" name="lower_pages"/> <?php 
}
echo CMTX_FIELD_VALUE_LOWER_PAGES;
?>
<br />
<?php 
if (!cmtx_setting('enabled_form')) {
    ?>
 <input type="checkbox" checked="checked" name="enabled_form"/> <?php 
} else {
    ?>
 <input type="checkbox" name="enabled_form"/> <?php 
}
echo CMTX_FIELD_VALUE_ENABLED_FORM;
?>
<div style='margin-bottom: 5px;'></div>
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
?>
"/>
<p />
<label class='settings_email_editor_user_subscriber_confirmation'><?php 
echo CMTX_FIELD_LABEL_FROM_EMAIL;
?>
</label> <input type="email" required name="subscriber_confirmation_from_email" size="35" maxlength="250" value="<?php 
echo cmtx_setting('subscriber_confirmation_from_email');
?>
"/>
<p />
<label class='settings_email_editor_user_subscriber_confirmation'><?php 
echo CMTX_FIELD_LABEL_REPLY_EMAIL;
?>
</label> <input type="email" required name="subscriber_confirmation_reply_to" size="35" maxlength="250" value="<?php 
echo cmtx_setting('subscriber_confirmation_reply_to');
?>
"/>
<p /><br />
<b><?php 
echo CMTX_FIELD_VALUE_VARIABLES;
?>
</b>: <i>[name] [page reference] [page url] [confirmation link] [signature]</i>
<textarea name="email_content" cols="" rows="10" style="width:100%"><?php 
echo $data;
?>
</textarea>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
コード例 #18
0
 <input type="checkbox" name="enabled_bb_code_email"/> <?php 
}
?>
<p />
<label class='layout_form_bb_code'><img src="../images/bb_code/image.png" title="Image" alt="Image"/></label> <?php 
if (cmtx_setting('enabled_bb_code_image')) {
    ?>
 <input type="checkbox" checked="checked" name="enabled_bb_code_image"/> <?php 
} else {
    ?>
 <input type="checkbox" name="enabled_bb_code_image"/> <?php 
}
?>
<p />
<label class='layout_form_bb_code'><img src="../images/bb_code/video.png" title="Video" alt="Video"/></label> <?php 
if (cmtx_setting('enabled_bb_code_video')) {
    ?>
 <input type="checkbox" checked="checked" name="enabled_bb_code_video"/> <?php 
} else {
    ?>
 <input type="checkbox" name="enabled_bb_code_video"/> <?php 
}
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
コード例 #19
0
ファイル: form.php プロジェクト: GTAWWEKID/tsiserver.us
function cmtx_load_form_defaults()
{
    //load default form field values
    global $cmtx_default_name, $cmtx_default_email, $cmtx_default_website, $cmtx_default_town, $cmtx_default_country, $cmtx_default_rating, $cmtx_default_comment, $cmtx_default_notify, $cmtx_default_remember, $cmtx_default_privacy, $cmtx_default_terms;
    //globalise variables
    if (!isset($cmtx_default_name)) {
        $cmtx_default_name = cmtx_setting('default_name');
    }
    if (!isset($cmtx_default_email)) {
        $cmtx_default_email = cmtx_setting('default_email');
    }
    if (!isset($cmtx_default_website)) {
        $cmtx_default_website = cmtx_setting('default_website');
    }
    if (!isset($cmtx_default_town)) {
        $cmtx_default_town = cmtx_setting('default_town');
    }
    if (!isset($cmtx_default_country)) {
        $cmtx_default_country = cmtx_setting('default_country');
    }
    if (!isset($cmtx_default_rating)) {
        $cmtx_default_rating = cmtx_setting('default_rating');
    }
    if (!isset($cmtx_default_comment)) {
        $cmtx_default_comment = cmtx_setting('default_comment');
    }
    if (!isset($cmtx_default_notify)) {
        $cmtx_default_notify = cmtx_setting('default_notify');
    }
    if (!isset($cmtx_default_remember)) {
        $cmtx_default_remember = cmtx_setting('default_remember');
    }
    if (!isset($cmtx_default_privacy)) {
        $cmtx_default_privacy = cmtx_setting('default_privacy');
    }
    if (!isset($cmtx_default_terms)) {
        $cmtx_default_terms = cmtx_setting('default_terms');
    }
}
コード例 #20
0
<label class='settings_system'><?php 
echo CMTX_FIELD_LABEL_LIMIT_COMMENTS;
?>
</label> <input type="text" required name="limit_comments" size="1" maxlength="250" value="<?php 
echo cmtx_setting('limit_comments');
?>
"/>
<?php 
cmtx_generate_hint(CMTX_HINT_LIMIT_COMMENTS);
?>
<p />
<label class='settings_system'><?php 
echo CMTX_FIELD_LABEL_ADMIN_COOKIE_DAYS;
?>
</label> <input type="text" required name="admin_cookie_days" size="1" maxlength="3" value="<?php 
echo cmtx_setting('admin_cookie_days');
?>
"/> <span class='note'><?php 
echo CMTX_NOTE_DAYS;
?>
</span>
<?php 
cmtx_generate_hint(CMTX_HINT_ADMIN_COOKIE_DAYS);
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
コード例 #21
0
?>
"/>
<p />
<label class='settings_email_sender'><?php 
echo CMTX_FIELD_LABEL_FROM_EMAIL;
?>
</label> <input type="email" required name="setup_from_email" size="35" maxlength="250" value="<?php 
echo cmtx_setting('setup_from_email');
?>
"/>
<p />
<label class='settings_email_sender'><?php 
echo CMTX_FIELD_LABEL_REPLY_EMAIL;
?>
</label> <input type="email" required name="setup_reply_to" size="35" maxlength="250" value="<?php 
echo cmtx_setting('setup_reply_to');
?>
"/>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #22
0
        } else {
            cmtx_db_query("DELETE FROM `" . $cmtx_mysql_table_prefix . "admins` WHERE `id` = '{$id}'");
            ?>
<div class="success"><?php 
            echo CMTX_MSG_ADMIN_DELETED;
            ?>
</div>
<div style="clear: left;"></div>
<?php 
        }
    }
}
?>

<?php 
if (isset($_POST['bulk_delete']) && isset($_POST['bulk']) && cmtx_setting('is_demo')) {
    ?>
<div class="warning"><?php 
    echo CMTX_MSG_DEMO;
    ?>
</div>
<div style="clear: left;"></div>
<?php 
} else {
    if (isset($_POST['bulk_delete']) && isset($_POST['bulk'])) {
        cmtx_check_csrf_form_key();
        $items = $_POST['bulk'];
        $count = count($items);
        $success = 0;
        $failure = 0;
        for ($i = 0; $i < $count; $i++) {
コード例 #23
0
echo $_GET['page'];
?>
" target="_blank"><?php 
echo CMTX_LINK_HELP;
?>
</a>
</div>

<h3><?php 
echo CMTX_TITLE_LIST_RESERVED_EMAILS;
?>
</h3>
<hr class="title"/>

<?php 
if (isset($_POST['submit']) && cmtx_setting('is_demo')) {
    ?>
<div class="warning"><?php 
    echo CMTX_MSG_DEMO;
    ?>
</div>
<div style="clear: left;"></div>
<?php 
} else {
    if (isset($_POST['submit'])) {
        cmtx_check_csrf_form_key();
        $data = $_POST['reserved_emails'];
        $file = '../includes/words/custom/reserved_emails.txt';
        $handle = fopen($file, 'w');
        fputs($handle, $data);
        fclose($handle);
コード例 #24
0
?>
</label> <?php 
if (cmtx_setting('show_rss')) {
    ?>
 <input type="checkbox" checked="checked" name="show_rss"/> <?php 
} else {
    ?>
 <input type="checkbox" name="show_rss"/> <?php 
}
?>
<p />
<label class='layout_comments_enabled'><?php 
echo CMTX_FIELD_LABEL_PAGE_NUMBER;
?>
</label> <?php 
if (cmtx_setting('show_page_number')) {
    ?>
 <input type="checkbox" checked="checked" name="show_page_number"/> <?php 
} else {
    ?>
 <input type="checkbox" name="show_page_number"/> <?php 
}
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
コード例 #25
0
echo cmtx_setting('smtp_password');
?>
"/>
</div>
<div id="sendmail" <?php 
if (cmtx_setting('transport_method') != "sendmail") {
    echo "style='display:none;'";
}
?>
 >
<p />
<label class='settings_email_method'><?php 
echo CMTX_FIELD_LABEL_SENDMAIL_PATH;
?>
</label> <input type="text" required name="sendmail_path" size="20" maxlength="250" value="<?php 
echo cmtx_setting('sendmail_path');
?>
"/>
</div>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
echo CMTX_BUTTON_UPDATE;
?>
"/>
</form>
コード例 #26
0
 <input type="checkbox" name="show_social_myspace"/> <?php 
}
?>
<p />
<label class='layout_comments_social'><img src="../images/social/twitter.png" title="Twitter" alt="Twitter"/></label> <?php 
if (cmtx_setting('show_social_twitter')) {
    ?>
 <input type="checkbox" checked="checked" name="show_social_twitter"/> <?php 
} else {
    ?>
 <input type="checkbox" name="show_social_twitter"/> <?php 
}
?>
<p />
<label class='layout_comments_social'><img src="../images/social/linkedin.png" title="LinkedIn" alt="LinkedIn"/></label> <?php 
if (cmtx_setting('show_social_linkedin')) {
    ?>
 <input type="checkbox" checked="checked" name="show_social_linkedin"/> <?php 
} else {
    ?>
 <input type="checkbox" name="show_social_linkedin"/> <?php 
}
?>
<p />
<?php 
cmtx_set_csrf_form_key();
?>
<input type="submit" class="button" name="submit" title="<?php 
echo CMTX_BUTTON_UPDATE;
?>
" value="<?php 
コード例 #27
0
ファイル: language.php プロジェクト: GTAWWEKID/tsiserver.us
    require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/custom/rss.php';
    //load custom language file for RSS
}
if (file_exists($cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/custom/subscribers.php')) {
    //if custom language file for subscribers exists
    require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/custom/subscribers.php';
    //load custom language file for subscribers
}
if (file_exists($cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/custom/locale.php')) {
    //if custom language file for locale exists
    require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/custom/locale.php';
    //load custom language file for locale
}
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/page.php';
//load language file for page
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/comments.php';
//load language file for comments
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/processor.php';
//load language file for processor
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/form.php';
//load language file for form
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/countries.php';
//load language file for countries
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/ratings.php';
//load language file for ratings
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/rss.php';
//load language file for RSS
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/subscribers.php';
//load language file for subscribers
require_once $cmtx_path . 'includes/language/' . cmtx_setting('language_frontend') . '/locale.php';
//load language file for locale
コード例 #28
0
    ?>
<option value='reject' selected='selected'><?php 
    echo CMTX_FIELD_VALUE_REJECT;
    ?>
</option>
<option value='approve'><?php 
    echo CMTX_FIELD_VALUE_APPROVE;
    ?>
</option>
<option value='ban'><?php 
    echo CMTX_FIELD_VALUE_BAN;
    ?>
</option>
<?php 
} else {
    if (cmtx_setting('banned_towns_action') == "approve") {
        ?>
<option value='reject'><?php 
        echo CMTX_FIELD_VALUE_REJECT;
        ?>
</option>
<option value='approve' selected='selected'><?php 
        echo CMTX_FIELD_VALUE_APPROVE;
        ?>
</option>
<option value='ban'><?php 
        echo CMTX_FIELD_VALUE_BAN;
        ?>
</option>
<?php 
    } else {
コード例 #29
0
ファイル: main.php プロジェクト: GTAWWEKID/tsiserver.us
        //load comments
        echo '</td>';
        echo '</tr>';
        echo '</table>';
        if (cmtx_setting('center_screen')) {
            //center layout
            echo '</div>';
        }
    } else {
        //vertical layout
        if (cmtx_setting('center_screen')) {
            echo '<div class="cmtx_center">';
        }
        //center layout
        require_once $cmtx_path . 'includes/template/form.php';
        //load form
        echo '<div class="cmtx_divider"></div>';
        //height between form/comments
        require_once $cmtx_path . 'includes/template/comments.php';
        //load comments
        if (cmtx_setting('center_screen')) {
            echo '</div>';
        }
        //center layout
    }
}
?>

</div>

<!-- End of Commentics -->
コード例 #30
0
ファイル: processor.php プロジェクト: jonathancromie/ifb299
 if (cmtx_setting('enabled_notify') && isset($_POST['cmtx_notify']) && cmtx_setting('enabled_email') && !empty($cmtx_email) && !cmtx_subscriber_exists($cmtx_email, $cmtx_page_id) && !cmtx_subscriber_email_attempts($cmtx_email) && !cmtx_subscriber_ip_attempts() && !$cmtx_is_admin) {
     cmtx_add_subscriber($cmtx_name, $cmtx_email, $cmtx_page_id);
 }
 //notify subscribers of new comment
 if (cmtx_setting('enabled_notify')) {
     if ($cmtx_is_admin) {
         cmtx_notify_subscribers($cmtx_name, $cmtx_comment, $cmtx_page_id, $cmtx_comment_id, $cmtx_reply_to, $cmtx_is_admin);
     } else {
         if (!cmtx_setting('approve_notifications')) {
             cmtx_notify_subscribers($cmtx_name, $cmtx_comment, $cmtx_page_id, $cmtx_comment_id, $cmtx_reply_to, $cmtx_is_admin);
         }
     }
 }
 cmtx_notify_admin_new_comment_okay($cmtx_name, $cmtx_comment, $cmtx_comment_id);
 //notify admin of new comment
 if (isset($_POST['cmtx_remember']) || !cmtx_setting('enabled_remember') && cmtx_setting('form_cookie')) {
     cmtx_set_form_cookie($cmtx_name, $cmtx_email, $cmtx_website, $cmtx_town, $cmtx_country);
     //save form inputs
     $cmtx_default_name = cmtx_strip_slashes(cmtx_decode($cmtx_name));
     $cmtx_default_email = cmtx_strip_slashes(cmtx_decode($cmtx_email));
     $cmtx_default_website = cmtx_strip_slashes(cmtx_decode($cmtx_website));
     $cmtx_default_town = cmtx_strip_slashes(cmtx_decode($cmtx_town));
     $cmtx_default_country = cmtx_strip_slashes(cmtx_decode($cmtx_country));
 }
 if (cmtx_session_set()) {
     //if there's a session
     $_SESSION['cmtx_resubmit_key'] = $_POST['cmtx_resubmit_key'];
     //add resubmit key to session
 }
 $cmtx_reply_id = 0;
 //reset the reply id