当前位置: 首页>>代码示例>>PHP>>正文


PHP showErrorMsg函数代码示例

本文整理汇总了PHP中showErrorMsg函数的典型用法代码示例。如果您正苦于以下问题:PHP showErrorMsg函数的具体用法?PHP showErrorMsg怎么用?PHP showErrorMsg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了showErrorMsg函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: executeReportGenerationScript

 function executeReportGenerationScript($info = '')
 {
     if (count($info['repTools']) <= 0) {
         showErrorMsg('Please select atleast one Seo Tools!');
     }
     $websiteCtrler = new WebsiteController();
     if (!empty($info['website_id'])) {
         $allWebsiteList[] = $websiteCtrler->__getWebsiteInfo($info['website_id']);
     } else {
         $userCtrler = new UserController();
         $userList = $userCtrler->__getAllUsers();
         $allWebsiteList = array();
         foreach ($userList as $userInfo) {
             $websiteList = $websiteCtrler->__getAllWebsites($userInfo['id']);
             foreach ($websiteList as $websiteInfo) {
                 $allWebsiteList[] = $websiteInfo;
             }
         }
     }
     if (count($allWebsiteList) <= 0) {
         showErrorMsg('No websites found!');
     }
     $this->set('allWebsiteList', $allWebsiteList);
     $this->set('repTools', implode(':', $info['repTools']));
     $this->render('report/reportgenerator');
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:26,代码来源:cron.ctrl.php

示例2: selectDatabase

 function selectDatabase($dbName)
 {
     $res = @mysql_select_db($dbName, $this->connectionId);
     $this->showError();
     if (mysql_errno() != 0) {
         showErrorMsg("<p style='color:red'>Database connection failed!<br>Please check your database settings!</p>");
     }
     return $res;
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:9,代码来源:mysql.class.php

示例3: connectToMySQLDatabaseAsAdmin

function connectToMySQLDatabaseAsAdmin($adminUserName, $adminPassword)
{
    global $hostName;
    // these variables are specified in 'db.inc.php'
    global $databaseName;
    global $connection;
    // Establish a *new* connection that has admin permissions
    // (1) OPEN the database connection:
    if (!($connection = @mysql_connect($hostName, $adminUserName, $adminPassword))) {
        if (mysql_errno() != 0) {
            // this works around a stupid(?) behaviour of the Roxen webserver that returns 'errno: 0' on success! ?:-(
            showErrorMsg("The following error occurred while trying to connect to the host:", "");
        }
    }
    // (2) SELECT the database:
    if (!mysql_select_db($databaseName, $connection)) {
        if (mysql_errno() != 0) {
            // this works around a stupid(?) behaviour of the Roxen webserver that returns 'errno: 0' on success! ?:-(
            showErrorMsg("The following error occurred while trying to connect to the database:", "");
        }
    }
}
开发者ID:Olari0,项目名称:Finugriling,代码行数:22,代码来源:install.inc.php

示例4: generateSitemapFile

 function generateSitemapFile($sitemapInfo)
 {
     $sitemapInfo['website_id'] = intval($sitemapInfo['website_id']);
     if (!empty($sitemapInfo['website_id'])) {
         # check whether the sitemap directory is writable
         if (!is_writable(SP_TMPPATH . "/" . $this->sitemapDir)) {
             hideDiv('message');
             showErrorMsg("Directory '<b>" . SP_TMPPATH . "/" . $this->sitemapDir . "</b>' is not <b>writable</b>. Please change its <b>permission</b> !");
         }
         $websiteController = new WebsiteController();
         $websiteInfo = $websiteController->__getWebsiteInfo($sitemapInfo['website_id']);
         $baseUrl = $websiteInfo['url'];
         $this->section = formatFileName($websiteInfo['name']);
         if (!preg_match('/\\/$/', $baseUrl)) {
             $baseUrl = $baseUrl . "/";
         }
         $this->baseUrl = $baseUrl;
         $urlInfo = parse_url($this->baseUrl);
         $this->hostName = str_replace('www.', '', $urlInfo['host']);
         $this->smType = $sitemapInfo['sm_type'];
         $this->excludeUrl = $sitemapInfo['exclude_url'];
         if (!empty($sitemapInfo['freq'])) {
             $this->changefreq = $sitemapInfo['freq'];
         }
         if (!empty($sitemapInfo['priority'])) {
             $this->priority = $sitemapInfo['priority'];
         }
         $this->createSitemap();
     } else {
         hideDiv('message');
         showErrorMsg("No Website Found!");
     }
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:33,代码来源:sitemap.ctrl.php

示例5: empty

<?php

$headLabel = empty($headLabel) ? $spTextPanel['System Settings'] : $headLabel;
echo showSectionHead($headLabel);
// if saved successfully
if (!empty($saved)) {
    showSuccessMsg($spTextSettings['allsettingssaved'], false);
}
// save process failed
if (!empty($errorMsg)) {
    echo showErrorMsg($errorMsg, false);
}
?>
<form id="updateSettings">
<input type="hidden" value="update" name="sec">
<input type="hidden" value="<?php 
echo $category;
?>
" name="category">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr class="listHead">
		<td class="left" width='30%'><?php 
echo $headLabel;
?>
</td>
		<td class="right">&nbsp;</td>
	</tr>
	<?php 
foreach ($list as $i => $listInfo) {
    $class = $i % 2 ? "blue_row" : "white_row";
    switch ($listInfo['set_type']) {
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:showsettings.ctp.php

示例6: checkVersion

 function checkVersion()
 {
     $content = $this->spider->getContent(SP_VERSION_PAGE);
     $content['page'] = str_replace('Version:', '', $content['page']);
     $latestVersion = str_replace('.', '', $content['page']);
     $installVersion = str_replace('.', '', SP_INSTALLED);
     if ($latestVersion > $installVersion) {
         echo showErrorMsg($this->spTextSettings['versionnotuptodatemsg'] . "({$content['page']}) from <a href='" . SP_DOWNLOAD_LINK . "' target='_blank'>" . SP_DOWNLOAD_LINK . "</a>", false);
     } else {
         echo showSuccessMsg($this->spTextSettings["Your Seo Panel installation is up to date"], false);
     }
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:12,代码来源:settings.ctrl.php

示例7: showSectionHead

<?php

echo showSectionHead($spTextTools['Auditor Reports']);
if (empty($projectId)) {
    showErrorMsg($spTextSA['No active projects found'] . '!');
}
$submitJsFunc = "scriptDoLoadPost('siteauditor.php', 'search_form', 'subcontent', '&sec=showreport')";
?>
<form id='search_form' onsubmit="<?php 
echo $submitJsFunc;
?>
; return false;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="search">
	<tr>				
		<th><?php 
echo $spText['label']['Project'];
?>
: </th>
		<td>
			<select id="project_id" name="project_id" onchange="<?php 
echo $submitJsFunc;
?>
" style="width: 180px;">
				<?php 
foreach ($projectList as $list) {
    ?>
					<?php 
    if ($list['id'] == $projectId) {
        ?>
						<option value="<?php 
        echo $list['id'];
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:viewreports.ctp.php

示例8: checkUserIsObjectOwner

 function checkUserIsObjectOwner($objId, $objName = 'website')
 {
     if (!isAdmin()) {
         $userId = isLoggedIn();
         switch ($objName) {
             case "keyword":
                 $sql = "select k.id from keywords k,websites w where k.website_id=w.id and w.user_id='" . intval($userId) . "' and k.id='" . intval($objId) . "'";
                 break;
             case "website":
                 $sql = "select id from websites where id='" . intval($objId) . "' and user_id='" . intval($userId) . "'";
                 break;
         }
         $info = $this->db->select($sql, true);
         if (empty($info['id'])) {
             showErrorMsg("You are not allowed to access this page!");
         }
     }
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:18,代码来源:controller.class.php

示例9: getContent

 function getContent($url, $enableProxy = true)
 {
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_URL, $url);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_FAILONERROR, $this->_CURLOPT_FAILONERROR);
     @curl_setopt($this->_CURL_RESOURCE, CURLOPT_FOLLOWLOCATION, $this->_CURLOPT_FOLLOWLOCATION);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_RETURNTRANSFER, $this->_CURLOPT_RETURNTRANSFER);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_TIMEOUT, $this->_CURLOPT_TIMEOUT);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEJAR, $this->_CURLOPT_COOKIEJAR);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEFILE, $this->_CURLOPT_COOKIEFILE);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_HEADER, $this->_CURLOPT_HEADER);
     if (!empty($this->_CURLOPT_COOKIE)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIE, $this->_CURLOPT_COOKIE);
     }
     if (!empty($this->_CURLOPT_REFERER)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_REFERER, $this->_CURLOPT_REFERER);
     }
     if (strlen($this->_CURLOPT_POSTFIELDS) > 1) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POST, $this->_CURLOPT_POST);
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POSTFIELDS, $this->_CURLOPT_POSTFIELDS);
     }
     // user agent assignment
     $this->_CURLOPT_USERAGENT = defined('SP_USER_AGENT') ? SP_USER_AGENT : $this->_CURLOPT_USERAGENT;
     if (strlen($this->_CURLOPT_USERAGENT) > 0) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERAGENT, $this->_CURLOPT_USERAGENT);
     }
     if (strlen($this->_CURLOPT_USERPWD) > 2) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERPWD, $this->_CURLOPT_USERPWD);
     }
     // to use proxy if proxy enabled
     if (SP_ENABLE_PROXY && $enableProxy) {
         $proxyCtrler = new ProxyController();
         if ($proxyInfo = $proxyCtrler->getRandomProxy()) {
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXY, $proxyInfo['proxy'] . ":" . $proxyInfo['port']);
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_HTTPPROXYTUNNEL, CURLOPT_HTTPPROXYTUNNEL_VAL);
             if (!empty($proxyInfo['proxy_auth'])) {
                 curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXYUSERPWD, $proxyInfo['proxy_username'] . ":" . $proxyInfo['proxy_password']);
             }
         } else {
             showErrorMsg("No active proxies found!! Please check your proxy settings from Admin Panel.");
         }
     }
     $ret['page'] = curl_exec($this->_CURL_RESOURCE);
     $ret['error'] = curl_errno($this->_CURL_RESOURCE);
     $ret['errmsg'] = curl_error($this->_CURL_RESOURCE);
     // disable proxy if not working
     if (SP_ENABLE_PROXY && $enableProxy && !empty($ret['error']) && !empty($proxyInfo['id'])) {
         // deactivate proxy
         if (PROXY_DEACTIVATE_CRAWL) {
             echo "Deactivating proxy - " . $proxyInfo['proxy'] . "....<br>\n";
             $proxyCtrler->__changeStatus($proxyInfo['id'], 0);
         }
         // chekc with another proxy
         if (CHECK_WITH_ANOTHER_PROXY_IF_FAILED) {
             echo "Checking with another proxy....<br>\n";
             $ret = $this->getContent($url, $enableProxy);
         }
     }
     return $ret;
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:59,代码来源:spider.class.php

示例10: showImportProjectLinks

 function showImportProjectLinks($info = '')
 {
     $userId = isLoggedIn();
     $where = isAdmin() ? "" : " and w.user_id={$userId}";
     $projectList = $this->getAllProjects($where);
     $this->set('projectList', $projectList);
     if (empty($projectList)) {
         showErrorMsg($this->spTextSA['No active projects found'] . '!');
     }
     $projectId = empty($info['project_id']) ? 0 : $info['project_id'];
     $this->set('projectId', $projectId);
     $this->render('siteauditor/importlinks');
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:13,代码来源:siteauditor.ctrl.php

示例11: CronController

 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program 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 this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
include_once "includes/sp-load.php";
if (empty($_SERVER['REQUEST_METHOD'])) {
    # the section for generate reports using system cron job
    include_once SP_CTRLPATH . "/cron.ctrl.php";
    $controller = new CronController();
    include_once SP_CTRLPATH . "/directory.ctrl.php";
    $dirCtrler = new DirectoryController();
    $searchInfo = array('checked' => 0);
    $dirList = $dirCtrler->getAllDirectories($searchInfo);
    $dirCtrler->checkPR = 1;
    // check pagerank of directory or not
    foreach ($dirList as $dirInfo) {
        $dirCtrler->checkDirectoryStatus($dirInfo['id']);
        echo "sleep for " . SP_CRAWL_DELAY . " seconds";
        sleep(SP_CRAWL_DELAY);
    }
} else {
    showErrorMsg("<p style='color:red'>You don't have permission to access this page!</p>");
}
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:directorycheckercron.php

示例12: getContent

 function getContent($url, $enableProxy = true, $logCrawl = true)
 {
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_URL, $url);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_FAILONERROR, $this->_CURLOPT_FAILONERROR);
     @curl_setopt($this->_CURL_RESOURCE, CURLOPT_FOLLOWLOCATION, $this->_CURLOPT_FOLLOWLOCATION);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_RETURNTRANSFER, $this->_CURLOPT_RETURNTRANSFER);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_TIMEOUT, $this->_CURLOPT_TIMEOUT);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEJAR, $this->_CURLOPT_COOKIEJAR);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEFILE, $this->_CURLOPT_COOKIEFILE);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_HEADER, $this->_CURLOPT_HEADER);
     if (!empty($this->_CURLOPT_COOKIE)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIE, $this->_CURLOPT_COOKIE);
     }
     if (!empty($this->_CURLOPT_REFERER)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_REFERER, $this->_CURLOPT_REFERER);
     }
     if (strlen($this->_CURLOPT_POSTFIELDS) > 1) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POST, $this->_CURLOPT_POST);
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POSTFIELDS, $this->_CURLOPT_POSTFIELDS);
     }
     // user agent assignment
     $this->_CURLOPT_USERAGENT = defined('SP_USER_AGENT') ? SP_USER_AGENT : $this->_CURLOPT_USERAGENT;
     if (strlen($this->_CURLOPT_USERAGENT) > 0) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERAGENT, $this->_CURLOPT_USERAGENT);
     }
     if (strlen($this->_CURLOPT_USERPWD) > 2) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERPWD, $this->_CURLOPT_USERPWD);
     }
     // to use proxy if proxy enabled
     if (SP_ENABLE_PROXY && $enableProxy) {
         $proxyCtrler = new ProxyController();
         if ($proxyInfo = $proxyCtrler->getRandomProxy()) {
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXY, $proxyInfo['proxy'] . ":" . $proxyInfo['port']);
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_HTTPPROXYTUNNEL, CURLOPT_HTTPPROXYTUNNEL_VAL);
             if (!empty($proxyInfo['proxy_auth'])) {
                 curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXYUSERPWD, $proxyInfo['proxy_username'] . ":" . $proxyInfo['proxy_password']);
             }
         } else {
             showErrorMsg("No active proxies found!! Please check your proxy settings from Admin Panel.");
         }
     }
     $ret['page'] = curl_exec($this->_CURL_RESOURCE);
     $ret['error'] = curl_errno($this->_CURL_RESOURCE);
     $ret['errmsg'] = curl_error($this->_CURL_RESOURCE);
     // update crawl log in database for future reference
     if ($logCrawl) {
         $crawlLogCtrl = new CrawlLogController();
         $crawlInfo['crawl_status'] = $ret['error'] ? 0 : 1;
         $crawlInfo['ref_id'] = $crawlInfo['crawl_link'] = addslashes($url);
         $crawlInfo['crawl_referer'] = addslashes($this->_CURLOPT_REFERER);
         $crawlInfo['crawl_cookie'] = addslashes($this->_CURLOPT_COOKIE);
         $crawlInfo['crawl_post_fields'] = addslashes($this->_CURLOPT_POSTFIELDS);
         $crawlInfo['crawl_useragent'] = addslashes($this->_CURLOPT_USERAGENT);
         $crawlInfo['proxy_id'] = $proxyInfo['id'];
         $crawlInfo['log_message'] = addslashes($ret['errmsg']);
         $ret['log_id'] = $crawlLogCtrl->createCrawlLog($crawlInfo);
     }
     // disable proxy if not working
     if (SP_ENABLE_PROXY && $enableProxy && !empty($ret['error']) && !empty($proxyInfo['id'])) {
         // deactivate proxy
         if (PROXY_DEACTIVATE_CRAWL) {
             $proxyCtrler->__changeStatus($proxyInfo['id'], 0);
         }
         // chekc with another proxy
         if (CHECK_WITH_ANOTHER_PROXY_IF_FAILED) {
             $ret = $this->getContent($url, $enableProxy);
         }
     }
     return $ret;
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:70,代码来源:spider.class.php

示例13: requestPassword

 function requestPassword($userEmail)
 {
     $errMsg['email'] = formatErrorMsg($this->validate->checkEmail($userEmail));
     $this->set('post', $_POST);
     if (!$this->validate->flagErr) {
         $userId = $this->__checkEmail($userEmail);
         if (!empty($userId)) {
             $userInfo = $this->__getUserInfo($userId);
             $rand = str_shuffle(rand() . $userInfo['username']);
             $sql = "update users set password=md5('{$rand}') where id={$userInfo['id']}";
             $this->db->query($sql);
             # send password to user
             $error = 0;
             $this->set('rand', $rand);
             $this->set('name', $userInfo['first_name'] . " " . $userInfo['last_name']);
             $content = $this->getViewContent('email/passwordreset');
             $subject = "Seo panel password reset";
             if (!sendMail(SP_SUPPORT_EMAIL, SP_ADMIN_NAME, $userEmail, $subject, $content)) {
                 $error = showErrorMsg('An internal error occured while sending password reset mail!', false);
             }
             $this->set('error', $error);
             $this->render('common/forgotconfirm');
             exit;
         } else {
             $errMsg['email'] = formatErrorMsg($_SESSION['text']['login']['user_email_not_exist']);
         }
     }
     $this->set('errMsg', $errMsg);
     $this->forgotPasswordForm();
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:30,代码来源:user.ctrl.php

示例14: getContent

 function getContent($url, $enableProxy = true)
 {
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_URL, $url);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_FAILONERROR, $this->_CURLOPT_FAILONERROR);
     @curl_setopt($this->_CURL_RESOURCE, CURLOPT_FOLLOWLOCATION, $this->_CURLOPT_FOLLOWLOCATION);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_RETURNTRANSFER, $this->_CURLOPT_RETURNTRANSFER);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_TIMEOUT, $this->_CURLOPT_TIMEOUT);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEJAR, $this->_CURLOPT_COOKIEJAR);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIEFILE, $this->_CURLOPT_COOKIEFILE);
     curl_setopt($this->_CURL_RESOURCE, CURLOPT_HEADER, $this->_CURLOPT_HEADER);
     if (!empty($this->_CURLOPT_COOKIE)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_COOKIE, $this->_CURLOPT_COOKIE);
     }
     if (!empty($this->_CURLOPT_REFERER)) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_REFERER, $this->_CURLOPT_REFERER);
     }
     if (strlen($this->_CURLOPT_POSTFIELDS) > 1) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POST, $this->_CURLOPT_POST);
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_POSTFIELDS, $this->_CURLOPT_POSTFIELDS);
     }
     $this->_CURLOPT_USERAGENT = defined('SP_USER_AGENT') ? SP_USER_AGENT : $this->_CURLOPT_USERAGENT;
     if (strlen($this->_CURLOPT_USERAGENT) > 0) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERAGENT, $this->_CURLOPT_USERAGENT);
     }
     if (strlen($this->_CURLOPT_USERPWD) > 2) {
         curl_setopt($this->_CURL_RESOURCE, CURLOPT_USERPWD, $this->_CURLOPT_USERPWD);
     }
     // to use proxy if proxy enabled
     if (SP_ENABLE_PROXY && $enableProxy) {
         $proxyCtrler = new ProxyController();
         if ($proxyInfo = $proxyCtrler->getRandomProxy()) {
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXY, $proxyInfo['proxy'] . ":" . $proxyInfo['port']);
             curl_setopt($this->_CURL_RESOURCE, CURLOPT_HTTPPROXYTUNNEL, 1);
             if (!empty($proxyInfo['proxy_auth'])) {
                 curl_setopt($this->_CURL_RESOURCE, CURLOPT_PROXYUSERPWD, $proxyInfo['proxy_username'] . ":" . $proxyInfo['proxy_password']);
             }
         } else {
             showErrorMsg("No active proxies found!! Please check your proxy settings from Admin Panel.");
         }
     }
     $ret['page'] = curl_exec($this->_CURL_RESOURCE);
     $ret['error'] = curl_errno($this->_CURL_RESOURCE);
     $ret['errmsg'] = curl_error($this->_CURL_RESOURCE);
     return $ret;
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:45,代码来源:spider.class.php

示例15: showErrorMsg

		<td>
			<?php 
echo $this->render('website/websiteselectbox', 'ajax');
?>
		</td>
		<td colspan="2"><a href="javascript:void(0);" onclick="scriptDoLoadPost('directories.php', 'search_form', 'content', '&sec=skipped')" class="actionbut"><?php 
echo $spText['button']['Show Records'];
?>
</a></td>
	</tr>
</table>
</form>

<?php 
if (empty($websiteId)) {
    showErrorMsg($spText['common']['nowebsites'] . '!');
}
?>

<div id='subcontent'>
<?php 
echo $pagingDiv;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="2px;" class="list" align='center'>
	<tr>
	<td width='33%'>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr class="listHead">
		<td class="left"><?php 
echo $spText['common']['Id'];
?>
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:skippeddirs.ctp.php


注:本文中的showErrorMsg函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。