Esempio n. 1
0
        ?>
 ); </script> 
 <?php 
    }
}
if (isset($_POST['action']) && $_POST['action'] == 'anylink_scan') {
    flush();
    set_time_limit(0);
    require_once ANYLNK_PATH . "/classes/al_covert.php";
    $objAllPost = new al_covert();
    $arrPostID = array();
    $arrPostID = $objAllPost->arrGetPostIDs();
    $j = count($arrPostID);
    $k = 0;
    foreach ($arrPostID as $ID) {
        $objAllPost->covertURLs($ID);
        $k = $k + 1;
        ?>
<script type="text/javascript">setDivStyle( "anylink_proceeding", <?php 
        echo round($k / $j, 4);
        ?>
 ); </script> 
<?php 
        flush();
    }
}
if (isset($_POST['action']) && $_POST['action'] == 'anylink_regnerate') {
    $alOption = get_option('anylink_options');
    if ($alOption['slugNum'] != $alOption['oldSlugNum'] || $alOption['slugChar'] != $alOption['oldSlugChar']) {
        flush();
        set_time_limit(0);
Esempio n. 2
0
/**
 * Call actions when a new comment added
 * @param int $comment_id is the id of the comment
 * @param object $comment is the comment object
 * @since 0.1.9
 */
function new_comment($comment_id, $comment)
{
    $covert = new al_covert();
    $covert->covertURLs($comment_id, true);
}