|
| 1 | +{include file='modules_header.tpl'} |
| 2 | + |
| 3 | + <table cellpadding="0" cellspacing="0"> |
| 4 | + <tr> |
| 5 | + <td width="45"><img src="images/icon.png" width="34" height="34" /></td> |
| 6 | + <td class="title"> |
| 7 | + <a href="../../admin/modules">{$LANG.word_modules}</a> |
| 8 | + <span class="joiner">»</span> |
| 9 | + <a href="./">{$L.module_name}</a> |
| 10 | + <span class="joiner">»</span> |
| 11 | + {$L.phrase_ft3_compatibility} |
| 12 | + </td> |
| 13 | + </tr> |
| 14 | + </table> |
| 15 | + |
| 16 | + {include file="messages.tpl"} |
| 17 | + |
| 18 | + <div class="margin_bottom_large"> |
| 19 | + {$L.text_ft3_compatibility} |
| 20 | + </div> |
| 21 | + |
| 22 | + <table class="list_table" cellspacing="1" cellpadding="0" style="width: 600px"> |
| 23 | + <tr> |
| 24 | + <th>{$L.word_test}</th> |
| 25 | + <th>{$L.word_result}</th> |
| 26 | + <th>{$L.word_result}</th> |
| 27 | + </tr> |
| 28 | + <tr> |
| 29 | + <td class="pad_left_small medium_grey">Compatible PHP Version</td> |
| 30 | + <td class="pad_left_small">{$php_version}</td> |
| 31 | + <td align="center"> |
| 32 | + {if $php_version_compatible} |
| 33 | + <span class="green">{$LANG.word_pass|upper}</span> |
| 34 | + {else} |
| 35 | + <span class="red">{$LANG.word_fail|upper}</span> |
| 36 | + {/if} |
| 37 | + </td> |
| 38 | + </tr> |
| 39 | + <tr> |
| 40 | + <td class="pad_left_small medium_grey">PDO Available</td> |
| 41 | + <td class="pad_left_small"> |
| 42 | + {if $pdo_available} |
| 43 | + {$LANG.word_yes} |
| 44 | + {else} |
| 45 | + {$LANG.word_no} |
| 46 | + {/if} |
| 47 | + </td> |
| 48 | + <td align="center"> |
| 49 | + {if $pdo_available} |
| 50 | + <span class="green">{$LANG.word_pass|upper}</span> |
| 51 | + {else} |
| 52 | + <span class="red">{$LANG.word_fail|upper}</span> |
| 53 | + {/if} |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + <tr> |
| 57 | + <td class="pad_left_small medium_grey">PDO-MySQL extension available</td> |
| 58 | + <td class="pad_left_small"> |
| 59 | + {if $pdo_mysql_available} |
| 60 | + {$LANG.word_yes} |
| 61 | + {else} |
| 62 | + {$LANG.word_no} |
| 63 | + {/if} |
| 64 | + </td> |
| 65 | + <td align="center"> |
| 66 | + {if $pdo_mysql_available} |
| 67 | + <span class="green">{$LANG.word_pass|upper}</span> |
| 68 | + {else} |
| 69 | + <span class="red">{$LANG.word_fail|upper}</span> |
| 70 | + {/if} |
| 71 | + </td> |
| 72 | + </tr> |
| 73 | + </table> |
| 74 | + |
| 75 | + {if $php_version_compatible && $pdo_available && $pdo_mysql_available} |
| 76 | + |
| 77 | + <br /> |
| 78 | + |
| 79 | + <p><b>Test Database Connection</b></p> |
| 80 | + |
| 81 | + <p> |
| 82 | + This attempts to make a database connection using PDO. By default PDO connects on port <b>3306</b>. |
| 83 | + </p> |
| 84 | + |
| 85 | + <p> |
| 86 | + Port: |
| 87 | + <input type="text" id="pdo_port" size="6" value="3306" /> |
| 88 | + <input type="button" id="pdo_test_btn" value="{$L.phrase_run_test}" onclick="sc_ns.test_pdo_connection()" /> |
| 89 | + <span id="pdo_test_loading"></span> |
| 90 | + </p> |
| 91 | + |
| 92 | + <div id="pdo_result_error" class="error pdo_result hidden"> |
| 93 | + <div style="padding: 6px"> |
| 94 | + Sorry, there was a problem connecting. Here's the error that was returned: |
| 95 | + <p><b id="pdo_result_error_msg"></b></p> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + |
| 99 | + <div id="pdo_result_success" class="notify pdo_result hidden"> |
| 100 | + <div style="padding: 6px"> |
| 101 | + Excellent! You will be able to upgrade to Form Tools 3 without making any changes to your configuration. |
| 102 | + </div> |
| 103 | + </div> |
| 104 | + |
| 105 | + <div id="pdo_result_success_with_port" class="notify pdo_result hidden"> |
| 106 | + <div style="padding: 6px"> |
| 107 | + Excellent! You will be able to upgrade to Form Tools 3 but will need to add the following setting to your |
| 108 | + <b>/global/config.php</b> file: |
| 109 | + <p><b>$g_db_port = <span id="custom_port"></span>;</b></p> |
| 110 | + </div> |
| 111 | + </div> |
| 112 | + |
| 113 | + {/if} |
| 114 | + |
| 115 | +{include file='modules_footer.tpl'} |
0 commit comments