johanes Posted February 12, 2005 Report Share Posted February 12, 2005 (edited) Problēma ir ar vietu kas ir boldā, itkā vis iet... iet gan uz Nokia mob. gan arī Operā. Bet Siemens telefono tas nestrādā. Kur ir problēma. Viss itkā pareizi... <? session_start(); header("Content-type:text/vnd.wap.wml;charset=utf-8"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); if (empty ($name)){ echo '<wml><card><center><b>Tev nav nika</b></center><br /><a title="Atpakaļ" href="http://jonins.eclub.lv/ihtischat/index.php">:: Atpakaļ ::</a> <br /></card></wml>'; exit(); } print "<?xml version=\"1.0\"?>\n"; echo '<wml>'; echo '<card title="Ieraksti">'; echo "<p>Tavs niks: $name </p>"; echo "<p>----------------</p>\n"; echo "<anchor>Pārlādēt<go method=\"post\" href=\"guest.php?name=$(login)\" cache-control=\"no-cache\"> </go></anchor><br/>\n"; echo "<anchor>Pievienot<go href=\"writeMess.php?name=$(login)\" method=\"post\"> </go> </anchor><br/>\n"; echo "<p>---</p><br/>"; $xfile = @file("guest.txt"); $p = 10; if ($npage == ""){$npage = "1";} $first = count($xfile) - ($p * ($npage - 1)); $second = count($xfile) - ($p * $npage) + 1; if ($second < 1) {$second = 1;} $npages = (int)(count($xfile) / $p); if ($news_limiter>((int) ($npages*$p))) $npages = $npages+1; if ($npage <= $npages and $npage>1) $gline_rew = "<a href=\"guest.php?npage=".($npage-1)."\">:: iepriekšējie 10</a>"; if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"guest.php?npage=".($npage+1)."\"> nākamie 10 ::</a>"; $line = " | "; for ($p = 1; $p <= $npages; $p++) { if ($p != $npage) { $line .= "<a href=\"guest.php?npage=$p\"> $p </a>|";} if ($p == $npage) { $line .= "$p |"; } } for ($i = $first-1; $i >= $second-1; $i--) { $ii = $i; $ii++; $udata = explode("::",$xfile[$i]); print "<p>$udata[0]<b>$udata[1]</b><br/>$udata[2]<small>$udata[3]</small></p><br/>---<br/>"; } $sesrefreshtime=300; echo "<onevent type=\"ontimer\">\n"; echo "<go href=\"guest.php?name=$(login)\"/>\n"; echo "</onevent>\n"; echo "<timer value=\"".$sesrefreshtime."\"/>"; echo "<p>---</p>"; echo"<p><center>><> [$npage/$npages pages] ><></center></p>"; echo "<p>---</p>"; if ($status == "admin") { print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Admin" href="admin.php">Admin sadalja</a></p><br/>'; } else if ($status == "moder") { print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Moderators" href="moder.php">Moderatora sadalja</a></p><br/>'; } else if ($status == "smoder") { print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Super moderatos" href="smoder.php">Super moderatora sadalja</a></p><br/>'; } echo '</card></wml>'; exit; ?> Edited February 12, 2005 by johanes Link to comment Share on other sites More sharing options...
johanes Posted February 19, 2005 Author Report Share Posted February 19, 2005 Tieshaam neviens nevar paliidzeet :o :o :o :o :o Link to comment Share on other sites More sharing options...
loderis Posted February 19, 2005 Report Share Posted February 19, 2005 parādi source no operas :unsure: Link to comment Share on other sites More sharing options...
hu_ha Posted February 19, 2005 Report Share Posted February 19, 2005 Sāc ar to, ka pārbaudi vai tavs wap ir korekts, tb vai tas ir atbilstoši standartam. Uzmetot aci, jau ir redzams, ka ir neatbilstības wap specifikācijai un siemens (par citiem nezinu, jo nav bijusi saskare) ļoti strikti ievēro šīs prasības echo '<wml><card><center><b>Tev nav nika</b></center><br /><a title="Atpakaļ" href="http://jonins.eclub.lv/ihtischat/index.php">:: Atpakaļ ::</a> <br /></card></wml>'; exit(); "center" - šāds tags wap nav pieļaujams, tā kā roc ar mazumiņu un arvien dziļāk Link to comment Share on other sites More sharing options...
johanes Posted February 20, 2005 Author Report Share Posted February 20, 2005 <center> lietas būtību nemaina. Siemens centrē NOkia nē. Bet šeit gan viss ir korekti if ($status == "admin") {print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Admin" href="admin.php">Admin sadalja</a></p><br/>'; } else if ($status == "moder") { print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Moderators" href="moder.php">Moderatora sadalja</a></p><br/>'; } else if ($status == "smoder") { print $gline_rew." :: ".$gline_next."<br/>"; echo '<p>::<a title="Super moderatos" href="smoder.php">Super moderatora sadalja</a></p><br/>'; } Sourse no Operas <?xml version="1.0"?><wml> <template><do type="accept" label="Pārlādēt"> <go href="guest.php?name=$(login)" /> </do><do type="accept" label="Pievienot"> <go href="writeMess.php?name=$(login)" /> </do><do type="prev" label="Back"> <prev/> </do></template> <card title="Ieraksti"> 1] 20.2.05. [16:12] <p>Tavs niks: jonash </p> <p>----------------</p> <anchor>Pārlādēt<go method="post" href="guest.php?name=$(login)" cache-control="no-cache"> </go></anchor><br/> <anchor>Pievienot<go href="writeMess.php?name=$(login)" method="post"> </go> </anchor><br/> <p>---</p><br/><p>[15:49|20]<b>jonash</b><br/><small>te ir kaads </small></p><br/>---<br/><p>[14:27|20]<b>jonash</b><br/><small>Uuu </small></p><br/>---<br/><p>[13:07|20]<b>jonash</b><br/><small>Ko labu dari Kunga dienaa? </small></p><br/>---<br/><p>[13:03|20]<b>mikelis</b><br/><small>... </small></p><br/>---<br/><p>[13:01|20]<b>mikelis</b><br/><small>:) </small></p><br/>---<br/><p>[13:00|20]<b>jonash</b><br/><small>Sveiks </small></p><br/>---<br/><p>[12:59|20]<b>mikelis</b><br/><small>! </small></p><br/>---<br/><p>[12:58|20]<b>mikelis</b><br/><small>Labdien! </small></p><br/>---<br/><p>[12:13|20]<b>elfs</b><br/><small>kljudu labojums,labrit,jebshu nu jau labdien. </small></p><br/>---<br/><p>[10:23|20]<b>elfs</b><br/><small>lbri, </small></p><br/>---<br/><onevent type="ontimer"> <go href="guest.php?name=$(login)"/> </onevent> <timer value="300"/><anchor>Pārlādēt<go method="post" href="guest.php?name=$(login)" cache-control="no-cache"> </go></anchor><br/> <anchor>Pievienot<go href="writeMess.php?name=$(login)" method="post"> </go> </anchor><br/> <p>---</p><p><center>><> [1/313 pages] ><></center></p> <p>---</p> :: <a href="guest.php?npage=2"> nākamie 10 ::</a><br/> <p>::<a title="Super moderatos" href="smoder.php?name=$(login)">Super moderatora sadalja</a></p><br/> <p><center>><> ><> ><> ><> ><></center></p> <p>::<a title="Banda" href="index.php">Ihtis banda</a></p> <p>::<a title="Ihtis" href="http://ihtis.times.lv/wap">Ihtis wap</a></p><br/> <p><center>><> ><> ><> ><> ><></center></p> <p><center> © I h t i s</center></p> </card></wml> Link to comment Share on other sites More sharing options...
tamster Posted February 20, 2005 Report Share Posted February 20, 2005 <center> lietas būtību nemaina. Siemens centrē NOkia nē. Kā jau hu_ha teica tāda taga iekš WML nav. Tas nebūt nenozīmē ka <center> ir pie vainas, taču korekti tas nav. <center> vietā var lietot <p align="center"> Link to comment Share on other sites More sharing options...
johanes Posted February 20, 2005 Author Report Share Posted February 20, 2005 Vispār uz pierakstu ir kašķīgās NOKIA. Siemens tādas laitas saprot :) Link to comment Share on other sites More sharing options...
hu_ha Posted February 20, 2005 Report Share Posted February 20, 2005 nu davai paklausi un novalidē to dokumentu, paskaties vai tas ir tiešām korekts.. Pēc tevis dotā piemēra (no operas source, ko devi) uzreiz redzams, ka trūkst doctype. Pēc doctype pievienošanas, man izmeta 31 kļūdas paziņojumu par nekorektu wml: Error (31) Line:12 Column:1 character data is not allowed here Line:15 Column:8 document type does not allow element "anchor" here; assuming missing "p" start-tag Line:15 Column:83 there is no attribute "cache-control" Line:21 Column:3 document type does not allow element "p" here Line:21 Column:18 document type does not allow element "p" here Line:22 Column:28 document type does not allow element "p" here Line:23 Column:28 document type does not allow element "p" here Line:24 Column:28 document type does not allow element "p" here ... Ja tu man tik pat kļūdainu tekstu mēģinātu iesmērēt, kā svarīgu dokumentu, es ar tevi stipri tālu pasūtītu... Link to comment Share on other sites More sharing options...
johanes Posted February 21, 2005 Author Report Share Posted February 21, 2005 Tad jau jālabo kļudas :) Paldies Link to comment Share on other sites More sharing options...
Recommended Posts