• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP showErrorMsg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: encodeHTML

            $fileName = "";
        }
        $urlName = encodeHTML($row['url']);
        $doiName = encodeHTML($row['doi']);
        $contributionID = $row['contribution_id'];
        $onlinePublication = $row['online_publication'];
        $onlineCitationName = $row['online_citation'];
        $createdDate = $row['created_date'];
        $createdTime = $row['created_time'];
        $createdBy = encodeHTML($row['created_by']);
        $modifiedDate = $row['modified_date'];
        $modifiedTime = $row['modified_time'];
        $modifiedBy = encodeHTML($row['modified_by']);
        $origRecord = $row['orig_record'];
    } else {
        showErrorMsg($loc["The Query"] . ":\n<br>\n<br>\n<code>" . encodeHTML($query) . "</code>\n<br>\n<br>\n " . $loc["caused an error"] . ":", "");
    }
} else {
    if ($recordAction == "add" and $mode == "import" and empty($errors)) {
        foreach ($_REQUEST as $varname => $value) {
            // remove slashes from parameter values if 'magic_quotes_gpc = On':
            $_REQUEST[$varname] = stripSlashesIfMagicQuotes($value);
        }
        // function 'stripSlashesIfMagicQuotes()' is defined in 'include.inc.php'
        // read field data from a GET/POST request:
        if (isset($_REQUEST['author'])) {
            $authorName = encodeHTML($_REQUEST['author']);
        } else {
            $authorName = "";
        }
        if (isset($_REQUEST['title'])) {
开发者ID:Olari0,项目名称:Finugriling,代码行数:31,代码来源:record.php


示例17: showErrorMsg

 // If an error occurs in the code you're trying to exec(), it can be challenging to figure out what's going
 // wrong, since php echoes back the stdout stream rather than the stderr stream where all the useful error
 // reporting's done. The solution is to add the code "2>&1" to the end of your shell command, which redirects
 // stderr to stdout, which you can then easily print using something like print `shellcommand 2>&1`.
 // run the UPDATE query on the depends table of the (just imported) literature database:
 if (!($result = @mysql_query($queryUpdateDependsTable, $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 query the database:", "");
     }
 }
 // (5) Close the database connection:
 if (!mysql_close($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 disconnect from the database:", "");
     }
 }
 $resultLines = "";
 // initialize variable
 // Read out the execution result array:
 if (!empty($resultArray)) {
     reset($resultArray);
     // reset the internal array pointer to the first element
     while (list($key, $val) = each($resultArray)) {
         $resultLines .= "\n" . trim($val);
     }
     // append each of the array elements to a string
 }
 // --------------------------------------------------------------------
 // Provide a feedback page:
开发者ID:Olari0,项目名称:Finugriling,代码行数:31,代码来源:install.php


示例18: disconnectFromMySQLDatabase

function disconnectFromMySQLDatabase()
{
    global $connection;
    if (isset($connection)) {
        // (5) CLOSE the database connection:
        if (!mysql_close($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 disconnect from the database:");
            }
        }
    }
}
开发者ID:Olari0,项目名称:Finugriling,代码行数:13,代码来源:include.inc.php


示例19: generateSitemapFile

 function generateSitemapFile($sitemapInfo)
 {
     $sitemapInfo['project_id'] = intval($sitemapInfo['project_id']);
     if (!empty($sitemapInfo['project_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> !");
         }
         $saCtrler = $this->createController('SiteAuditor');
         $projectInfo = $saCtrler->__getProjectInfo($sitemapInfo['project_id']);
         $this->section = formatFileName($projectInfo['name']);
         $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'];
         }
         $auditorComp = $this->createComponent('AuditorComponent');
         $pageList = $auditorComp->getAllreportPages(" and project_id=" . $sitemapInfo['project_id']);
         $urlList = array();
         foreach ($pageList as $pageInfo) {
             $pageInfo['page_url'] = Spider::addTrailingSlash($pageInfo['page_url']);
             if ($auditorComp->isExcludeLink($pageInfo['page_url'], trim($sitemapInfo['exclude_url']))) {
                 continue;
             }
             $urlList[] = $pageInfo['page_url'];
         }
         $this->createSitemap($this->smType, $urlList);
     } else {
         hideDiv('message');
         showErrorMsg("No Website Found!");
     }
 }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:36,代码来源:sitemap.ctrl.php


示例20: showErrorMsg

echo SP_WEBPATH;
?>
/login.php?sec=forgot">
                <input type="hidden" name="sec" value="requestpass">
                <table width="500px" cellpadding="0" cellspacing="0" class="actionForm" style="margin-top: 20px;">
                	<tr>
                		<td><?php 
if (!empty($error)) {
    ?>
                    		<h1 class="head"><?php 
    echo $spText['login']['Your Password Reset Failed'];
    ?>
</h1>
                    		<div class="acc_confirm">
                    			<?php 
    showErrorMsg($error, false);
    ?>
                    		</div>
                    	<?php 
} else {
    ?>
                    		<h1 class="head"><?php 
    echo $spText['login']['Your Password Reset Successfully'];
    ?>
</h1>		
                    		<div class="acc_confirm">
                    		<?php 
    echo showSuccessMsg($spText['login']['password_reset_success_message'], false);
    ?>
                    		</div>
                    	<?php 
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:forgotconfirm.ctp.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP showFooter函数代码示例发布时间:2022-05-24
下一篇:
PHP showError函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap