pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Advertising: Car Insurance - Flights - Debt Help - Mobile Phones
Diff paste-bin - collaborative debugging tool View Help

Posted by Trantor on Fri 2nd May 06:51 (modification of post by view diff)
download | new post

  1. diff -Nru sap-trixbox_0.2.12.orig/install.sh sap-trixbox_0.2.12/install.sh
  2. --- sap-trixbox_0.2.12.orig/install.sh  2007-12-10 06:15:19.000000000 +0100
  3. +++ sap-trixbox_0.2.12/install.sh       2008-05-02 15:45:09.000000000 +0200
  4.  -7,16 +7,16 @@
  5.  ln -s /var/www/html/snom.htm /var/www/html/snom360.htm
  6.  ln -s /var/www/html/snom.htm /var/www/html/snom370.htm
  7.  chown -R asterisk.asterisk /var/www/html/snom*
  8. -cd ../var_www_html_maint_modules_11_endpointcfg
  9. -mv /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php.original
  10. -cp endpoint_snom.php /var/www/html/maint/modules/11_endpointcfg
  11. -cp db_conf.php /var/www/html/maint/modules/11_endpointcfg
  12. -mv /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl.original
  13. -cp ../endpointcfg.tpl /var/www/html/maint/modules/11_endpointcfg/templates
  14. +cd ./var_www_html_maint_modules_11_endpointcfg
  15. +mv /var/www/html/maint/modules/endpointcfg/endpoint_snom.php /var/www/html/maint/modules/endpointcfg/endpoint_snom.php.original
  16. +cp endpoint_snom.php /var/www/html/maint/modules/endpointcfg
  17. +cp db_conf.php /var/www/html/maint/modules/endpointcfg
  18. +mv /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl.original
  19. +cp ../endpointcfg.tpl /var/www/html/maint/modules/endpointcfg/templates
  20.  cp /var/www/html/maint/includes/functions/functions.php /usr/share/pear/include
  21. -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl
  22. -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/db_conf.php
  23. -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php
  24. +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl
  25. +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/db_conf.php
  26. +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/endpoint_snom.php
  27.  echo
  28.  echo
  29.  echo "Please remember to edit /var/www/html/snom.htm to point to your TrixBox IP"
  30. diff -Nru sap-trixbox_0.2.12.orig/var_www_html/snom/edit_settings.php sap-trixbox_0.2.12/var_www_html/snom/edit_settings.php
  31. --- sap-trixbox_0.2.12.orig/var_www_html/snom/edit_settings.php 2007-07-05 23:46:35.000000000 +0200
  32. +++ sap-trixbox_0.2.12/var_www_html/snom/edit_settings.php      2008-05-02 15:34:08.000000000 +0200
  33.  -21,9 +21,8 @@
  34.  <?
  35.  include("db_conf.php");
  36.  
  37. -$tid=$_GET['template_id'];
  38. -
  39. -$sql="SELECT * from `endpoints`.`Snom_Template_Data` where template_id='$tid'";
  40. +$template_id=$_GET['template_id'];
  41. +$sql="SELECT * from `endpoints`.`Snom_Template_Data` where template_id='$template_id'";
  42.  $result=mysql_query($sql,$snom_db);
  43.  while ($row=mysql_fetch_array($result)) {
  44.         $template_id=$row['template_id'];
  45.  -53,7 +52,7 @@
  46.      </tr>
  47.    </table>
  48.  <p>
  49. -<a href="/snom/edit_template.php?template_id=<? echo $tid; ?>">Return to Template Edit</a>
  50. +<a href="/snom/edit_template.php?template_id=<? echo $template_id; ?>">Return to Template Edit</a>
  51.    <p class="style1">&nbsp; </p>
  52.  </div>
  53.  </body>
  54. diff -Nru sap-trixbox_0.2.12.orig/var_www_html/snom/edit_template.php sap-trixbox_0.2.12/var_www_html/snom/edit_template.php
  55. --- sap-trixbox_0.2.12.orig/var_www_html/snom/edit_template.php 2007-12-10 06:01:49.000000000 +0100
  56. +++ sap-trixbox_0.2.12/var_www_html/snom/edit_template.php      2008-05-02 15:20:52.000000000 +0200
  57.  -11,7 +11,7 @@
  58.  </style></head>
  59.  
  60.  <?
  61. -$tid=$_GET['template_id'];
  62. +$template_id=$_GET['template_id'];
  63.  $new=$_GET['new'];
  64.  ?>
  65.  <body>
  66.  -31,10 +31,10 @@
  67.  <?
  68.  include("db_conf.php");
  69.  
  70. -$sql="SELECT * from `endpoints`.`Snom_Templates` where template_id='$tid'";
  71. +$sql="SELECT * from `endpoints`.`Snom_Templates` where template_id='$template_id'";
  72.  $result=mysql_query($sql,$snom_db);
  73.  $row=mysql_fetch_array($result);
  74. -$template_id=$row['template_id'];
  75. +#$template_id=$row['template_id'];
  76.  $template_firmware=$row['template_firmware'];
  77.  $template_active=$row['template_active'];
  78.  ?>
  79. diff -Nru sap-trixbox_0.2.12.orig/var_www_html/snom-ap.php sap-trixbox_0.2.12/var_www_html/snom-ap.php
  80. --- sap-trixbox_0.2.12.orig/var_www_html/snom-ap.php    2007-07-06 15:53:17.000000000 +0200
  81. +++ sap-trixbox_0.2.12/var_www_html/snom-ap.php 2008-05-02 15:42:54.000000000 +0200
  82.  -128,71 +128,6 @@
  83.         }
  84.  }
  85.  
  86. -if (!$master) {
  87. -
  88. -       mysql_close();
  89. -
  90. -       $db=mysql_connect('192.168.1.202','corehq','cleverpass123');
  91. -
  92. -       $dbe=mysql_select_db('endpoints');
  93. -
  94. -       $query="select * from `Snom360` where mac_address='$mac'";
  95. -
  96. -       $result=mysql_query($query,$db);
  97. -
  98. -       while ($row=mysql_fetch_array($result)) {
  99. -               $user_realname1=$row['user_realname1'];
  100. -               $user_name1=$row['user_name1'];
  101. -               $user_idle_text1=$row['user_idle_text1'];
  102. -               $user_host1=$row['user_host1'];
  103. -               $user_pass1=$row['user_pass1'];
  104. -               $user_pname1=$row['user_pname1'];
  105. -               $user_mailbox1=$row['user_mailbox1'];
  106. -               $user_ringer1=$row['user_ringer1'];
  107. -               $user_custom1=$row['user_custom1'];
  108. -               $user_xml_screen_url1=$row['user_xml_screen_url1'];
  109. -               $record_missed_calls1=$row['record_missed_calls1'];
  110. -               $fkey0=$row['fkey0'];
  111. -               $fkey1=$row['fkey1'];
  112. -               $fkey2=$row['fkey2'];
  113. -               $fkey3=$row['fkey3'];
  114. -               $fkey4=$row['fkey4'];
  115. -               $fkey5=$row['fkey5'];
  116. -               $fkey6=$row['fkey6'];
  117. -               $fkey7=$row['fkey7'];
  118. -               $fkey8=$row['fkey8'];
  119. -               $fkey9=$row['fkey9'];
  120. -               $fkey10=$row['fkey10'];
  121. -               $fkey11=$row['fkey11'];
  122. -
  123. -
  124. -               if (!empty($user_realname1)) { echo "user_realname1: $user_realname1\n"; }
  125. -
  126. -               if (!empty($user_name1)) { echo "user_name1: $user_name1\n"; }
  127. -               if (!empty($user_idle_text1)) { echo "user_idle_text1: $user_idle_text1\n"; }
  128. -               if (!empty($user_host1)) { echo "user_host1: $user_host1\n"; }
  129. -               if (!empty($user_pass1)) { echo "user_pass1: $user_pass1\n"; }
  130. -               if (!empty($user_pname1)) { echo "user_pname1: $user_pname1\n"; }
  131. -               if (!empty($user_mailbox1)) { echo "user_mailbox1: $user_mailbox1\n"; }
  132. -               if (!empty($user_ringer1)) { echo "user_ringer1: $user_ringer1\n"; }
  133. -               if (!empty($user_custom1)) { echo "user_custom1: $user_custom1\n"; }
  134. -               if (!empty($user_xml_screen_url1)) { echo "user_xml_screen_url1: $user_xml_screen_url1\n"; }
  135. -               if (!empty($record_missed_calls1)) { echo "record_missed_calls1: $record_missed_calls1\n"; }
  136. -               if (!empty($fkey0)) { echo "fkey0: $fkey0\n"; }
  137. -               if (!empty($fkey1)) { echo "fkey1: $fkey1\n"; }
  138. -               if (!empty($fkey2)) { echo "fkey2: $fkey2\n"; }
  139. -               if (!empty($fkey3)) { echo "fkey3: $fkey3\n"; }
  140. -               if (!empty($fkey4)) { echo "fkey4: $fkey4\n"; }
  141. -               if (!empty($fkey5)) { echo "fkey5: $fkey5\n"; }
  142. -               if (!empty($fkey6)) { echo "fkey6: $fkey6\n"; }
  143. -               if (!empty($fkey7)) { echo "fkey7: $fkey7\n"; }
  144. -               if (!empty($fkey8)) { echo "fkey8: $fkey8\n"; }
  145. -               if (!empty($fkey9)) { echo "fkey9: $fkey9\n"; }
  146. -               if (!empty($fkey10)) { echo "fkey10: $fkey10\n"; }
  147. -               if (!empty($fkey11)) { echo "fkey11: $fkey11\n"; }
  148. -       }
  149. -}
  150. -
  151.  $server_ip=$_SERVER['SERVER_ADDR'];
  152.  
  153.  echo "firmware_status: http://".$server_ip."/snom/firmware.php?version=$snom_firmware_version\n";

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me
: