Advertisement
Guest User

Untitled

a guest
Nov 21st, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function select_func($table_name, $field_name, $condition) {
  15. if ($field_name != '') {
  16. if (!( $queryy = mysql_query( '' . 'select ' . $field_name . ' from ' . $table_name . ' where ' . $condition ))) {
  17. exit( mysql_error( ) );
  18. (bool)true;
  19. }
  20.  
  21. $query = mysql_fetch_array( $queryy );
  22. return $query[0];
  23. }
  24.  
  25.  
  26. if (!( $queryy = mysql_query( '' . 'select * from ' . $table_name . ' where ' . $condition ))) {
  27. exit( mysql_error( ) );
  28. (bool)true;
  29. }
  30.  
  31. $query = mysql_fetch_array( $queryy );
  32. return $query;
  33. }
  34.  
  35. function get_all_states($get_id) {
  36. $con_id = select_func( 'state', 'con_id', '' . 'sta_id=\'' . $get_id . '\'' );
  37.  
  38. if (!( $sta_query = mysql_query( '' . 'select * from state where con_id=\'' . $con_id . '\'' ))) {
  39. exit( mysql_error( ) );
  40. (bool)true;
  41. }
  42.  
  43.  
  44. while ($sta_fetch = mysql_fetch_array( $sta_query )) {
  45. if ($get_id == $sta_fetch['sta_id']) {
  46. $selected = 'Selected';
  47. } else {
  48. $selected = '';
  49. }
  50.  
  51. echo '' . '<option ' . $selected . ' value=\'' . $sta_fetch['sta_id'] . '\'>' . $sta_fetch['sta_name'] . '</option>';
  52. }
  53.  
  54. }
  55.  
  56. function get_states() {
  57. echo '<option value=\'\'>Select State</option>';
  58.  
  59. if (!( $sta_query = mysql_query( 'select * from state' ))) {
  60. exit( mysql_error( ) );
  61. (bool)true;
  62. }
  63.  
  64.  
  65. while ($sta_fetch = mysql_fetch_array( $sta_query )) {
  66. echo '' . '<option value=\'' . $sta_fetch['sta_id'] . '\'>' . $sta_fetch['sta_name'] . '</option>';
  67. }
  68.  
  69. }
  70.  
  71. function main() {
  72. include( 'language.php' );
  73. include_once( 'conn.php' );
  74. $self = basename( $_SERVER['PHP_SELF'] );
  75. $amt = mysql_real_escape_string( $_SESSION['total_amount'] );
  76. $amtpaypal = mysql_real_escape_string( $_SESSION['amtpaypal'] );
  77.  
  78. if (isset( $_SESSION['memid'] )) {
  79. $memid = mysql_real_escape_string( $_SESSION['memid'] );
  80. } else {
  81. $memid = mysql_real_escape_string( $_SESSION['normal_memid'] );
  82. }
  83.  
  84. $select_jobseeker = mysql_fetch_array( mysql_query( '' . 'select * from job_seeker where id=\'' . $memid . '\'' ) );
  85. $select_state = mysql_query( 'select * from state' );
  86. $price = mysql_real_escape_string( $_SESSION['total_amount'] );
  87. $rs0 = mysql_fetch_array( mysql_query( 'select * from zw_websetting' ) );
  88. $weburl = $rs0['weburl'];
  89. $date = date( 'Y-m-d' );
  90. $sessionid = session_id( );
  91. ............................................................
  92. .................................
  93. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement