<?php
class pagesWcp extends moduleWcp {
    /**
     * Check if current page is Login page
     */
    public function isLogin() {
		return (basename($_SERVER['SCRIPT_NAME']) == 'wp-login.php' 
				|| strpos($_SERVER['REQUEST_URI'], '/login/') === 0);	// Some plugins create login page by this address
    }
}

