Posted by Trantor on Fri 2nd May 06:51 (modification of post by view diff)
download | new post
- diff -Nru sap-trixbox_0.2.12.orig/install.sh sap-trixbox_0.2.12/install.sh
- --- sap-trixbox_0.2.12.orig/install.sh 2007-12-10 06:15:19.000000000 +0100
- +++ sap-trixbox_0.2.12/install.sh 2008-05-02 15:45:09.000000000 +0200
- -7,16 +7,16 @@
- ln -s /var/www/html/snom.htm /var/www/html/snom360.htm
- ln -s /var/www/html/snom.htm /var/www/html/snom370.htm
- chown -R asterisk.asterisk /var/www/html/snom*
- -cd ../var_www_html_maint_modules_11_endpointcfg
- -mv /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php.original
- -cp endpoint_snom.php /var/www/html/maint/modules/11_endpointcfg
- -cp db_conf.php /var/www/html/maint/modules/11_endpointcfg
- -mv /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl.original
- -cp ../endpointcfg.tpl /var/www/html/maint/modules/11_endpointcfg/templates
- +cd ./var_www_html_maint_modules_11_endpointcfg
- +mv /var/www/html/maint/modules/endpointcfg/endpoint_snom.php /var/www/html/maint/modules/endpointcfg/endpoint_snom.php.original
- +cp endpoint_snom.php /var/www/html/maint/modules/endpointcfg
- +cp db_conf.php /var/www/html/maint/modules/endpointcfg
- +mv /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl.original
- +cp ../endpointcfg.tpl /var/www/html/maint/modules/endpointcfg/templates
- cp /var/www/html/maint/includes/functions/functions.php /usr/share/pear/include
- -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/templates/endpointcfg.tpl
- -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/db_conf.php
- -chown asterisk.asterisk /var/www/html/maint/modules/11_endpointcfg/endpoint_snom.php
- +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/templates/endpointcfg.tpl
- +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/db_conf.php
- +chown -v asterisk.asterisk /var/www/html/maint/modules/endpointcfg/endpoint_snom.php
- echo
- echo
- echo "Please remember to edit /var/www/html/snom.htm to point to your TrixBox IP"
- 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
- --- sap-trixbox_0.2.12.orig/var_www_html/snom/edit_settings.php 2007-07-05 23:46:35.000000000 +0200
- +++ sap-trixbox_0.2.12/var_www_html/snom/edit_settings.php 2008-05-02 15:34:08.000000000 +0200
- -21,9 +21,8 @@
- <?
- include("db_conf.php");
- -$tid=$_GET['template_id'];
- -
- -$sql="SELECT * from `endpoints`.`Snom_Template_Data` where template_id='$tid'";
- +$template_id=$_GET['template_id'];
- +$sql="SELECT * from `endpoints`.`Snom_Template_Data` where template_id='$template_id'";
- $result=mysql_query($sql,$snom_db);
- while ($row=mysql_fetch_array($result)) {
- $template_id=$row['template_id'];
- -53,7 +52,7 @@
- </tr>
- </table>
- <p>
- -<a href="/snom/edit_template.php?template_id=<? echo $tid; ?>">Return to Template Edit</a>
- +<a href="/snom/edit_template.php?template_id=<? echo $template_id; ?>">Return to Template Edit</a>
- <p class="style1"> </p>
- </div>
- </body>
- 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
- --- sap-trixbox_0.2.12.orig/var_www_html/snom/edit_template.php 2007-12-10 06:01:49.000000000 +0100
- +++ sap-trixbox_0.2.12/var_www_html/snom/edit_template.php 2008-05-02 15:20:52.000000000 +0200
- -11,7 +11,7 @@
- </style></head>
- <?
- -$tid=$_GET['template_id'];
- +$template_id=$_GET['template_id'];
- $new=$_GET['new'];
- ?>
- <body>
- -31,10 +31,10 @@
- <?
- include("db_conf.php");
- -$sql="SELECT * from `endpoints`.`Snom_Templates` where template_id='$tid'";
- +$sql="SELECT * from `endpoints`.`Snom_Templates` where template_id='$template_id'";
- $result=mysql_query($sql,$snom_db);
- $row=mysql_fetch_array($result);
- -$template_id=$row['template_id'];
- +#$template_id=$row['template_id'];
- $template_firmware=$row['template_firmware'];
- $template_active=$row['template_active'];
- ?>
- 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
- --- sap-trixbox_0.2.12.orig/var_www_html/snom-ap.php 2007-07-06 15:53:17.000000000 +0200
- +++ sap-trixbox_0.2.12/var_www_html/snom-ap.php 2008-05-02 15:42:54.000000000 +0200
- -128,71 +128,6 @@
- }
- }
- -if (!$master) {
- -
- - mysql_close();
- -
- - $db=mysql_connect('192.168.1.202','corehq','cleverpass123');
- -
- - $dbe=mysql_select_db('endpoints');
- -
- - $query="select * from `Snom360` where mac_address='$mac'";
- -
- - $result=mysql_query($query,$db);
- -
- - while ($row=mysql_fetch_array($result)) {
- - $user_realname1=$row['user_realname1'];
- - $user_name1=$row['user_name1'];
- - $user_idle_text1=$row['user_idle_text1'];
- - $user_host1=$row['user_host1'];
- - $user_pass1=$row['user_pass1'];
- - $user_pname1=$row['user_pname1'];
- - $user_mailbox1=$row['user_mailbox1'];
- - $user_ringer1=$row['user_ringer1'];
- - $user_custom1=$row['user_custom1'];
- - $user_xml_screen_url1=$row['user_xml_screen_url1'];
- - $record_missed_calls1=$row['record_missed_calls1'];
- - $fkey0=$row['fkey0'];
- - $fkey1=$row['fkey1'];
- - $fkey2=$row['fkey2'];
- - $fkey3=$row['fkey3'];
- - $fkey4=$row['fkey4'];
- - $fkey5=$row['fkey5'];
- - $fkey6=$row['fkey6'];
- - $fkey7=$row['fkey7'];
- - $fkey8=$row['fkey8'];
- - $fkey9=$row['fkey9'];
- - $fkey10=$row['fkey10'];
- - $fkey11=$row['fkey11'];
- -
- -
- - if (!empty($user_realname1)) { echo "user_realname1: $user_realname1\n"; }
- -
- - if (!empty($user_name1)) { echo "user_name1: $user_name1\n"; }
- - if (!empty($user_idle_text1)) { echo "user_idle_text1: $user_idle_text1\n"; }
- - if (!empty($user_host1)) { echo "user_host1: $user_host1\n"; }
- - if (!empty($user_pass1)) { echo "user_pass1: $user_pass1\n"; }
- - if (!empty($user_pname1)) { echo "user_pname1: $user_pname1\n"; }
- - if (!empty($user_mailbox1)) { echo "user_mailbox1: $user_mailbox1\n"; }
- - if (!empty($user_ringer1)) { echo "user_ringer1: $user_ringer1\n"; }
- - if (!empty($user_custom1)) { echo "user_custom1: $user_custom1\n"; }
- - if (!empty($user_xml_screen_url1)) { echo "user_xml_screen_url1: $user_xml_screen_url1\n"; }
- - if (!empty($record_missed_calls1)) { echo "record_missed_calls1: $record_missed_calls1\n"; }
- - if (!empty($fkey0)) { echo "fkey0: $fkey0\n"; }
- - if (!empty($fkey1)) { echo "fkey1: $fkey1\n"; }
- - if (!empty($fkey2)) { echo "fkey2: $fkey2\n"; }
- - if (!empty($fkey3)) { echo "fkey3: $fkey3\n"; }
- - if (!empty($fkey4)) { echo "fkey4: $fkey4\n"; }
- - if (!empty($fkey5)) { echo "fkey5: $fkey5\n"; }
- - if (!empty($fkey6)) { echo "fkey6: $fkey6\n"; }
- - if (!empty($fkey7)) { echo "fkey7: $fkey7\n"; }
- - if (!empty($fkey8)) { echo "fkey8: $fkey8\n"; }
- - if (!empty($fkey9)) { echo "fkey9: $fkey9\n"; }
- - if (!empty($fkey10)) { echo "fkey10: $fkey10\n"; }
- - if (!empty($fkey11)) { echo "fkey11: $fkey11\n"; }
- - }
- -}
- -
- $server_ip=$_SERVER['SERVER_ADDR'];
- 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.