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


PHP url_maker函数代码示例

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


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

示例1: estimateReport

 public function estimateReport($company_symbol, $second_title)
 {
     $second_title_found = Company::find_company_name_comp_id($company_symbol);
     if ($second_title_found) {
         if (!$second_title || $second_title == $company_symbol) {
             return Redirect::route('home-estimate', array($company_symbol, url_maker($second_title_found)));
         }
     } else {
         return Redirect::route('404');
     }
     $interval = Input::get('interval');
     $total = Input::get('total');
     Company::update_chapter_view($company_symbol);
     //<---this updates the view count of chapter
     $previous_data = CompanyData::Check_recod_exists_by_company_symbol($company_symbol);
     $interval = isset($interval) && !empty($interval) ? $interval : 'd';
     $precision = $previous_data ? $previous_data : 1;
     $stock_market = new StockMarket($company_symbol, $interval, $precision);
     //<---class declared here and passed the datas
     $company_name = $stock_market->find_company_name_from_symbol();
     if ($company_name) {
         //<-- if company name given is not false go further
         $stock_records = $stock_market->get_the_market_data();
         //<--function to collect Historical data for given company symbol
     }
     if (!$stock_records) {
         return Redirect::route('404');
     } else {
         $buy_level = $stock_market->get_prediction_buy_level();
         //<--this function helps to predict the buying level mark
         $sell_level = $stock_market->get_prediction_sell_level();
         //<--this function helps to predict the selling level mark
         $compan_details = $stock_market->get_company_description();
         //<--get the stored company Descriptions
         $prediction = Prediction::update_predicted_data($company_symbol, $precision);
         //<--class declaration/ find to update for prediction
         if ($prediction) {
             $company_id = Company::find_company_id_company_symbol($company_symbol);
             $ipLite = new ip2locationlite();
             $ipLite->setKey('516921f89d86829aafa20f18ff7408fe4f2e974d114b53593f56a91ab7a286cc');
             $locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']);
             $ge_countryName = !empty($locations) && is_array($locations) ? $locations['cityName'] : "undeclared";
             $prediction = Prediction::where('comp_id_fk', '=', $company_id)->delete();
             $company = Prediction::create(array('comp_id_fk' => $company_id, 'buy_level' => trim($buy_level), 'sell_level' => trim($sell_level), 'accuracy' => $precision, 'updated' => date("Y-m-d H:i:s", time()), 'host' => $ge_countryName));
         }
     }
     $meta_data = array('title' => ucwords($company_name) . " Stock Market Value Prediction Result :: StockLength.com To Check Your Risk Level On Stock Market", 'metaDescription' => ucwords($company_name) . ' find online Prediction Stock Market Informer, Online free tool to check stockmarket future ' . ucwords($company_name) . ',  Online free selling buyer sujection, Featured Predict Stock Market, free fast Online Check and reviews ' . ucwords($company_name) . '. Latest updates on everything Predict Stock Market related.', 'company_symbol' => $company_symbol, 'precision' => $precision, 'fb_image' => return_image($company_symbol . '.jpeg'));
     return View::make('estimate', array('meta_data' => $meta_data, 'company_name' => $company_name, 'compan_details' => $compan_details, 'stock_records' => $stock_records, 'stock_market' => $stock_market, 'buy_level' => $buy_level, 'sell_level' => $sell_level, 'precision' => $precision, 'records' => parent::latestPredictions(), 'tickers' => parent::getTicker(), 'company_symbol' => $company_symbol, 'page_checker' => true));
 }
开发者ID:dipdumdip,项目名称:skritoos-nimgamu-parmu,代码行数:49,代码来源:EstimationController.php

示例2: sitemapCreater

    public function sitemapCreater()
    {
        echo '<?xml version="1.0" encoding="UTF-8"?> 
					<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">';
        $articles = Company::Read_data_sitemap();
        if ($articles) {
            foreach ($articles as $record) {
                $company_symbol = $record->company_symbol;
                $company_name = $record->company_name;
                $created = $record->created;
                $displaydate = date("Y-m-d", strtotime($created));
                $url_product = URL::route('home-estimate', array($company_symbol, url_maker($company_name)));
                sitemapper($url_product, $displaydate);
            }
        }
        echo '</urlset>';
        $contents = View::make('sitemap.view_sitemap');
        // Create a response and modify a header value
        $response = Response::make($contents, 200)->header('Content-Type', 'text/xml');
        return $response;
    }
开发者ID:dipdumdip,项目名称:skritoos-nimgamu-parmu,代码行数:21,代码来源:SitemapController.php

示例3: url_maker

    ?>
<tr class="CalTableRow1">
<th class="CalTableColumn1" colspan="7">
<span style="float: left;"><?php 
    echo $ThemeSet['TitleIcon'];
    echo "Viewing " . $MyMonthName . " " . $MyYear;
    ?>
&nbsp;</span>&nbsp;
<span style="float: right;">&nbsp;<a href="<?php 
    echo url_maker($exfile['calendar'], $Settings['file_ext'], "act=view&calmadd=" . $backcalm, $Settings['qstr'], $Settings['qsep'], $prexqstr['calendar'], $exqstr['calendar']);
    ?>
">&lt;</a><?php 
    echo $ThemeSet['LineDivider'];
    ?>
<a href="<?php 
    echo url_maker($exfile['calendar'], $Settings['file_ext'], "act=view&calmadd=" . $nextcalm, $Settings['qstr'], $Settings['qsep'], $prexqstr['calendar'], $exqstr['calendar']);
    ?>
">&gt;</a>&nbsp;</span>&nbsp;
</th>
</tr><?php 
}
?>
<tr class="CalTableRow2">
<?php 
echo $DayNames;
?>
</tr><tr class="CalTableRow3">
<?php 
echo $WeekDays;
?>
</tr>
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:calendars.php

示例4: url_maker

                        echo $ForumID;
                        ?>
">
<td<?php 
                        echo $ForumClass[1];
                        ?>
><div class="forumicon">
<?php 
                        echo $PreForum;
                        ?>
</div></td>
<td<?php 
                        echo $ForumClass[2];
                        ?>
><div class="forumname"><a href="<?php 
                        echo url_maker($exfile[$ForumType], $Settings['file_ext'], "act=view&id=" . $ForumID . $ExStr, $Settings['qstr'], $Settings['qsep'], $prexqstr[$ForumType], $exqstr[$ForumType]);
                        ?>
"<?php 
                        if ($ForumType == "redirect") {
                            echo " onclick=\"window.open(this.href);return false;\"";
                        }
                        ?>
><?php 
                        echo $ForumName;
                        ?>
</a></div>
<div class="forumdescription"><?php 
                        echo $ForumDescription;
                        ?>
<br />
<?php 
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:subcategories.php

示例5: url_maker

        ?>
<tr class="TableSMenuRow1">
<td class="TableSMenuColumn1"><?php 
        echo $ThemeSet['TitleIcon'];
        ?>
Group Menu</td>
</tr><?php 
    }
    ?>
<tr class="TableSMenuRow2">
<td class="TableSMenuColumn2">&nbsp;</td>
</tr><tr class="TableSMenuRow3">
<td class="TableSMenuColumn3"><a href="<?php 
    echo url_maker($exfile['admin'], $Settings['file_ext'], "act=addgroup", $Settings['qstr'], $Settings['qsep'], $prexqstr['admin'], $exqstr['admin']);
    ?>
">Add Groups</a></td>
</tr><tr class="TableSMenuRow3">
<td class="TableSMenuColumn3"><a href="<?php 
    echo url_maker($exfile['admin'], $Settings['file_ext'], "act=editgroup", $Settings['qstr'], $Settings['qsep'], $prexqstr['admin'], $exqstr['admin']);
    ?>
">Edit Groups</a></td>
</tr><tr class="TableSMenuRow3">
<td class="TableSMenuColumn3"><a href="<?php 
    echo url_maker($exfile['admin'], $Settings['file_ext'], "act=deletegroup", $Settings['qstr'], $Settings['qsep'], $prexqstr['admin'], $exqstr['admin']);
    ?>
">Delete Groups</a></td>
</tr><tr class="TableSMenuRow4">
<td class="TableSMenuColumn4">&nbsp;</td>
</tr></table></div>
<?php 
}
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:table.php

示例6: url_maker

    ?>
</Image>
<Url type="text/html" method="POST" template="<?php 
    echo $BoardURL . $_GET['board'] . "/" . url_maker("search", $Settings['file_ext'], null, "search", "search");
    ?>
">
  <Param name="act" value="topics"/>
  <Param name="search" value="{searchTerms}"/>
  <Param name="type" value="wildcard"/>
  <Param name="page" value="1"/>
</Url>
<?php 
    echo $endtag;
    ?>
<moz:SearchForm><?php 
    echo $BoardURL . $_GET['board'] . "/" . url_maker("search", $Settings['file_ext'], null, "search", "search");
    ?>
</moz:SearchForm>
</OpenSearchDescription>
<?php 
}
if ($_GET['debug'] == "true" || $_GET['debug'] == "on") {
    function execution_time($starttime)
    {
        list($uetime, $etime) = explode(" ", microtime());
        $endtime = $uetime + $etime;
        return bcsub($endtime, $starttime, 4);
    }
    echo "<!-- execution_time=\"" . execution_time($starttime) . "\" -->";
}
gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:rssfeed.php

示例7: ob_get_clean

}
if ($Settings['showverinfo'] != "on") {
    ?>
<!-- generator="<?php 
    echo $iDB;
    ?>
" -->
<?php 
}
echo "\n";
$iWrappers['METATAGS'] = ob_get_clean();
ob_start("idb_suboutput_handler");
?>

<script type="text/javascript" src="<?php 
echo url_maker($exfilejs['javascript'], $Settings['js_ext'], null, $Settings['qstr'], $Settings['qsep'], $prexqstrjs['javascript'], $exqstrjs['javascript']);
?>
"></script>
<?php 
echo "\n";
?>
<!-- ^_^ Stephanie Braun -->
<?php 
if ($ThemeSet['CSSType'] == "import") {
    ?>
<style type="text/css">
/* Import the theme css file */
<?php 
    echo "\n@import url(\"" . $ThemeSet['CSS'] . "\");\n";
    ?>
</style>
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:html5.php

示例8: ob_get_clean

?>
 </title>
<?php 
$iWrappers['TITLETAG'] = ob_get_clean();
ob_start("idb_suboutput_handler");
?>
</head>
<body>
<?php 
$iWrappers['BODYTAG'] = ob_get_clean();
ob_start("idb_suboutput_handler");
require $SettDir['inc'] . 'navbar.php';
$iWrappers['NAVBAR'] = ob_get_clean();
ob_start("idb_suboutput_handler");
if ($_SESSION['UserGroup'] == $Settings['GuestGroup'] || $GroupInfo['CanEditProfile'] == "no") {
    redirect("location", $rbasedir . url_maker($exfile['index'], $Settings['file_ext'], "act=view", $Settings['qstr'], $Settings['qsep'], $prexqstr['index'], $exqstr['index'], false));
    ob_clean();
    header("Content-Type: text/plain; charset=" . $Settings['charset']);
    $urlstatus = 302;
    gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
    session_write_close();
    die;
}
if ($_SESSION['UserGroup'] != $Settings['GuestGroup'] || $GroupInfo['CanEditProfile'] == "yes") {
    if ($_GET['act'] == null || $_GET['act'] == "notepad") {
        $_GET['act'] = "view";
    }
    if (!in_array($_GET['act'], $idbactcheck)) {
        $_GET['act'] = "view";
    }
    if ($_GET['act'] == "view" || $_GET['act'] == "signature" || $_GET['act'] == "avatar" || $_GET['act'] == "settings" || $_GET['act'] == "profile" || $_GET['act'] == "userinfo") {
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:profile.php

示例9: url_maker

    echo $numposts;
    ?>
 posts<br />
&nbsp;Our members have made a total of <?php 
    echo $numtopics;
    ?>
 topics<br />
&nbsp;We have <?php 
    echo $nummembers;
    ?>
 registered members<br />
&nbsp;Our newest member is <a<?php 
    echo $NewestMemTitle;
    ?>
 href="<?php 
    echo url_maker($exfile['member'], $Settings['file_ext'], "act=view&id=" . $NewestMem['ID'], $Settings['qstr'], $Settings['qsep'], $prexqstr['member'], $exqstr['member']);
    ?>
"><?php 
    echo $NewestMem['Name'];
    ?>
</a><?php 
    echo $NewestMemExtraIP;
    ?>
</div></td>
</tr>
<tr id="Stats7" class="TableStatsRow4">
<td class="TableStatsColumn4" colspan="2">&nbsp;</td>
</tr>
</table></div>
<div class="DivStats">&nbsp;</div>
<?php 
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:stats.php

示例10: sql_pre_query

        if ($_SESSION['UserGroup'] != $Settings['GuestGroup']) {
            $User1Name = $_SESSION['MemberName'];
        }
        $query = sql_pre_query("INSERT INTO " . $Settings['sqltable'] . "events (\"UserID\", \"GuestName\", \"EventName\", \"EventText\", \"TimeStamp\", \"TimeStampEnd\", \"EventMonth\", \"EventMonthEnd\", \"EventDay\", \"EventDayEnd\", \"EventYear\", \"EventYearEnd\", \"IP\") VALUES\n" . "(%i, '%s', '%s', '%s', %i, %i, %i, %i, %i, %i, %i, %i, '%s')", array($User1ID, $User1Name, $_POST['EventName'], $_POST['EventText'], $TimeSIn, $TimeSOut, $EventMonth, $EventMonthEnd, $EventDay, $EventDayEnd, $EventYear, $EventYearEnd, $User1IP));
        sql_query($query, $SQLStat);
        $eventid = sql_get_next_id($Settings['sqltable'], "events", $SQLStat);
        redirect("refresh", $rbasedir . url_maker($exfile['event'], $Settings['file_ext'], "act=event&id=" . $eventid, $Settings['qstr'], $Settings['qsep'], $prexqstr['event'], $exqstr['event'], FALSE), "3");
        ?>
<tr>
	<td><span class="TableMessage"><br />
	Event <?php 
        echo $_POST['EventName'];
        ?>
 was started.<br />
	Click <a href="<?php 
        echo url_maker($exfile['event'], $Settings['file_ext'], "act=event&id=" . $eventid, $Settings['qstr'], $Settings['qsep'], $prexqstr['event'], $exqstr['event']);
        ?>
">here</a> to continue to event.<br />&nbsp;
	</span><br /></td>
</tr>
<?php 
    }
    ?>
</table>
</td></tr>
<tr class="TableRow4">
<td class="TableColumn4">&nbsp;</td>
</tr>
</table></div>
<?php 
}
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:events.php

示例11: url_maker

<div class="DivMkTopics">&nbsp;</div>
<?php 
        }
        ?>
<table style="width: 100%;" class="Table2">
<tr>
 <td style="width: 30%; text-align: left;"><?php 
        echo $pstring;
        ?>
</td>
 <td style="width: 70%; text-align: right;">
 <?php 
        if ($PermissionInfo['CanMakeTopics'][$ForumID] == "yes" && $CanHaveTopics == "yes") {
            ?>
 <a href="<?php 
            echo url_maker($exfile['forum'], $Settings['file_ext'], "act=create&id=" . $ForumID, $Settings['qstr'], $Settings['qsep'], $prexqstr['forum'], $exqstr['forum']);
            ?>
"><?php 
            echo $ThemeSet['NewTopic'];
            ?>
</a>
 <?php 
        }
        ?>
</td>
</tr>
</table>
<?php 
        //List Page Number Code end
        if ($pstring != null || $_GET['act'] != "view" || $PermissionInfo['CanMakeTopics'][$ForumID] == "yes" && $CanHaveTopics == "yes") {
            /*<div class="DivPageLinks">&nbsp;</div>*/
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:topics.php

示例12: sql_pre_query

        if ($_SESSION['UserGroup'] != $Settings['GuestGroup']) {
            $User1Name = $_SESSION['MemberName'];
        }
        $User1IP = $_SERVER['REMOTE_ADDR'];
        $query = sql_pre_query("INSERT INTO \"" . $Settings['sqltable'] . "messenger\" (\"SenderID\", \"ReciverID\", \"GuestName\", \"MessageTitle\", \"MessageText\", \"Description\", \"DateSend\", \"Read\", \"IP\") VALUES \n(%i, %i, '%s', '%s', '%s', '%s', %i, %i, '%s')", array($_SESSION['UserID'], $SendMessageToID, $_SESSION['MemberName'], $_POST['MessageName'], $_POST['Message'], $_POST['MessageDesc'], $LastActive, 0, $User1IP));
        sql_query($query, $SQLStat);
        $messageid = sql_get_next_id($Settings['sqltable'], "messenger", $SQLStat);
        ?>
<tr>
	<td><span class="TableMessage"><br />
	Message sent to user <?php 
        echo $_POST['SendMessageTo'];
        ?>
.<br />
	Click <a href="<?php 
        echo url_maker($exfile['index'], $Settings['file_ext'], "act=view", $Settings['qstr'], $Settings['qsep'], $prexqstr['index'], $exqstr['index']);
        ?>
">here</a> to go back to index.<br />&nbsp;
	</span><br /></td>
</tr>
<?php 
    }
    ?>
</table>
</td></tr>
<tr class="TableRow4">
<td class="TableColumn4">&nbsp;</td>
</tr>
</table></div>
<?php 
}
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:messages.php

示例13: url_maker

                }
                if ($PinnedTopic > 0 && $PinnedTopic < 3) {
                    $PreTopic = "<span style=\"font-weight: bold;\">Pinned: </span>";
                }
                if ($PinnedTopic == 0) {
                    $PreTopic = null;
                }
                if ($OldForumID == $ForumID && $TForumID != $ForumID) {
                    $PreTopic = "<span>Moved: </span>";
                }
                ?>
<li><?php 
                echo $PreTopic;
                ?>
<a href="<?php 
                echo url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $TopicID . "&page=1", $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']);
                ?>
"><?php 
                echo $TopicName;
                ?>
</a> <span style="color: gray; font-size: 10px;">(<?php 
                echo $NumReply;
                ?>
 replies)</span></li>
<?php 
                ++$i;
            }
            ?>
</ul></div><div>&nbsp;</div>
<div style="font-size: 11px; font-weight: bold; padding: 10px; border: 1px solid gray;">
<?php 
开发者ID:BackupTheBerlios,项目名称:idb-svn,代码行数:31,代码来源:lowtopics.php

示例14: url_maker

    ?>
</Image>
<Url type="text/html" method="POST" template="<?php 
    echo $BoardURL . url_maker("search", $Settings['file_ext'], null, "search", "search");
    ?>
">
  <Param name="act" value="topics"/>
  <Param name="search" value="{searchTerms}"/>
  <Param name="type" value="wildcard"/>
  <Param name="page" value="1"/>
</Url>
<?php 
    echo $endtag;
    ?>
<moz:SearchForm><?php 
    echo $BoardURL . url_maker("search", $Settings['file_ext'], null, "search", "search");
    ?>
</moz:SearchForm>
</OpenSearchDescription>
<?php 
}
if ($_GET['debug'] == "true" || $_GET['debug'] == "on") {
    function execution_time($starttime)
    {
        list($uetime, $etime) = explode(" ", microtime());
        $endtime = $uetime + $etime;
        return bcsub($endtime, $starttime, 4);
    }
    echo "<!-- execution_time=\"" . execution_time($starttime) . "\" -->";
}
gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:rssfeed.php

示例15: url_maker

                 $pstring = $pstring . "<span class=\"pagelink\"><a href=\"" . url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $_GET['id'] . "&page=" . $Pagez[$pagei], $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']) . "\">" . $Pagez[$pagei] . "</a></span> ";
             }
             if ($pagei == 3) {
                 $pstring = $pstring . "<span class=\"pagecurrent\"><a href=\"" . url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $_GET['id'] . "&page=" . $Pagez[$pagei], $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']) . "\">" . $Pagez[$pagei] . "</a></span> ";
             }
         }
         if ($Pagez[$pagei] == "First") {
             $pstring = $pstring . "<span class=\"pagelinklast\"><a href=\"" . url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $_GET['id'] . "&page=1", $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']) . "\">&laquo;</a></span> ";
         }
         if ($Pagez[$pagei] == "Last") {
             $ptestnext = $pagenext + 1;
             $paget = $pagei - 1;
             $Pnext = $_GET['page'] + 1;
             $pstring = $pstring . "<span class=\"pagelink\"><a href=\"" . url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $_GET['id'] . "&page=" . $Pnext, $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']) . "\">&gt;</a></span> ";
             if ($ptestnext < $pagenum) {
                 $pstring = $pstring . "<span class=\"pagelinklast\"><a href=\"" . url_maker($exfile['topic'], $Settings['file_ext'], "act=lowview&id=" . $_GET['id'] . "&page=" . $pagenum, $Settings['qstr'], $Settings['qsep'], $prexqstr['topic'], $exqstr['topic']) . "\">&raquo;</a></span> ";
             }
         }
         ++$pagei;
     }
     $pstring = $pstring . "</div>";
 }
 //List Page Number Code end
 $CanMakeReply = "no";
 $CanMakeTopic = "no";
 if ($PermissionInfo['CanMakeTopics'][$TopicForumID] == "yes" && $CanHaveTopics == "yes") {
     $CanMakeTopic = "yes";
 }
 if ($TopicClosed == 0 && $PermissionInfo['CanMakeReplys'][$TopicForumID] == "yes") {
     $CanMakeReply = "yes";
 }
开发者ID:BackupTheBerlios,项目名称:idb,代码行数:31,代码来源:lowreplies.php


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