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


PHP comment函数代码示例

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


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

示例1: debug

function debug($str)
{
    if (DEBUG) {
        if (function_exists('comment')) {
            print comment($str) . "\n";
        } else {
            print "Debug: {$str}\n";
        }
    }
}
开发者ID:nbtscommunity,项目名称:phpfnlib,代码行数:10,代码来源:debug.php

示例2: end_email

function end_email()
{
    echo '</td>
		          </tr>
		        </table>
		      </center>
		    </td>
		  </tr>
		</table>';
    comment('End email content');
}
开发者ID:Paul-Hebert,项目名称:Blurbb-Email-Builder,代码行数:11,代码来源:functions.php

示例3: change_pass

function change_pass()
{
    global $txp_user;
    $message = '';
    $themail = fetch('email', 'txp_users', 'name', $txp_user);
    if (!empty($_POST["new_pass"])) {
        $NewPass = $_POST["new_pass"];
        $rs = safe_update("txp_users", "pass = password(lower('{$NewPass}'))", "name='{$txp_user}'");
        if ($rs) {
            $message .= gTxt('password_changed');
            if ($_POST['mailpassword'] == 1) {
                send_new_password($NewPass, $themail, $txp_user);
                $message .= sp . gTxt('and_mailed_to') . sp . $themail;
            }
            $message .= ".";
        } else {
            echo comment(mysql_error());
        }
        admin($message);
    }
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:21,代码来源:txp_admin.php

示例4: change_pass

function change_pass()
{
    global $txp_user;
    extract(psa(array('new_pass', 'mail_password')));
    if (empty($new_pass)) {
        author_list(array(gTxt('password_required'), E_ERROR));
        return;
    }
    $hash = doSlash(txp_hash_password($new_pass));
    $rs = safe_update('txp_users', "pass = '{$hash}'", "name = '" . doSlash($txp_user) . "'");
    if ($rs) {
        $message = gTxt('password_changed');
        if ($mail_password) {
            $email = fetch('email', 'txp_users', 'name', $txp_user);
            send_new_password($new_pass, $email, $txp_user);
            $message .= sp . gTxt('and_mailed_to') . sp . $email;
        } else {
            echo comment(mysql_error());
        }
        $message .= '.';
        author_list($message);
    }
}
开发者ID:balcides,项目名称:Cathartic_server,代码行数:23,代码来源:txp_admin.php

示例5: comment

  </a>
  <div class="media-body">
    <h6 class="media-heading"><b>' . $name . '  </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6>
    ' . $kcom . '<br/><small>' . $delink . '</small>
  </div>
</div>';
    }
    $c = $c + 1;
}
$se = 'coiitbhu';
echo '<a href=../reqc.php?ud=' . $se . '><font color="#3B5998"><small>View all</small></font></a>';
?>
  </div>
  <div class="panel-footer">
       <form class="form-horizontal" role="form" method="post" action="coiiith.php?clg=<?php 
echo comment('Indian Institute of Technology(IIT) BHU ,VARANASI');
?>
 &str=<?php 
echo stream('Indian Institute of Technology(IIT) BHU ,VARANASI');
?>
">
              <h4>Comment to ask or know about college <small>  @ feel free </small></h4>
               <div class="form-group" style="padding:14px;">
                <textarea class="form-control" placeholder="@ feel free" name="coiitk"></textarea>
              </div>
              
               <button class="btn btn-success pull-right" type="submit" name="subciitk" value="comment">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul>
            </form>
  </div>
</div></div>
</div>
开发者ID:abhilash-tango,项目名称:collegeconnect,代码行数:31,代码来源:iitbhu.php

示例6: comment

  </a>
  <div class="media-body">
    <h6 class="media-heading"><b>' . $name . '  </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6>
    ' . $kcom . '<br/><small>' . $delink . '</small>
  </div>
</div>';
    }
    $c = $c + 1;
}
$se = 'comamcd';
echo '<a href=../reqc.php?ud=' . $se . '><font color="#3B5998"><small>View all</small></font></a>';
?>
  </div>
  <div class="panel-footer">
       <form class="form-horizontal" role="form" method="post" action="coaiimsd.php?clg=<?php 
echo comment('Maulana Azad Medical College(MAMC) ,Delhi');
?>
 &str=<?php 
echo stream('Maulana Azad Medical College(MAMC) ,Delhi');
?>
">
              <h4>Comment to ask or know about college <small>  @ feel free </small></h4>
               <div class="form-group" style="padding:14px;">
                <textarea class="form-control" placeholder="@ feel free" name="coiitk"></textarea>
              </div>
              
               <button class="btn btn-success pull-right" type="submit" name="subciitk" value="comment">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul>
            </form>
  </div>
</div></div>
</div>
开发者ID:abhilash-tango,项目名称:collegeconnect,代码行数:31,代码来源:mamcd.php

示例7: _hktsignupdata

     _hktsignupdata($aditi);
     break;
 case "login":
     _hklogindata($aditi);
     break;
 case "mobile_login":
     _hkmobilelogindata();
     break;
 case "logingrefresh":
     _hkloginrefreshdata();
     break;
 case "profile_update":
     _hkprofileupdatedata();
     break;
 case "comment":
     comment($aditi);
     break;
 case "rld":
     reload($aditi);
     break;
 case "statuspost":
     _hkstatuspostdata($aditi);
     break;
 case "update":
     _hkdesktopupdatedatat($aditi);
     break;
 case "current_mobile_update":
     _hkcurrentmobileupdatedata($aditi);
     break;
 case "mobile_update":
     _hkmobileupdatedata($aditi);
开发者ID:haikentcode,项目名称:mycollegeday,代码行数:31,代码来源:mycollegephp.php

示例8: comment

  </a>
  <div class="media-body">
    <h6 class="media-heading"><b>' . $name . '  </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6>
    ' . $kcom . '<br/><small>' . $delink . '</small>
  </div>
</div>';
    }
    $c = $c + 1;
}
$se = 'cokmcm';
echo '<a href=../reqc.php?ud=' . $se . '><font color="#3B5998"><small>View all</small></font></a>';
?>
  </div>
  <div class="panel-footer">
       <form class="form-horizontal" role="form" method="post" action="cocmcv.php?clg=<?php 
echo comment('Kasturba Medical College ,Manipal');
?>
 &str=<?php 
echo stream('Kasturba Medical College ,Manipal');
?>
">
              <h4>Comment to ask or know about college <small>  @ feel free </small></h4>
               <div class="form-group" style="padding:14px;">
                <textarea class="form-control" placeholder="@ feel free" name="coiitk"></textarea>
              </div>
              
               <button class="btn btn-success pull-right" type="submit" name="subciitk" value="comment">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul>
            </form>
  </div>
</div></div>
</div>
开发者ID:abhilash-tango,项目名称:collegeconnect,代码行数:31,代码来源:kmcm.php

示例9: article

$a = article(array('fr'));
$t->is(resolver($a, 'foo')->hasTranslation($a, 'en'), false, '->hasTranslation() checks if record has not given translation');
$t->is(resolver($a, 'foo')->hasTranslation($a, 'fr'), true, '->hasTranslation() checks if record has not given translation');
// ->computeUris()
$t->diag('->computeUris()');
$t->is(resolver(article(array('en')), 'foo?slug=%slug%')->computeUris(), array('foo?slug=en-slug'), '->computeUris() computes i18n cache uri including field value in default language');
$t->is(resolver(article(array('fr')), 'foo?slug=%slug%')->computeUris(), array('foo?slug=fr-slug'), '->computeUris() computes i18n cache uri including field value in another language');
$t->is(resolver(article(array('en')), 'foo?slug=%slug%&author=%Author.name%')->computeUris(), array('foo?slug=en-slug&author=henry'), '->computeUris() computes cache uri including several fields from relations');
$t->is(resolver(article(array('en', 'fr')), 'foo?slug=%slug%')->computeUris(), array('foo?slug=en-slug', 'foo?slug=fr-slug'), '->computeUris() computes i18n cache uris including field value with multiple language');
$t->is(resolver(article(array('en', 'fr')), 'foo?sf_culture=en&slug=%slug%')->computeUris(), array('foo?sf_culture=en&slug=en-slug'), '->computeUris() computes i18n cache uris when sf_culture is set to default language');
$t->is(resolver(article(array('en', 'fr')), 'foo?sf_culture=fr&slug=%slug%')->computeUris(), array('foo?sf_culture=fr&slug=fr-slug'), '->computeUris() computes i18n cache uris when sf_culture is set to another language');
$t->is(resolver(article(array('en', 'fr')), 'foo?sf_culture=*&slug=%slug%')->computeUris(), array(0 => 'foo?sf_culture=*&slug=en-slug', 1 => 'foo?sf_culture=*&slug=fr-slug'), '->computeUris() computes i18n cache uris when sf_culture is set to any language');
$t->is(resolver(article(array('en', 'fr')), 'foo?slug=%slug%&author=%Author.name%')->computeUris(), array(0 => 'foo?slug=en-slug&author=henry', 1 => 'foo?slug=fr-slug&author=henry'), '->computeUris() computes cache uri including several fields from relations');
$t->is(resolver(comment(array('en')), 'foo?slug=%Article.slug%')->computeUris(), array('foo?slug=en-slug'), '->computeUris() computes i18n cache uri with a foreign relation value in default language');
$t->is(resolver(comment(array('fr')), 'foo?slug=%Article.slug%')->computeUris(), array('foo?slug=fr-slug'), '->computeUris() computes i18n cache uri with a foreign relation value in another language');
$t->is(resolver(comment(array('en', 'fr')), 'foo?slug=%Article.slug%')->computeUris(), array('foo?slug=en-slug', 'foo?slug=fr-slug'), '->computeUris() computes i18n cache uri with a foreign relation value in multiple language');
// Test Helpers
function article(array $langs = array())
{
    $article = new Article();
    $article->setAuthor(author('henry'));
    foreach ($langs as $lang) {
        $article->Translation[$lang]->fromArray(array('title' => 'Title in ' . $lang, 'slug' => $lang . '-slug'));
    }
    return $article;
}
function comment(array $articleLangs = array())
{
    $comment = new Comment();
    $comment->setAuthor(author('niko'));
    $comment->content = 'Booh.';
开发者ID:n1k0,项目名称:akDoctrineTemplateCacheInvaliderPlugin,代码行数:31,代码来源:akDoctrineCacheUriResolverTest.php

示例10: textpattern

function textpattern()
{
    global $pretext, $microstart, $prefs, $qcount, $production_status, $txptrace;
    $segment = gps('segment');
    extract($pretext);
    $html = safe_field('user_html', 'txp_page', "name='{$page}'");
    if (!$html) {
        exit(gTxt('unknown_section') . ' ' . $s);
    }
    $html = parse($html);
    $html = parse($html);
    // the function so nice, he ran it twice
    $html = !$segment ? $html : segmentPage($html);
    $html = $prefs['allow_page_php_scripting'] ? evalString($html) : $html;
    header("Content-type: text/html; charset=utf-8");
    echo $html;
    if (in_array($production_status, array('debug', 'testing'))) {
        $microdiff = getmicrotime() - $microstart;
        echo n, comment('Runtime: ' . substr($microdiff, 0, 6));
        echo n, comment('Queries: ' . $qcount);
        echo maxMemUsage('end of textpattern()', 1);
        if (!empty($txptrace) and is_array($txptrace)) {
            echo n, comment('txp tag trace: ' . n . join(n, $txptrace) . n);
        }
    }
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:26,代码来源:publish.php

示例11: define

        define('TXP_UPDATE', 1);
        include txpath . '/update/_update.php';
    }
    load_elements($event);
    register_element_tabs();
    if (!empty($admin_side_plugins) and gps('event') != 'plugin') {
        load_plugins(1);
    }
    include txpath . '/lib/txplib_head.php';
    // ugly hack, for the people that don't update their admin_config.php
    // Get rid of this when we completely remove admin_config and move privs to db
    if ($event == 'list') {
        require_privs('article');
    } else {
        require_privs($event);
    }
    callback_event($event, $step, 1);
    // let elements override older /include/txp_foo.php admin pages
    if (!controller_name($event)) {
        $inc = txpath . '/include/txp_' . $event . '.php';
        if (is_readable($inc)) {
            include $inc;
        }
    }
    callback_event($event, $step, 0);
    $microdiff = getmicrotime() - $microstart;
    echo n . comment(gTxt('runtime') . ': ' . substr($microdiff, 0, 6));
    end_page();
} else {
    txp_die('DB-Connect was succesful, but the textpattern-table was not found.', '503 Service Unavailable');
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:31,代码来源:index.php

示例12: comment

  </a>
  <div class="media-body">
    <h6 class="media-heading"><b>' . $name . '  </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6>
    ' . $kcom . '<br/><small>' . $delink . '</small>
  </div>
</div>';
    }
    $c = $c + 1;
}
$se = 'cofold';
echo '<a href=../reqc.php?ud=' . $se . '><font color="#3B5998"><small>View all</small></font></a>';
?>
  </div>
  <div class="panel-footer">
       <form class="form-horizontal" role="form" method="post" action="conalsar.php?clg=<?php 
echo comment('Faculty Of Law DU ,Delhi');
?>
 &str=<?php 
echo stream('Faculty Of Law DU ,Delhi');
?>
">
              <h4>Comment to ask or know about college <small>  @ feel free </small></h4>
               <div class="form-group" style="padding:14px;">
                <textarea class="form-control" placeholder="@ feel free" name="coiitk"></textarea>
              </div>
              
               <button class="btn btn-success pull-right" type="submit" name="subciitk" value="comment">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul>
            </form>
  </div>
</div></div>
</div>
开发者ID:abhilash-tango,项目名称:collegeconnect,代码行数:31,代码来源:fold.php

示例13: load_plugins

        load_plugins(1);
    }
    // plugins may have altered privilege settings
    if (!defined('TXP_UPDATE_DONE') && !gps('event') && !empty($default_event) && has_privs($default_event)) {
        $event = $default_event;
    }
    // init private theme
    $theme = theme::init();
    include txpath . '/lib/txplib_head.php';
    // ugly hack, for the people that don't update their admin_config.php
    // Get rid of this when we completely remove admin_config and move privs to db
    if ($event == 'list') {
        require_privs('article');
    } else {
        require_privs($event);
    }
    callback_event($event, $step, 1);
    $inc = txpath . '/include/txp_' . $event . '.php';
    if (is_readable($inc)) {
        include $inc;
    }
    callback_event($event, $step, 0);
    $microdiff = getmicrotime() - $microstart;
    end_page();
    echo n . comment(gTxt('runtime') . ': ' . substr($microdiff, 0, 6));
    if (is_callable('memory_get_peak_usage')) {
        echo n . comment(sprintf('Memory: %sKb', ceil(memory_get_peak_usage(true) / 1024)));
    }
} else {
    txp_die('DB-Connect was successful, but the textpattern-table was not found.', '503 Service Unavailable');
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:31,代码来源:index.php

示例14: hyperlink

 <?php 
    echo hyperlink("/", "Collins Quarter site &rarr;");
    ?>
 <?php 
    echo hyperlink("/admin/logout/", "Log Out");
    ?>
</div>
    <?php 
}
?>
      <br class="hurdle" />
    </div>
    
    
    <?php 
echo comment("Error list:");
?>
    <?php 
echo $backend->list_notices();
?>
    
    <div id="content">
    <?php 
echo $page_content;
?>
    </div>
    
    <div id="footer">
      Built on Seamonster by <a href="http://www.barkingsparrows.com">Barking Sparrows</a>.
    </div>
    
开发者ID:jmac,项目名称:seamonster,代码行数:30,代码来源:index.php

示例15: comment

  </a>
  <div class="media-body">
    <h6 class="media-heading"><b>' . $name . '  </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6>
    ' . $kcom . '<br/><small>' . $delink . '</small>
  </div>
</div>';
    }
    $c = $c + 1;
}
$se = 'coiitg';
echo '<a href=../reqc.php?ud=' . $se . '><font color="#3B5998"><small>View all</small></font></a>';
?>
  </div>
  <div class="panel-footer">
       <form class="form-horizontal" role="form" method="post" action="coiiith.php?clg=<?php 
echo comment('Indian Institute of Technology(IIT) Guwahati');
?>
&str=<?php 
echo stream('Indian Institute of Technology(IIT) Guwahati');
?>
">
              <h4>Comment to ask or know about college <small>  @ feel free </small></h4>
               <div class="form-group" style="padding:14px;">
                <textarea class="form-control" placeholder="@ feel free" name="coiitk"></textarea>
              </div>
              
               <button class="btn btn-success pull-right" type="submit" name="subciitk" value="comment">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul>
            </form>
  </div>
</div></div>
</div>
开发者ID:abhilash-tango,项目名称:collegeconnect,代码行数:31,代码来源:iitg.php


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