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


PHP myclass::auto_detect_path方法代码示例

本文整理汇总了PHP中myclass::auto_detect_path方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::auto_detect_path方法的具体用法?PHP myclass::auto_detect_path怎么用?PHP myclass::auto_detect_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


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

示例1: myclass

<?php

require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$mc = new myclass();
$mc->auto_detect_path();
$mc->save_current_page_visited();
// $is_cookie_set   =  $mc->set_cookie( 'mno' , 130 , time()+3600*24 );
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
$variables = array();
// $mno = 133;
$limit_start = 0;
$limit_end = 10;
// response from table fs_message and lits of your all messages
$variables['response'] = $mc->fs_message(array('type' => 'get-all-message-id', 'mno' => $mno, 'orderby' => 'order by date asc', 'limit_start' => $limit_start, 'limit_end' => $limit_end));
// $mc->print_r1( $variables['response'] );
//  your all messages len
$variables['len'] = count($variables['response']);
?>

<table border="1" cellpadding="0" cellspacing="0" >
	<?php 
$limit_start = 0;
$limit_end = 1;
for ($i = 0; $i < $variables['len']; $i++) {
    //  each msgno
    $variables['msgno'] = intval($variables['response'][$i]['msgno']);
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:chat-list.php

示例2: reply_print

function reply_print($plcno, $plcr_no, $allow_reply, $isMainReply = null, $mno = null, $isReplyIndented = null, $userprofilepicpath = '../../../')
{
    $mc = new myclass();
    // echo "plcr_no = $plcr_no <br>";
    $c = 0;
    $mc->auto_detect_path();
    if ($isMainReply == 'YES') {
        $replies = selectV1('*', 'fs_plcm_reply', array('plcno' => $plcno, 'operand1' => 'and', 'mno' => $mno), 'order by plcr_no desc', 'limit 1');
    } else {
        $replies = selectV1('*', 'fs_plcm_reply', array('plcr_no' => $plcr_no));
    }
    // print_r($replies);
    $rplcr_no = $replies[$c]['plcr_no'];
    $plcrno = $rplcr_no;
    $rplcno = $replies[$c]['plcno'];
    $replied_no = $replies[$c]['replied_no'];
    $rmno = $replies[$c]['mno'];
    $rplcr_message = $replies[$c]['plcr_message'];
    $rclen = strlen($rplcr_message);
    $rplcr_date = $replies[$c]['plcr_date'];
    $rmem_info = $mc->user($rmno);
    $rdformat = $mc->split_date('', '', '', $rplcr_date);
    $rmy_rate_look = my_trate_for_look($rmno, $_SESSION['plno']);
    $ryou_liked = check_if_user_liked($plcrno, $_SESSION['mno']);
    $ryou_disliked = check_if_user_disliked($plcrno, $_SESSION['mno']);
    $likeDislike_style = 'height:13px;cursor: pointer;';
    // if ( $rclen< 224) {
    // echo "if comment len lessthan $rclen ";
    $style = 'height: auto; border: 1px solid none;';
    // $cpadding = 'border: 1px solid red; height:20px;';
    // }
    // else {
    // echo "else comment len greater than $rclen ";
    // $style = 'height: auto; border: 1px solid  none; width:500px';
    // }
    // echo " i like =  $ryou_liked  | i disliked  $ryou_disliked <br>";
    // $you_liked =replyYouLikeThis($rplcno,$rmno);
    // echo "rno = $rplcr_no ";
    $ovarating = $mc->user_profile_percentage($rmno);
    $member_avatar = $mc->ppic_thumbnail . "/" . $rmno . ".jpg";
    // echo " member avatar $member_avatar";
    ?>

 

							<table border=0   id='replied_comment_table_<?php 
    echo $plcrno;
    ?>
' class='rcomment_container' style='display:block'> 
								<td  > 
									<table border=0   id='img' class='img' > 
										<td>	
										<?php 
    $mc->member_thumbnail_display($mc->ppic_thumbnail, $rmno, "{$userprofilepicpath}" . $mc->ppic_thumbnail);
    ?>
											<!-- <img id='rprofile_pic_<?php 
    echo $cno;
    ?>
'  src=" <?php 
    echo "{$member_avatar}";
    ?>
" title="<?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
"  onclick='look_comment_attr_clicked("<?php 
    echo "profile_" . $comment[$i][2];
    ?>
")' >  -->
										
										</td><tr>
										<td><span class='red_bold' id='percentage' title='<?php 
    echo $get_def_user_profile_percentage;
    ?>
' ><?php 
    echo "{$ovarating}% ";
    ?>
</span></td>
									</table>
									<div id='rcomment_body_container' class='rcomment_body_container'> 
										<div id='comment_header_container' > 
											<table  border=0   > 
												<td><span id='rfull_name_<?php 
    echo $rplcr_no;
    ?>
' class='blue_bold' title="<?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
"  ><?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
  </span> </td> <td></td><td></td>

												<td><span class='blue_bold' > ( </span> <span  id='gender' class='blue'  > <?php 
    echo strtoupper($rmem_info['sub_gen']);
    ?>
  RATED </span> 
													<span class='rating_view' >

														<?php 
    $rmy_rate_look = 1;
//.........这里部分代码省略.........
开发者ID:jesus143,项目名称:fs-dev,代码行数:101,代码来源:test_reply.php

示例3: myclass

  function tag_buble() {  

      // );  
                $mc = new myclass();
                  $mc->auto_detect_path(); 
              
            ?>
            <!-- <div id='tag-circle-tag-div' >  -->
            <body>
            <center> 
                <div id='tag-bubble-body' >  
                    <img id='tag-bubble-arrow-left-img' src="<?php  echo "$mc->genImgs/tag-bubble-arrow-left.png";  ?>"> 
                   <center> <span id='tag-bubble-title' >ABOUT ITEM NUMBER ONE</span>  </center>
                    <table id='tag-bubble-table' border='0' cellpadding='0' cellspacing='0' > 
                        <tr> 
                          <td >  <span  id='tag-name' >  COLOR:    </span> <span  id='tag-desc' > #BLACK   </span>  </td> <tr> 
                          <td > <span id='tag-name' >  BRAND:    </span> <span  id='tag-desc' > #YSL     </span>  </td> <tr>
                          <td > <span id='tag-name' >  GARMENT:  </span> <span  id='tag-desc' > #PAYCOAT </span>  </td> <tr>
                          <td > <span id='tag-name' >  MATERIAL: </span> <span  id='tag-desc' > #WALL    </span>  </td> <tr>
                          <td > <span id='tag-name' >  PATTERN:  </span> <span  id='tag-desc' > #PAIN    </span> 
                                <span id='tag-name' >  PRICE:    </span> <span  id='tag-desc' > #1400    </span>  </td>  <tr>
                          <td > <span id='tag-url' > <a href='www.google.com' target="_blank"> www.google.com </a> </span> </td>  
                    </table> 
                    <hr id='tag-bubble-body-hr' >  
                     <a href='www.google.com' target="_blank" id='visit-store' > <img src="<?php echo "$mc->button/visit-store.png"; ?>">  </a> 
                </div>
            </center>
            <br>
            <center> 
                <div id='tag-bubble-body' >  
                    <img id='tag-bubble-arrow-right-img' src="<?php  echo "$mc->genImgs/tag-bubble-arrow-right.png";  ?>"> 
                   <center> <span id='tag-bubble-title' >ABOUT ITEM NUMBER ONE</span>  </center>
                    <table id='tag-bubble-table' border='0' cellpadding='0' cellspacing='0' > 
                        <tr> 
                          <td >  <span  id='tag-name' >  COLOR:    </span> <span  id='tag-desc' > #BLACK   </span>  </td> <tr> 
                          <td > <span id='tag-name' >  BRAND:    </span> <span  id='tag-desc' > #YSL     </span>  </td> <tr>
                          <td > <span id='tag-name' >  GARMENT:  </span> <span  id='tag-desc' > #PAYCOAT </span>  </td> <tr>
                          <td > <span id='tag-name' >  MATERIAL: </span> <span  id='tag-desc' > #WALL    </span>  </td> <tr>
                          <td > <span id='tag-name' >  PATTERN:  </span> <span  id='tag-desc' > #PAIN    </span> 
                                <span id='tag-name' >  PRICE:    </span> <span  id='tag-desc' > #1400    </span>  </td>  <tr>
                          <td > <span id='tag-url' > <a href='www.google.com' target="_blank"> www.google.com </a> </span> </td>  
                    </table> 
                    <hr id='tag-bubble-body-hr' >  
                     <a href='www.google.com' target="_blank" id='visit-store' > <img src="<?php echo "$mc->button/visit-store.png"; ?>">  </a> 
                </div>
            </center>
            <!-- </div> --> 
            <style type="text/css">  
                body { 
                    background-color: #Ccc;
                }
                #tag-bubble-body { box-shadow: 0 4px 10px #000;  background-color: #fff;  padding-top: 10px; padding-left:15px; padding-bottom: 10px; padding-right: 15px; height: 170px; width: 280px; border: 1px solid #ccc; border-radius: 5px;  }
                    #tag-bubble-body img { cursor: pointer;  }
                    #tag-bubble-title {  font-weight: bold;font-size: 14px;text-decoration: underline;font-family: "arial"; color: #ac1c22; }
                    #tag-bubble-table { position: absolute;  margin-top: 10px; float: left; font-size: 12px;  }
                    #tag-name {  color: #ccc; font-family: "arial";font-weight: bold; }
                    #tag-desc { color: #ac1c22; font-family: "arial"; font-weight: bold;  }  
                    #tag-url a  { text-decoration: none; color: #1a386a;  }
                    #tag-bubble-body-hr{  border: 1x solid red;   width: 99%; float: left; margin-top: 105px; /*position: absolute;*/ } 
                    #visit-store img { margin-top: 7px; width: 100%;   }
                    #tag-bubble-arrow-left-img { position: absolute; margin-left: -185px; margin-top: 10px;   }
                    #tag-bubble-arrow-right-img { position: absolute;  margin-top: 10px; margin-left: 150px;   }

            </style>



            </body> 
<?php } ?> 
开发者ID:jesus143,项目名称:fs-dev,代码行数:69,代码来源:testPage.php

示例4: main

function main()
{
    $mc = new myclass();
    $mc->date_difference();
    $plcno = !empty($_GET['plcno']) ? intval($_GET["plcno"]) : "";
    $rcomment = !empty($_GET['rcomment']) ? $_GET['rcomment'] : "";
    $plcrno = !empty($_GET['plcrno']) ? intval($_GET['plcrno']) : 0;
    $mno = intval($_SESSION['mno']);
    $status = $_GET['status'];
    $date_time = $mc->date_time;
    $flag_note = !empty($_GET['flag_note']) ? $_GET['flag_note'] : 0;
    $cboxes = !empty($_GET['cboxes']) ? $_GET['cboxes'] : 0;
    $replyEdited = !empty($_GET['replyEdited']) ? $_GET['replyEdited'] : 0;
    $replied_no = !empty($_GET['replied_no']) ? $_GET['replied_no'] : 0;
    $isReplyIndented = !empty($_GET['isReplyIndented']) ? $_GET['isReplyIndented'] : 0;
    $mc->auto_detect_path();
    // echo " status = [$status]  replied_no = $replied_no <br> ";
    if ($status == 'replySave') {
        save_reply_comment($status, $plcno, $replied_no, $mno, $rcomment, $date_time);
        $posted_comment = false;
        // require ('replyDesign.php');
        require '../test_reply.php';
        // echo "result of the output";
        reply_print($plcno, 0, true, 'YES', $mno, $isReplyIndented, '../../../../');
        // echo "reply design print here !";
    } else {
        if ($status == 'replyLike') {
            replyLike($mno, $plcrno);
        } else {
            if ($status == 'replyDisLike') {
                replyDisLike($mno, $plcrno);
            } else {
                if ($status == 'check_flag') {
                    // echo "chekcing flagged ";
                    // echo "$flag_note $cboxes";
                    check_flagged($plcrno);
                    // echo "1";
                } else {
                    if ($status == 'replySaveFlag') {
                        // echo " 	save flag reply  note = $flag_note  check box options = $cboxes <br>";
                        save_reply_flagged($plcrno, $mno, tcleaner($flag_note), $cboxes, $date_time);
                    } else {
                        if ($status == 'replyDelete') {
                            // echo "delete reply   plcrno = $plcrno ";
                            $del_array = $mc->get_multiple_reply($plcrno);
                            // for ($i=0; $i < count($del_array) ; $i++)
                            // {
                            // 	 // replyDelete  ($del_array[$i]);
                            // 	echo " plcrno to del =  ".$del_array[$i].'<br>';
                            // }
                        } else {
                            if ($status == 'replyEdit') {
                                // echo " edit reply plcrno = $plcrno edited reply = $replyEdited <br> ";
                                replyEdit($plcrno, $replyEdited);
                            }
                        }
                    }
                }
            }
        }
    }
}
开发者ID:jesus143,项目名称:fs-dev,代码行数:62,代码来源:reply.php


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