<?

if($_SERVER['REQUEST_METHOD'] == "POST"){
if($_POST['submit'] == "GO"){
 "this is post method";
  $username    =   $_POST['username'];
  $passwd          =   $_POST['passwd'];
  $redirectPage    =   $_POST['redirectPage'];
  if(($username != "") || ($passwd != "")){
 $err_msg = login();
  }else{
    $err_msg= "Please enter login/password.";
  }
}
}
else if($_SERVER['REQUEST_METHOD'] == "GET"){

  $blogtitle   = "";
  $feed        = "";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang="en-
US">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<script type="text/javascript" language="javascript" src="<?=$retpath;?
>/includes/functions.js"></script>
<link rel="stylesheet" href="includes/adda-index.css" type="text/css" /
>
<link rel="stylesheet" href="<?=$retpath;?>/includes/adda3.css"
type="text/css" media="screen" />
<style type="text/css" media="screen">@import "/ib/jw_ts/
tabs_slides.css";</style>
<style type="text/css" media="print">.jwts_tabbernav{display:none;}</
style>
<style type="text/css" media="screen">@import "/ib/jw_ts/
tabs_slides.css";</style>
<style type="text/css" media="print">.jwts_tabbernav{display:none;}</
style>
<!-- <script type="text/javascript">var jwts_slideSpeed=30; var
jwts_timer=10;</script>
<script type="text/javascript" src="<?=$retpath;?>/jw_ts/
tabs_slides_comp.js"></script>
<script type="text/javascript" src="<?=$retpath;?>/jw_ts/
tabs_slides_def_loader.js"></script>
 -->
<? require("simplepie/simplepie.inc");?>
<script type="text/javascript" src="<?=$retpath;?>/mootools-1.2.3.1-
more.js"></script>
<script type="text/javascript" src="<?=$retpath;?>/mootools-1.2.3-
core.js"></script>
<script type="text/javascript" src="<?=$retpath;?>/mootools.svn.js"></
script>
<style type="text/css">
body{font-family:Arial, Helvetica, sans-serif; font-size:13px;}
/* -------------------------------------------------------- */
/* BUTTON                                                                       
                                */
.button{
        background:url(img/button.png)  -32px right no-repeat;
        color:#FFFFFF;
        clear:both;
        display:block;
        float:left;
        font-size:13px;
        font-weight:bold;
        height:31px;
        line-height:31px;
        width:auto;
        margin-right:30px;
}
        a.button {
                text-decoration:none;
        }
        .button span {
                background:url(img/button.png) left top no-repeat;
                display:block;
                height:31px;
                line-height:31px;
                padding-left:10px;
                padding-right:8px;
                margin-right:20px;
        }
/* -------------------------------------------------------- */
/* MENU                                                                         
                                */
.v-menu{
        border:solid 1px #7F9FBF;
        width:200px;
        clear:both;
}
.hidden{display:none;}



        ul.v-menu, .v-menu li{
                padding:0;
                margin:0;
                list-style:none;
        }
        ul.v-menu{
                clear:both;
                margin-top:6px;
                padding:6px 10px;
        }
                .v-menu li a{
                        color:#555555;
                        font-weight:bold;
                        display:block;
                        border-top:solid 1px #DEDEDE;
                        padding:4px;
                        text-decoration:none;
                }
                .v-menu li a:hover{
                        color:#999999;
                }

</style>


<!-- Mootools -->
<script type="text/javascript">
                window.addEvent('domready', function(){
                        //-vertical
var mySlide = new Fx.Slide('v-menu2').hide();
$('v-menu2').removeClass('hidden');

        $('toggle').addEvent('click', function(e){
                e = new Event(e);
                mySlide.toggle();
                e.stop();
        });
});
</script>
</head>
<?if(!$userid){?>
<body id="free">
<?}else{?>
<body>
<?}?>
<div id="wrapper">
<div id="header">
<div id="logo">


</div>
<div id="topImage">
<img src="<?=$retpath;?>/images/who_ru_reading_img.jpg" width="200"
height="30" alt="who are you reading today?" />
</div>
<div id="<? if(!$userid){echo "navTop";}else{echo "topNav";}?>">

<? include("templates/login2.tpl"); ?>

<ul><?if(!$userid){ ?>
<?=$navlogin;?>

<li><a href="/register" title="Register" <?=classkey("Register",
$classtitle);?> >Register</a></li>


<?}else{?>
<?=$navlogin;?>
<li><a href="/myaccount" title="My Account" <?=classkey("Myaccount",
$classtitle);?> >My Account</a></li>
<?}?>
<li><a href="/tags" title="Tags" <?=classkey("Tags",$classtitle);?>
>Tags</a></li>
<li><a href="<?=$retpath;?>/" title="Home" <?=classkey("Home",
$classtitle);?> >Home</a></li>
</ul>
</div>

</div><!--  Header ends -->
<?php
$feed = new SimplePie();
$feed->set_feed_url('admin/bannertag.xml');
$feed->init();
$feed->handle_content_type();
if ($feed->data) {
  $max = $feed->get_item_quantity(4);
  for($x = 0; $x < $max; $x++) {
     $item = $feed->get_item($x);
$bannertag[$x]=$item->get_title();
} }
$tagname=$bannertag[rand(0, 3)];
$top = "SELECT b.id, b.title, b.url,b.blogpath,a.username FROM
".tbl_bloginfo." b,".tbl_author." a WHERE (b.author = a.id) AND
b.approve = 'Y' AND b.keywords like '%,$tagname,%' ORDER BY
b.title,b.updatedon";
$result = $op->runsql($top);
$total = mysql_num_rows($result);

 if(mysql_num_rows($result) > 0){
$y=0;
      while($row=$op->select($result)){

  $ids[$y]=$row['blogpath'];
$img[$y]=$row['url'];
$bloglink[$y]=$row['title'];
$y++;
      }
 $imagepath = array();
 $pos =array();

srand(time());
$arr = array();
while ( count($arr) < $total ) {
$x =mt_rand(1,$total);

$random = (rand()%$total);
if ( !in_array($random,$arr) ) { $arr[] = $random; }
}
 for($i=0;$i<3;$i++){
 if(preg_match("/http:\/\//", $img[$arr[$i]])){
         $img[$arr[$i]] = str_replace("http://";, "", $img[$arr[$i]]);
        }
        $pos[$i] = $img[$arr[$i]];
     if(preg_match("[\/|-]", $img[$arr[$i]])){
            $replace = array("/","-");
            $imagepath[$i] = $retpath."/snapshots/large/".str_replace
($replace, "_", $img[$arr[$i]])."_s.jpg";
      }else{
        $imagepath[$i] = $retpath."/snapshots/large/".$img[$arr
[$i]]."_s.jpg";
    }
 }
   }else{
    echo "No result";
    }
?>
<? include("templates/banner.tpl"); ?>
<div id="main-content">
<div class="left">

<div class="recentnessText">
<span><img src="images/icon_recentness.gif" width="20" height="16"
alt="Icon - Recentness" /></span><h2>Recentness</h2></div>

<div id="blogSnaps">
<div class="snap1"><a href="/blogs/<?=$ids[$arr[0]];?>/" title="<?=$img
[$arr[0]];?>"><img src="<?=$imagepath[0];?>" width="143" height="107"
border="0" alt="<?=$img[$arr[0]];?>" /></a></div>
<div class="snap1"><a href="/blogs/<?=$ids[$arr[1]];?>/" title="<?=$img
[$arr[1]];?>"><img src="<?=$imagepath[1];?>" width="143" height="107"
border="0" alt="<?=$img[$arr[1]];?>" /></a></div>
<div class="snap1"><a href="/blogs/<?=$ids[$arr[2]];?>/" title="<?=$img
[$arr[2]];?>"><img src="<?=$imagepath[2];?>" width="143" height="107"
border="0" alt="<?=$img[$arr[2]];?>" /></a></div>
</div>

<div id="latestEntries">
<div><span><img src="images/icon_read_latest_entries.gif" width="20"
height="16" alt="Latest Entries from Indian Blogosphere" /></
span><h2>Read Latest Entries</h2></div>
<p class="latestText">updated every hour</p>
<?
$feed = new SimplePie();
$feed->set_feed_url($file);
$feed->init();
$feed->handle_content_type();
if ($feed->data) {

?>
<?php

  $max = $feed->get_item_quantity(5);

  for($x = 0; $x < $max; $x++) {

     $item = $feed->get_item($x);
        $icons = explode(',', $item->get_id());
?>
<div class="readEntries">
<a href="/profile/<?=$blog->spacereplace($icons[1]);?>/"><img src="<?=
$icons[0];?>" width="16" height="16" alt="x" /></a>
<a href="<?php echo preg_replace('/http:/','',$item->get_permalink
()); ?>&amp;usrid=<?=$blog->spacereplace($icons[1]);?>"
target="_blank"><?php echo substr(htmlspecialchars_decode($item-
>get_title()), 0, 22),"\t...\t"; ?></a>
<? if($author = $item->get_author()) {?>
<span><a href="/profile/<?=$icons[1];?>/" title="<?=$icons[1];?>">- <?
=html_entity_decode(ucwords(strtolower($author->get_name())));?></a></
span>
<?}    ?>
</div>
<?php } } ?>
<div id="popularTags"><b><a href="showallfeeds_1.php">View all
Entries</a></b></div>
</div>


<div id="recentUsers">
<div class="top"><span><img src="images/recent_users_icon.gif"
width="20" height="16" alt="Recent Users" /></span><h2>BlogAdda Users</
h2></div>

<div class="avatar">
<? $imagarr=array();
 $i=0;
     $sql = $op->runsql("(SELECT username,avatar FROM ".tbl_author."
WHERE avatar LIKE '%images/avatar/face%.gif,83,83' ORDER BY rand()
LIMIT 6) union (SELECT username,avatar FROM ".tbl_author."  WHERE
avatar NOT LIKE '%images/avatar/face%.gif,83,83' ORDER BY rand() LIMIT
10) ORDER BY rand() LIMIT 16");
         if(mysql_num_rows($sql) > 0){
         while($row = $op->select($sql)){
                 $imagearr = explode(",",$row['avatar']);
                $imagearr[0]= preg_replace("/\/avatar\//","/small/", $imagearr
[0]);
          ?>
          <a href='/profile/<?=$row['username'];?>/' title="<?=$row
['username']?>"><img src="<?=$retpath;?>/<?=$imagearr[0];?>"
width="40" height="40" alt="<?=$row['username']?>"/></a>
                <? echo"\t";
                 $i++;
         }

        }
?>
</div>
<div class="last">&nbsp;</div>
</div>



</div> <!-- left ends -->

<div class="right">
<?if(!$userid){ ?>
<div id="userLogin">
<h3><span>User Login</span></h3>
<? if($err_msg!=""){
?>
<p><?=$err_msg;?></p>

<?}  ?>


<?}else{
$uid=$userid;
$blogdata    = $blog->personaldata();
?>
<div id='afterLogin'><h3><span><?=ucfirst($blogdata->username); ?></
span></h3><p>Welcome to blogadda.</p><p>Explore the <a href='/tags'
title='Tags'>Tags</a> to discover a blogs of your interest.</p></div>
<?}?>




</body>
</html>

On Aug 20, 4:40 pm, cbolson <[email protected]> wrote:
> Well, I really don't know what else to try.
> I have uploaded my test to my server and tested in IE6 (via
> browsercam.com) and it works correctly in IE6
> My test using display 
> method:http://www.cbolson.com/sandbox/mootools/slider/slider_test_1.html
> My test using removeClass method: My test using display 
> method:http://www.cbolson.com/sandbox/mootools/slider/slider_test_2.html
>
> As I say, both of these method work fine in IE6 via browsercam.
>
> I suggest that you upload your test to a server so that we can take a
> closer look at what is causing your problem.
>
> Chris
>
> On Aug 20, 12:54 pm, Deepali <[email protected]> wrote:
>
> > You are right i am using IE6.
> > working fine with mozilla. even its no showing textboes before the
> > page is getting load(as you said remove the last changes that i have
> > done)
>
> > not working woth IE6?
> > what to do?please tell me
>
> > On Aug 20, 3:26 pm, cbolson <[email protected]> wrote:
>
> > > I presume you are reffering to IE6  - I don't have a copy of that so I
> > > can't test it, but it works fine in IE8
>
> > > I suspect the problem is that IE6 doesn't like the "block"
> > > definitiion.
>
> > > Lets try an alternative solution.....
>
> > > 1. Remove the last changes you made.
>
> > > 2. Add this new class:
> > > .hidden{display:none;}
>
> > > 3. Add this class to your v-menu element like this:
> > > <ul id="v-menu2" class="v-menu hidden">
>
> > > 4. Add the following line to the mootools javascript  to now remove
> > > this class:
> > > $('v-menu2').removeClass('hidden');
>
> > > Rather a long-winded method but if you really "must" have IE6
> > > compatability..... this might work :)
>
> > > Chris
>
> > > On Aug 20, 11:55 am, Deepali <[email protected]> wrote:
>
> > > > Chris, You are simply genius :)
>
> > > > Its working!!!!!
>
> > > > But its not working with IE, I mean its not showing the effect. what
> > > > do you think what could be the cause?
>
> > > > On Aug 20, 2:35 pm, cbolson <[email protected]> wrote:
>
> > > > > I really don't see why you need the e = new Event(e);
> > > > > But still..... moving on...
>
> > > > > The login block is shown as the page loads because you are only hiding
> > > > > it when the document has finished loading.  In the meantime it is
> > > > > going to be shown. The more content you have on the page, the longer
> > > > > it will take to load so the longer the block will be shown.
> > > > > You could hide the block via css like this:
> > > > > .v-menu{
> > > > >         border:solid 1px #7F9FBF;
> > > > >         width:200px;
> > > > >         clear:both;
> > > > >         display:none; /* hide the block - display via mootools*/}
>
> > > > > Then add this line to change this css style and display (though then
> > > > > hidden by the slide) before you define the side in the javascript:
>
> > > > > $('v-menu2').setStyle('display','block');
>
> > > > > Chris
>
> > > > > On Aug 20, 11:12 am, Deepali <[email protected]> wrote:
>
> > > > > > Chris, its working now. what i did is
> > > > > > i just replace this to
> > > > > >  e.stop();
> > > > > >    mySlide.toggle();
>
> > > > > > this.
> > > > > >  e = new Event(e);
> > > > > >            mySlide.toggle();
> > > > > >           e.stop();
>
> > > > > > And its working. and i have checked it on where actually i wanted to
> > > > > > impliment it. Thnaks a lot.
>
> > > > > > but still one problem is remaining while loading the js it show me 
> > > > > > the
> > > > > > hidden part(two text box or the content) and after the page gets 
> > > > > > load.
> > > > > > it works fine. why is it so?
>
> > > > > > Anyways thaks a lot.
>
> > > > > > On Aug 20, 1:56 pm, Deepali <[email protected]> wrote:
>
> > > > > > > i have added thr following
>
> > > > > > > <script type="text/javascript" src="mootools-1.2.3.1-more.js"></
> > > > > > > script>
> > > > > > > <script type="text/javascript" 
> > > > > > > src="mootools-1.2.3-core.js"></script>
>
> > > > > > > or
>
> > > > > > > <script type="text/javascript" src="mootools-1.2.3.1-more.js"></
> > > > > > > script>
> > > > > > > <script type="text/javascript" 
> > > > > > > src="mootools-1.2.3-core.js"></script>
> > > > > > > <script type="text/javascript" src="mootools.svn.js"></script>
>
> > > > > > > but its not working. is it working on your m/c without mooshells?
>
> > > > > > > On Aug 20, 1:25 pm, cbolson <[email protected]> wrote:
>
> > > > > > > > Hi,
> > > > > > > > You haven't included the mootools core file.
> > > > > > > > You need both the "core" and the "more" files.
>
> > > > > > > > Chris
>
> > > > > > > > On Aug 20, 10:19 am, Deepali <[email protected]> wrote:
>
> > > > > > > > > I have downloaded new version. But still no difference. I 
> > > > > > > > > have two
> > > > > > > > > pages(trail pages)
> > > > > > > > > mootoolslogin.php
> > > > > > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > > > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > > > > > > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > > > > > > > <head>
> > > > > > > > > <meta http-equiv="Content-Type" content="text/html; 
> > > > > > > > > charset=UTF-8" />
> > > > > > > > > <title>Untitled Document</title>
> > > > > > > > > <script type="text/javascript" 
> > > > > > > > > src="mootools-1.2.3.1-more.js"></
> > > > > > > > > script>
>
> > > > > > > > > <style type="text/css">
> > > > > > > > > body{font-family:Arial, Helvetica, sans-serif; 
> > > > > > > > > font-size:13px;}
> > > > > > > > > /* -------------------------------------------------------- */
> > > > > > > > > /*
> > > > > > > > > BUTTON
> > > > > > > > > */
> > > > > > > > > .button{
> > > > > > > > >         background:url(img/button.png)  -32px right no-repeat;
> > > > > > > > >         color:#FFFFFF;
> > > > > > > > >         clear:both;
> > > > > > > > >         display:block;
> > > > > > > > >         float:left;
> > > > > > > > >         font-size:13px;
> > > > > > > > >         font-weight:bold;
> > > > > > > > >         height:31px;
> > > > > > > > >         line-height:31px;
> > > > > > > > >         width:auto;
> > > > > > > > >         margin-right:30px;
>
> > > > > > > > > }
>
> > > > > > > > >         a.button {
> > > > > > > > >                 text-decoration:none;
> > > > > > > > >         }
> > > > > > > > >         .button span {
> > > > > > > > >                 background:url(img/button.png) left top 
> > > > > > > > > no-repeat;
> > > > > > > > >                 display:block;
> > > > > > > > >                 height:31px;
> > > > > > > > >                 line-height:31px;
> > > > > > > > >                 padding-left:10px;
> > > > > > > > >                 padding-right:8px;
> > > > > > > > >                 margin-right:20px;
> > > > > > > > >         }
> > > > > > > > > /* -------------------------------------------------------- */
> > > > > > > > > /*
> > > > > > > > > MENU
> > > > > > > > > */
> > > > > > > > > .v-menu{
> > > > > > > > >         border:solid 1px #7F9FBF;
> > > > > > > > >         width:200px;
> > > > > > > > >         clear:both;
>
> > > > > > > > > }
>
> > > > > > > > >         ul.v-menu, .v-menu li{
> > > > > > > > >                 padding:0;
> > > > > > > > >                 margin:0;
> > > > > > > > >                 list-style:none;
> > > > > > > > >         }
> > > > > > > > >         ul.v-menu{
> > > > > > > > >                 clear:both;
> > > > > > > > >                 margin-top:6px;
> > > > > > > > >                 padding:6px 10px;
> > > > > > > > >         }
> > > > > > > > >                 .v-menu li a{
> > > > > > > > >                         color:#555555;
> > > > > > > > >                         font-weight:bold;
> > > > > > > > >                         display:block;
> > > > > > > > >                         border-top:solid 1px #DEDEDE;
> > > > > > > > >                         padding:4px;
> > > > > > > > >                         text-decoration:none;
> > > > > > > > >                 }
> > > > > > > > >                 .v-menu li a:hover{
> > > > > > > > >                         color:#999999;
> > > > > > > > >                 }
> > > > > > > > >        </style>
> > > > > > > > >        <script>
> > > > > > > > >        window.addEvent('domready', function(){
> > > > > > > > >              var mySlide = new Fx.Slide('v-menu2').hide();
> > > > > > > > >              $('toggle').addEvent('click', function(e){
> > > > > > > > >               e.stop();
> > > > > > > > >               mySlide.toggle();
> > > > > > > > >              });
>
> > > > > > > > > });
>
> > > > > > > > > </script>
>
> > > > > > > > > </head>
> > > > > > > > > <body>
>
> > > > > > > > > <form action='<?$PHP_SELF;?>' name="messageFrm"  
> > > > > > > > > method="post">
> > > > > > > > > <table width="600" border="0" align="center" cellpadding="0"
> > > > > > > > > cellspacing="0">
> > > > > > > > > <tr>
> > > > > > > > > <td width="50%"><h2>Login</h2></td>
> > > > > > > > > </tr>
> > > > > > > > > <tr>
> > > > > > > > > <td width="50%" valign="top">
> > > > > > > > > <a href="loginpagehere.php" id="toggle"><span>Show 
> > > > > > > > > Panel</span></a>
> > > > > > > > > <div style="clear:both">
> > > > > > > > > <ul id="v-menu2" class="v-menu">
> > > > > > > > > <li>
> > > > > > > > > <label for="username">Username or email</label>
> > > > > > > > > <input id="username" name="username" value="" title="username"
> > > > > > > > > tabindex="4" type="text">
> > > > > > > > > </li>
> > > > > > > > > <br/>
> > > > > > > > > <li>
> > > > > > > > > <label for="password">Password</label>
> > > > > > > > > <input id="password" name="password" value="" title="password"
> > > > > > > > > tabindex="5" type="password">
> > > > > > > > > </li>
> > > > > > > > > <br/>
> > > > > > > > >  <li>
> > > > > > > > >  <input id="signin_submit" value="Sign in" tabindex="6" 
> > > > > > > > > type="submit">
> > > > > > > > > </li>
> > > > > > > > > <li>
>
> ...
>
> read more »

Reply via email to