コード例 #1
0
ファイル: pm.usertags.php プロジェクト: Andreyjktl/Cotonti
<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=usertags.main
[END_COT_EXT]
==================== */
/**
 * PM user tags
 *
 * @package PM
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL.');
global $L, $Ls, $R;
require_once cot_incfile('pm', 'module');
if ($user_data['user_id'] > 0) {
    $temp_array['PM'] = cot_build_pm($user_data['user_id']);
    $temp_array['PMNOTIFY'] = $cot_yesno[$user_data['user_pmnotify']];
} else {
    $temp_array['PM'] = '';
    $temp_array['PMNOTIFY'] = '';
}
コード例 #2
0
ファイル: advboard.advert.php プロジェクト: ASDAFF/advboard
                                    <div><?php 
        echo cot::$L['Email'];
        ?>
: <?php 
        echo $advert->getEmail(true);
        ?>
</div>
                                <?php 
    }
    if ($advert->owner['user_id'] > 0 && cot_module_active('pm')) {
        ?>
                                    <?php 
        echo cot::$L['users_sendpm'];
        ?>
: <?php 
        echo cot_build_pm($advert->owner['user_id']);
        ?>
                                <?php 
    }
    ?>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        <?php 
}
if ($advert->canEdit()) {
    $expireStatus = $advert->expireStatus;
    ?>