コード例 #1
0
ファイル: admin-panel.php プロジェクト: Owchzzz/Devbox
function awpcp_home_screen()
{
    global $awpcp_db_version;
    global $awpcp_imagesurl;
    global $hasextrafieldsmodule, $extrafieldsversioncompatibility;
    global $message;
    // check if there is a duplicate page conflict
    $main_page_name = get_awpcp_option('main-page-name');
    $page_conflict = checkforduplicate(add_slashes_recursive(sanitize_title($main_page_name)));
    ob_start();
    include AWPCP_DIR . '/admin/templates/admin-panel-home.tpl.php';
    $content = ob_get_contents();
    ob_end_clean();
    echo $content;
}
コード例 #2
0
    _e("The version of the extra fields module that you are using is not compatible with this version of Another Wordpress Classifieds Plugin.", "AWPCP");
    ?>
        <a href="http://www.awpcp.com/contact/"><?php 
    _e("Please request updated Extra Fields module files", "AWPCP");
    ?>
</a>.
    </p>
</div>
<?php 
}
?>

<?php 
$main_page_name = get_awpcp_option('main-page-name');
// check if there is a duplicate page conflict
$page_conflict = checkforduplicate(add_slashes_recursive(sanitize_title($main_page_name)));
?>

<?php 
if ($page_conflict > 1) {
    ?>
<div class="error">
    <p>
        <?php 
    _e("It appears you have a potential problem that could result in the malfunctioning of Another Wordpress Classifieds plugin. A check of your database was performed and duplicate entries were found that share the same post_name value as your classifieds page. If for some reason you uninstall and then reinstall this plugin and the duplicate pages remain in your database, it could break the plugin and prevent it from working. To fix this problem you can manually delete the duplicate pages and leave only the page with the ID of your real classifieds page, or you can use the link below to rebuild your classifieds page. The process will include first deleting all existing pages with a post name value identical to your classifieds page. Note that if you recreate the page, it will be assigned a new page ID so if you are referencing the classifieds page ID anywhere outside of the classifieds program you will need to adjust the old ID to the new ID.", "AWPCP");
    ?>
    </p>

    <ul>
        <li><?php 
    _e("Number of duplicate pages", "AWPCP");