1<?php
2if(!defined('SETUPINC')) die('Kwaheri!');
3?>
4    <div id="main">
5            <h1 style="color:#FF7700;"><?php echo __('Configuration file is not writable');?></h1>
6            <div id="intro">
7            <p> <?php
8            echo sprintf(
9                 __('osTicket installer requires ability to write to the configuration file %s'),
10                 '<b style="white-space:nowrap">include/ost-config.php</b>');?>
11             </p>
12            </div>
13            <h3><?php echo __('Solution');?>: <font color="red"><?php echo $errors['err']; ?></font></h3>
14            <?php echo __('Please follow the instructions below to give read and write access to the web server user.');?>
15            <ul>
16                <li><b><?php echo __('CLI');?></b>:<br><i class="ltr">chmod 0666  include/ost-config.php</i></li>
17                <li><b><?php echo __('Windows PowerShell');?></b>:<br><?php echo __('Add "Full Access" permission for the "Everyone" user'); ?><br>
18                <i class="ltr">icacls include\ost-config.php /grant 'Everyone:F'</i></li>
19                <li><b><?php echo __('FTP');?></b>:<br><?php echo __('Using WS_FTP this would be right hand clicking on the file, selecting chmod, and then giving all permissions to the file.');?></li>
20                <li><b><?php echo __('Cpanel');?></b>:<br><?php echo __('Click on the file, select change permission, and then giving all permissions to the file.');?></li>
21            </ul>
22
23            <p><i><?php echo __("Don't worry! We'll remind you to take away the write access post-install");?></i>.</p>
24            <div id="bar">
25                <form method="post" action="install.php">
26                    <input type="hidden" name="s" value="config">
27                    <button class="btn"  type="submit" name="submit"><?php echo __('Done? Continue');?> &raquo;</button>
28                </form>
29            </div>
30    </div>
31    <div id="sidebar">
32            <h3><?php echo __('Need Help?');?></h3>
33            <p>
34            <?php echo __('If you are looking for a greater level of support, we provide <u>professional installation services</u> and commercial support with guaranteed response times, and access to the core development team. We can also help customize osTicket or even add new features to the system to meet your unique needs.');?> <a target="_blank" href="https://osticket.com/support"><?php echo __('Learn More!');?></a>
35            </p>
36    </div>
37