Advertisement
scriptz-team

9lessons.info - another php noobz :P

Jun 13th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1. _____ _____ _ _____ _____ _____ _____ _____ _____
  2. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  3. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  4. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|████████████████████████████
  6.  
  7. - iNfO -
  8.  
  9. "How to do creating something with PHP...", dunno we know :P
  10.  
  11. YEAH WE ARE HERE AGAiN :P
  12.  
  13. YOU GiVE US YOUR REAL PATH (ONCE AGAiN :P), NiCE ONE.
  14.  
  15. - NOtIcE -
  16.  
  17. Should we saw this?
  18.  
  19. <?php
  20. error_reporting(0);
  21. $mysql_hostname = "localhost";
  22. $mysql_user = "kokkoroc_demos";
  23. $mysql_password = "egglabs9*";
  24. $mysql_database = "kokkoroc_demos";
  25. $prefix = "how_";
  26. $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Opps some thing went wrong");
  27. mysql_select_db($mysql_database, $bd) or die("Opps some thing went wrong");
  28.  
  29. ?>
  30.  
  31. Also index.php
  32.  
  33. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  34. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  35. <html xmlns="http://www.w3.org/1999/xhtml">
  36. <head>
  37. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  38. <title>9lessons Demos </title>
  39. <meta content='9lessons is a programming blog demos maintained by Srinivas Tamada. Tutorials focused on Programming, Jquery, Ajax, PHP, Demos, Web Design, Javascript, Software and MySQL.' name='description'/>
  40. <meta content='java script, web development, web design, web programming, jquery ajax, ajax php, jquery ajax demos, jquery demos, regular expression, ajax demos, ajax programming, tutorials, php script, ajax tutorial, ajax examples, jquery tutorial, database, mysql, web database development, blogger, google ajax api, google visualization, google app, rss, technology, coding, code, examples, php programming, facebook scripts, twitter API, facebook like, twitter scripts, form validation, hosting, form submit, validation, application development, software, free scripts, free hosting, sql script, programming, jsp, tomcat, SMTP Mail' name='keywords'/>
  41. <link href='http://srinivas.tamada.googlepages.com/favegg.gif' rel='icon' type='image/x-icon'/>
  42. <link href='http://srinivas.tamada.googlepages.com/favegg.gif' rel='shortcut icon' type='image/x-icon'/>
  43. <style>
  44. body {
  45. font: normal 11px auto "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  46. color: #4f6b72;
  47. background: #E6EAE9;
  48. }
  49.  
  50. a {
  51. color: #c75f3e;
  52. }
  53.  
  54. #mytable {
  55. width: 950px;
  56. padding: 0;
  57. margin: 0;
  58. }
  59.  
  60. caption {
  61. padding: 0 0 5px 0;
  62. width: 950px;
  63. font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  64. text-align: right;
  65. }
  66.  
  67. th {
  68. font: bold 13px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  69. color: #4f6b72;
  70. border-right: 1px solid #C1DAD7;
  71. border-bottom: 1px solid #C1DAD7;
  72. border-top: 1px solid #C1DAD7;
  73. letter-spacing: 2px;
  74. text-transform: uppercase;
  75. text-align: left;
  76. padding: 6px 6px 6px 12px;
  77. background: #CAE8EA url(images/bg_header.jpg) no-repeat;
  78. }
  79.  
  80. th.nobg {
  81. border-top: 0;
  82. border-left: 0;
  83. border-right: 1px solid #C1DAD7;
  84. background: none;
  85. width:550px;
  86. }
  87.  
  88. td {
  89. border-right: 1px solid #C1DAD7;
  90. border-bottom: 1px solid #C1DAD7;
  91. background: #fff;
  92. padding: 6px 6px 6px 12px;
  93. color: #4f6b72;
  94. }
  95.  
  96.  
  97. td.alt {
  98. background: #F5FAFA;
  99. color: #797268;
  100. }
  101.  
  102. th.spec {
  103. border-left: 1px solid #C1DAD7;
  104. border-top: 0;
  105. background: #fff url(images/bullet1.gif) no-repeat;
  106. font: bold 13px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  107.  
  108. }
  109.  
  110. th.specalt {
  111. border-left: 1px solid #C1DAD7;
  112. border-top: 0;
  113. background: #f5fafa url(images/bullet2.gif) no-repeat;
  114. font: bold 13px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  115. color: #797268;
  116. }
  117. a
  118. {
  119. text-transform: uppercase;
  120. padding: 3px 6px 3px 6px;
  121. -webkit-border-radius: 12px;
  122. -moz-border-radius: 12px;
  123. font-weight:bold;
  124. text-decoration:none;
  125. color:#fff;
  126. font-size:10px;
  127. font-family:arial;
  128. }
  129. .download
  130. {
  131. background-color:#7c48b5;
  132. }
  133.  
  134. .tutorial
  135. {
  136. background-color:#a75375;
  137. }
  138. .demo
  139. {
  140. background-color:#4b8db5;
  141. }
  142. </style>
  143. </head>
  144.  
  145. <body>
  146. <div style="margin:0 auto; width:950px">
  147. <div style='height:50px'>
  148. <div style='width:250px; float:left'>
  149. <img src="https://s3.amazonaws.com/9lessonslabs/icons/9lessonsDemos.png" style='width:250px'/></div><div style='width:700px;float:left'>
  150. <a href='http://wall.9lessons.info'>
  151. <img src='https://lh4.googleusercontent.com/-u0jV8ZCvKuo/Todlu8P97iI/AAAAAAAAFg4/EVvdhsnu8lc/s900/WallscriptBanner.png' style='width:700px;margin-top:15px' border='0' />
  152. </a>
  153. </div></div>
  154. <table id="mytable" cellspacing="0" >
  155.  
  156. <tr>
  157. <th scope="col" class="nobg">Article Title</th>
  158. <th scope="col" >Tutorial</th>
  159. <th scope="col" >Demo</th>
  160. <th scope="col" >Download</th>
  161.  
  162. </tr>
  163. <?php
  164. include('db.php');
  165.  
  166. $memcache = new Memcache;
  167. $memcache->connect('localhost', 11211) or die ("Could not connect");
  168.  
  169. $key = md5('list 9lessons Demos');
  170. $get_result = array();
  171. $get_result = $memcache->get($key);
  172.  
  173. if($get_result)
  174. {
  175.  
  176. $friendslist=$get_result;
  177. }
  178. else
  179. {
  180. $v=mysql_query("select * from demo_links order by id desc");
  181. while($row=mysql_fetch_array($v))
  182. $friendslist[]=$row;
  183.  
  184. $memcache->set($key, $friendslist, MEMCACHE_COMPRESSED, 39200);
  185.  
  186. }
  187.  
  188. foreach($friendslist as $row)
  189. {
  190. $id=$row['id'];
  191. ?>
  192. <tr>
  193. <?php if($id % 2) { ?>
  194. <th scope="row" class="spec"><?php echo $row['title']; ?></th>
  195. <?php } else { ?>
  196. <th scope="row" class="specalt"><?php echo $row['title']; ?></th>
  197. <?php } ?>
  198. <td width='80px'><a href="<?php echo $row['tlink']; ?>" target="_blank" class='tutorial'>Tutorial</a></td>
  199. <td width='80px'>
  200. <?php if(strlen($row['link'])>0){ ?>
  201. <a href="<?php echo $row['link']; ?>" target="_blank" class='demo'>Demo</a>
  202. <?php } ?>
  203. </td>
  204. <td width='80px'>
  205. <?php if(strlen($row['download'])>0) { ?>
  206. <a href="http://demos.9lessons.info/url.php?url=<?php echo $row['download']; ?>" target="_blank" class='download'>Download</a>
  207. <?php } ?>
  208. </td>
  209. </tr>
  210. <?php } ?>
  211.  
  212. </table>
  213. Srinivas Tamada Production.
  214. </div>
  215. <iframe src="http://demos.9lessons.info/counter.html" frameborder="0" scrolling="no" height="0"></iframe>
  216. </body>
  217. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement