Version Description
Download this release
Release Info
Developer | boldgrid |
Plugin | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid |
Version | branch.issue-342.202007311302 |
Comparing to | |
See all releases |
Code changes from version branch.issue-342.202007301553 to branch.issue-342.202007311302
admin/class-boldgrid-backup-admin-db-import.php
CHANGED
@@ -145,20 +145,30 @@ class Boldgrid_Backup_Admin_Db_Import {
|
|
145 |
* @since 1.6.0
|
146 |
*
|
147 |
* @param array $lines MySQL dump file lines.
|
148 |
-
* @return bool
|
149 |
*/
|
150 |
public function import_lines( $lines ) {
|
151 |
$this->logger_add( __METHOD__ . ' Method starting...' );
|
152 |
|
153 |
if ( empty( $lines ) ) {
|
154 |
-
return
|
|
|
|
|
155 |
}
|
156 |
|
157 |
/* phpcs:disable WordPress.DB.RestrictedClasses */
|
158 |
$db = new PDO( sprintf( 'mysql:host=%1$s;dbname=%2$s;', DB_HOST, DB_NAME ), DB_USER, DB_PASSWORD );
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
$templine = '';
|
161 |
|
|
|
162 |
$stats = array(
|
163 |
'skip_count' => 0,
|
164 |
'exec_count' => 0,
|
@@ -178,17 +188,39 @@ class Boldgrid_Backup_Admin_Db_Import {
|
|
178 |
if ( substr( trim( $line ), -1, 1 ) === ';' ) {
|
179 |
$affected_rows = $this->exec_import( $db, $templine );
|
180 |
|
|
|
181 |
$stats['exec_count']++;
|
182 |
$stats['affected_rows_count'] += $affected_rows;
|
183 |
|
|
|
184 |
if ( false === $affected_rows ) {
|
|
|
|
|
|
|
|
|
185 |
$this->logger_add( __METHOD__ . ' failed. Info: ' . print_r( array( // phpcs:ignore
|
186 |
'line cont' => $line_count + 1,
|
187 |
'line' => $templine,
|
188 |
'errorInfo' => $db->errorInfo(),
|
189 |
), 1 ) );
|
190 |
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
}
|
193 |
|
194 |
$templine = '';
|
145 |
* @since 1.6.0
|
146 |
*
|
147 |
* @param array $lines MySQL dump file lines.
|
148 |
+
* @return bool True on success, An array with an 'error' on failure.
|
149 |
*/
|
150 |
public function import_lines( $lines ) {
|
151 |
$this->logger_add( __METHOD__ . ' Method starting...' );
|
152 |
|
153 |
if ( empty( $lines ) ) {
|
154 |
+
return array(
|
155 |
+
'error' => ( __( 'Empty data passed to db restore.', 'boldgrid-backup' ) ),
|
156 |
+
);
|
157 |
}
|
158 |
|
159 |
/* phpcs:disable WordPress.DB.RestrictedClasses */
|
160 |
$db = new PDO( sprintf( 'mysql:host=%1$s;dbname=%2$s;', DB_HOST, DB_NAME ), DB_USER, DB_PASSWORD );
|
161 |
|
162 |
+
/*
|
163 |
+
* Build a single sql command to run. There will be many, but we'll build and execute them one
|
164 |
+
* at a time.
|
165 |
+
*
|
166 |
+
* A sql command may span more than one line. As we loop through each line, we add it to $templine
|
167 |
+
* until we've reached the end of the command, a ';'.
|
168 |
+
*/
|
169 |
$templine = '';
|
170 |
|
171 |
+
// Stats for our log file. Added to the log at the end of method.
|
172 |
$stats = array(
|
173 |
'skip_count' => 0,
|
174 |
'exec_count' => 0,
|
188 |
if ( substr( trim( $line ), -1, 1 ) === ';' ) {
|
189 |
$affected_rows = $this->exec_import( $db, $templine );
|
190 |
|
191 |
+
// Update stats for the log file.
|
192 |
$stats['exec_count']++;
|
193 |
$stats['affected_rows_count'] += $affected_rows;
|
194 |
|
195 |
+
// Take action if there was an error running the import query.
|
196 |
if ( false === $affected_rows ) {
|
197 |
+
// Get our error info.
|
198 |
+
$error_info = $db->errorInfo();
|
199 |
+
|
200 |
+
// Save it to the log file.
|
201 |
$this->logger_add( __METHOD__ . ' failed. Info: ' . print_r( array( // phpcs:ignore
|
202 |
'line cont' => $line_count + 1,
|
203 |
'line' => $templine,
|
204 |
'errorInfo' => $db->errorInfo(),
|
205 |
), 1 ) );
|
206 |
|
207 |
+
/*
|
208 |
+
* Show the error to the user.
|
209 |
+
*
|
210 |
+
* Over the years, it's been an edge case for the sql command to fail. Also, the
|
211 |
+
* format of the $db->errorInfo() array sounds like it varies. Comments in the php
|
212 |
+
* documentation indicate SQL Server returns 5 items in the array instead of 3.
|
213 |
+
*
|
214 |
+
* Because of the above, we'll simply print_r the $db->errorInfo() info rather than
|
215 |
+
* parse it and try to make it look nice.
|
216 |
+
*/
|
217 |
+
return array(
|
218 |
+
'error' => sprintf(
|
219 |
+
/* translators: 1: Error info as to why the db restore failed. */
|
220 |
+
__( 'Error restoring database: %1$s', 'boldgrid-backup' ),
|
221 |
+
'<pre style="white-space:break-spaces;">' . print_r( $db->errorInfo(), 1 ) . '</pre>' // phpcs:ignore
|
222 |
+
),
|
223 |
+
);
|
224 |
}
|
225 |
|
226 |
$templine = '';
|
coverage.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<coverage generated="
|
3 |
-
<project timestamp="
|
4 |
<package name="Boldgrid\Backup\Admin\Card">
|
5 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
|
6 |
<class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
|
@@ -4797,7 +4797,7 @@
|
|
4797 |
</file>
|
4798 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
|
4799 |
<class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
4800 |
-
<metrics complexity="46" methods="14" coveredmethods="
|
4801 |
</class>
|
4802 |
<line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="13"/>
|
4803 |
<line num="47" type="stmt" count="13"/>
|
@@ -4834,119 +4834,125 @@
|
|
4834 |
<line num="126" type="stmt" count="1"/>
|
4835 |
<line num="129" type="stmt" count="0"/>
|
4836 |
<line num="131" type="stmt" count="0"/>
|
4837 |
-
<line num="150" type="method" name="import_lines" visibility="public" complexity="7" crap="
|
4838 |
<line num="151" type="stmt" count="3"/>
|
4839 |
<line num="153" type="stmt" count="3"/>
|
4840 |
-
<line num="
|
4841 |
-
<line num="
|
4842 |
-
<line num="160" type="stmt" count="
|
4843 |
-
<line num="
|
4844 |
-
<line num="
|
4845 |
-
<line num="
|
4846 |
-
<line num="
|
4847 |
-
<line num="
|
4848 |
-
<line num="
|
4849 |
-
<line num="
|
4850 |
-
<line num="
|
4851 |
-
<line num="
|
4852 |
-
<line num="
|
4853 |
-
<line num="
|
4854 |
-
<line num="
|
4855 |
-
<line num="
|
4856 |
-
<line num="
|
4857 |
-
<line num="
|
4858 |
-
<line num="
|
4859 |
-
<line num="
|
4860 |
-
<line num="
|
4861 |
-
<line num="
|
4862 |
-
<line num="
|
4863 |
-
<line num="
|
4864 |
-
<line num="
|
4865 |
-
<line num="196" type="stmt" count="3"/>
|
4866 |
-
<line num="198" type="stmt" count="2"/>
|
4867 |
-
<line num="200" type="stmt" count="2"/>
|
4868 |
-
<line num="214" type="method" name="import_string" visibility="public" complexity="2" crap="2.02" count="1"/>
|
4869 |
-
<line num="215" type="stmt" count="1"/>
|
4870 |
-
<line num="217" type="stmt" count="1"/>
|
4871 |
-
<line num="219" type="stmt" count="1"/>
|
4872 |
<line num="220" type="stmt" count="0"/>
|
4873 |
-
<line num="
|
4874 |
-
<line num="
|
4875 |
-
<line num="
|
4876 |
-
<line num="
|
4877 |
-
<line num="
|
4878 |
-
<line num="
|
4879 |
-
<line num="
|
4880 |
-
<line num="
|
4881 |
-
<line num="
|
4882 |
-
<line num="
|
4883 |
-
<line num="
|
4884 |
-
<line num="
|
4885 |
-
<line num="
|
4886 |
-
<line num="
|
4887 |
-
<line num="
|
4888 |
-
<line num="
|
4889 |
-
<line num="
|
4890 |
-
<line num="
|
4891 |
-
<line num="
|
4892 |
-
<line num="277" type="stmt" count="
|
4893 |
-
<line num="
|
4894 |
-
<line num="
|
4895 |
-
<line num="
|
4896 |
-
<line num="
|
4897 |
-
<line num="
|
4898 |
-
<line num="
|
4899 |
-
<line num="
|
4900 |
-
<line num="
|
4901 |
-
<line num="
|
4902 |
-
<line num="302" type="stmt" count="3"/>
|
4903 |
<line num="303" type="stmt" count="3"/>
|
4904 |
-
<line num="
|
4905 |
-
<line num="305" type="stmt" count="1"/>
|
4906 |
<line num="306" type="stmt" count="1"/>
|
4907 |
-
<line num="
|
4908 |
-
<line num="310" type="stmt" count="3"/>
|
4909 |
<line num="311" type="stmt" count="3"/>
|
4910 |
<line num="312" type="stmt" count="3"/>
|
4911 |
-
<line num="313" type="stmt" count="
|
4912 |
-
<line num="
|
4913 |
-
<line num="
|
4914 |
-
<line num="
|
4915 |
-
<line num="
|
4916 |
-
<line num="
|
4917 |
-
<line num="
|
4918 |
-
<line num="
|
4919 |
-
<line num="335" type="stmt" count="
|
4920 |
-
<line num="
|
4921 |
-
<line num="
|
4922 |
-
<line num="
|
4923 |
-
<line num="
|
4924 |
-
<line num="
|
4925 |
-
<line num="
|
4926 |
-
<line num="
|
4927 |
-
<line num="
|
4928 |
-
<line num="
|
4929 |
-
<line num="359" type="
|
4930 |
-
<line num="360" type="stmt" count="
|
4931 |
-
<line num="
|
4932 |
-
<line num="
|
4933 |
-
<line num="
|
4934 |
-
<line num="
|
4935 |
-
<line num="
|
4936 |
-
<line num="
|
4937 |
-
<line num="
|
4938 |
-
<line num="
|
4939 |
-
<line num="
|
4940 |
-
<line num="
|
4941 |
-
<line num="
|
4942 |
-
<line num="
|
4943 |
-
<line num="
|
4944 |
-
<line num="
|
4945 |
-
<line num="
|
4946 |
-
<line num="
|
4947 |
-
<line num="
|
4948 |
-
<line num="
|
4949 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4950 |
</file>
|
4951 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
|
4952 |
<class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
@@ -71706,7 +71712,7 @@
|
|
71706 |
</file>
|
71707 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-import.php">
|
71708 |
<class name="Test_Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
|
71709 |
-
<metrics complexity="11" methods="11" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="
|
71710 |
</class>
|
71711 |
<line num="27" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="10"/>
|
71712 |
<line num="28" type="stmt" count="10"/>
|
@@ -71755,97 +71761,92 @@
|
|
71755 |
<line num="97" type="stmt" count="1"/>
|
71756 |
<line num="103" type="method" name="test_import_lines" visibility="public" complexity="1" crap="1" count="1"/>
|
71757 |
<line num="104" type="stmt" count="1"/>
|
71758 |
-
<line num="
|
71759 |
<line num="108" type="stmt" count="1"/>
|
71760 |
-
<line num="109" type="stmt" count="1"/>
|
71761 |
-
<line num="110" type="stmt" count="1"/>
|
71762 |
-
<line num="111" type="stmt" count="1"/>
|
71763 |
-
<line num="112" type="stmt" count="1"/>
|
71764 |
-
<line num="113" type="stmt" count="1"/>
|
71765 |
-
<line num="114" type="stmt" count="1"/>
|
71766 |
-
<line num="120" type="method" name="test_import_string" visibility="public" complexity="1" crap="1" count="1"/>
|
71767 |
-
<line num="121" type="stmt" count="1"/>
|
71768 |
-
<line num="122" type="stmt" count="1"/>
|
71769 |
-
<line num="123" type="stmt" count="1"/>
|
71770 |
-
<line num="124" type="stmt" count="1"/>
|
71771 |
<line num="125" type="stmt" count="1"/>
|
71772 |
-
<line num="
|
71773 |
-
<line num="
|
71774 |
-
<line num="
|
|
|
71775 |
<line num="136" type="stmt" count="1"/>
|
71776 |
-
<line num="
|
71777 |
<line num="139" type="stmt" count="1"/>
|
71778 |
-
<line num="
|
71779 |
-
<line num="
|
71780 |
-
<line num="
|
71781 |
-
<line num="145" type="stmt" count="1"/>
|
71782 |
-
<line num="146" type="stmt" count="1"/>
|
71783 |
-
<line num="147" type="stmt" count="1"/>
|
71784 |
-
<line num="149" type="stmt" count="1"/>
|
71785 |
<line num="150" type="stmt" count="1"/>
|
71786 |
<line num="151" type="stmt" count="1"/>
|
71787 |
-
<line num="
|
|
|
|
|
|
|
|
|
71788 |
<line num="159" type="stmt" count="1"/>
|
71789 |
<line num="161" type="stmt" count="1"/>
|
71790 |
<line num="162" type="stmt" count="1"/>
|
71791 |
<line num="163" type="stmt" count="1"/>
|
71792 |
-
<line num="
|
71793 |
-
<line num="166" type="stmt" count="1"/>
|
71794 |
-
<line num="167" type="stmt" count="1"/>
|
71795 |
-
<line num="169" type="stmt" count="1"/>
|
71796 |
-
<line num="170" type="stmt" count="1"/>
|
71797 |
<line num="171" type="stmt" count="1"/>
|
71798 |
-
<line num="
|
71799 |
-
<line num="
|
71800 |
-
<line num="
|
|
|
|
|
|
|
|
|
71801 |
<line num="182" type="stmt" count="1"/>
|
71802 |
<line num="183" type="stmt" count="1"/>
|
71803 |
<line num="184" type="stmt" count="1"/>
|
71804 |
-
<line num="
|
71805 |
-
<line num="186" type="stmt" count="1"/>
|
71806 |
-
<line num="187" type="stmt" count="1"/>
|
71807 |
-
<line num="188" type="stmt" count="1"/>
|
71808 |
-
<line num="189" type="stmt" count="1"/>
|
71809 |
-
<line num="191" type="stmt" count="1"/>
|
71810 |
<line num="192" type="stmt" count="1"/>
|
71811 |
-
<line num="193" type="stmt" count="1"/>
|
71812 |
<line num="194" type="stmt" count="1"/>
|
71813 |
<line num="195" type="stmt" count="1"/>
|
71814 |
<line num="196" type="stmt" count="1"/>
|
71815 |
<line num="197" type="stmt" count="1"/>
|
|
|
71816 |
<line num="199" type="stmt" count="1"/>
|
71817 |
<line num="200" type="stmt" count="1"/>
|
71818 |
-
<line num="
|
71819 |
<line num="203" type="stmt" count="1"/>
|
71820 |
<line num="204" type="stmt" count="1"/>
|
71821 |
<line num="205" type="stmt" count="1"/>
|
71822 |
<line num="206" type="stmt" count="1"/>
|
71823 |
<line num="207" type="stmt" count="1"/>
|
71824 |
-
<line num="
|
|
|
|
|
|
|
|
|
71825 |
<line num="215" type="stmt" count="1"/>
|
71826 |
<line num="216" type="stmt" count="1"/>
|
71827 |
<line num="217" type="stmt" count="1"/>
|
71828 |
<line num="218" type="stmt" count="1"/>
|
71829 |
<line num="219" type="stmt" count="1"/>
|
71830 |
-
<line num="226" type="method" name="
|
71831 |
<line num="227" type="stmt" count="1"/>
|
71832 |
<line num="228" type="stmt" count="1"/>
|
71833 |
<line num="229" type="stmt" count="1"/>
|
71834 |
-
<line num="
|
71835 |
-
<line num="
|
71836 |
-
<line num="
|
71837 |
-
<line num="236" type="stmt" count="1"/>
|
71838 |
-
<line num="237" type="stmt" count="1"/>
|
71839 |
<line num="239" type="stmt" count="1"/>
|
71840 |
<line num="240" type="stmt" count="1"/>
|
71841 |
<line num="241" type="stmt" count="1"/>
|
71842 |
-
<line num="242" type="stmt" count="1"/>
|
71843 |
<line num="244" type="stmt" count="1"/>
|
71844 |
<line num="245" type="stmt" count="1"/>
|
71845 |
-
<line num="
|
71846 |
<line num="248" type="stmt" count="1"/>
|
71847 |
-
<line num="
|
71848 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71849 |
</file>
|
71850 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-notices.php">
|
71851 |
<class name="Test_Boldgrid_Backup_Admin_Notice_Counts" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Notice">
|
@@ -76723,7 +76724,7 @@
|
|
76723 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
76724 |
</file>
|
76725 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
76726 |
-
<class name="
|
76727 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
76728 |
</class>
|
76729 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
@@ -76815,7 +76816,7 @@
|
|
76815 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
76816 |
</file>
|
76817 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
76818 |
-
<class name="
|
76819 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
76820 |
</class>
|
76821 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
@@ -96034,6 +96035,6 @@
|
|
96034 |
<line num="16" type="stmt" count="0"/>
|
96035 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
96036 |
</file>
|
96037 |
-
<metrics files="961" loc="
|
96038 |
</project>
|
96039 |
</coverage>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<coverage generated="1596215120">
|
3 |
+
<project timestamp="1596215120">
|
4 |
<package name="Boldgrid\Backup\Admin\Card">
|
5 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
|
6 |
<class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
|
4797 |
</file>
|
4798 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php">
|
4799 |
<class name="Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
4800 |
+
<metrics complexity="46" methods="14" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="139" coveredstatements="125" elements="153" coveredelements="136"/>
|
4801 |
</class>
|
4802 |
<line num="45" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="13"/>
|
4803 |
<line num="47" type="stmt" count="13"/>
|
4834 |
<line num="126" type="stmt" count="1"/>
|
4835 |
<line num="129" type="stmt" count="0"/>
|
4836 |
<line num="131" type="stmt" count="0"/>
|
4837 |
+
<line num="150" type="method" name="import_lines" visibility="public" complexity="7" crap="8.40" count="3"/>
|
4838 |
<line num="151" type="stmt" count="3"/>
|
4839 |
<line num="153" type="stmt" count="3"/>
|
4840 |
+
<line num="155" type="stmt" count="1"/>
|
4841 |
+
<line num="156" type="stmt" count="1"/>
|
4842 |
+
<line num="160" type="stmt" count="2"/>
|
4843 |
+
<line num="169" type="stmt" count="2"/>
|
4844 |
+
<line num="173" type="stmt" count="2"/>
|
4845 |
+
<line num="174" type="stmt" count="2"/>
|
4846 |
+
<line num="175" type="stmt" count="2"/>
|
4847 |
+
<line num="176" type="stmt" count="2"/>
|
4848 |
+
<line num="178" type="stmt" count="2"/>
|
4849 |
+
<line num="180" type="stmt" count="2"/>
|
4850 |
+
<line num="181" type="stmt" count="1"/>
|
4851 |
+
<line num="182" type="stmt" count="1"/>
|
4852 |
+
<line num="185" type="stmt" count="2"/>
|
4853 |
+
<line num="188" type="stmt" count="2"/>
|
4854 |
+
<line num="189" type="stmt" count="2"/>
|
4855 |
+
<line num="192" type="stmt" count="2"/>
|
4856 |
+
<line num="193" type="stmt" count="2"/>
|
4857 |
+
<line num="196" type="stmt" count="2"/>
|
4858 |
+
<line num="198" type="stmt" count="0"/>
|
4859 |
+
<line num="201" type="stmt" count="0"/>
|
4860 |
+
<line num="202" type="stmt" count="0"/>
|
4861 |
+
<line num="203" type="stmt" count="0"/>
|
4862 |
+
<line num="204" type="stmt" count="0"/>
|
4863 |
+
<line num="205" type="stmt" count="0"/>
|
4864 |
+
<line num="218" type="stmt" count="0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4865 |
<line num="220" type="stmt" count="0"/>
|
4866 |
+
<line num="221" type="stmt" count="0"/>
|
4867 |
+
<line num="222" type="stmt" count="0"/>
|
4868 |
+
<line num="223" type="stmt" count="0"/>
|
4869 |
+
<line num="226" type="stmt" count="2"/>
|
4870 |
+
<line num="227" type="stmt" count="2"/>
|
4871 |
+
<line num="228" type="stmt" count="2"/>
|
4872 |
+
<line num="230" type="stmt" count="2"/>
|
4873 |
+
<line num="232" type="stmt" count="2"/>
|
4874 |
+
<line num="246" type="method" name="import_string" visibility="public" complexity="2" crap="2.02" count="1"/>
|
4875 |
+
<line num="247" type="stmt" count="1"/>
|
4876 |
+
<line num="249" type="stmt" count="1"/>
|
4877 |
+
<line num="251" type="stmt" count="1"/>
|
4878 |
+
<line num="252" type="stmt" count="0"/>
|
4879 |
+
<line num="255" type="stmt" count="1"/>
|
4880 |
+
<line num="257" type="stmt" count="1"/>
|
4881 |
+
<line num="273" type="method" name="logger_add" visibility="public" complexity="2" crap="2" count="4"/>
|
4882 |
+
<line num="274" type="stmt" count="4"/>
|
4883 |
+
<line num="275" type="stmt" count="1"/>
|
4884 |
+
<line num="276" type="stmt" count="1"/>
|
4885 |
+
<line num="277" type="stmt" count="4"/>
|
4886 |
+
<line num="289" type="method" name="fix_view_statements" visibility="public" complexity="7" crap="7" count="3"/>
|
4887 |
+
<line num="291" type="stmt" count="3"/>
|
4888 |
+
<line num="293" type="stmt" count="3"/>
|
4889 |
+
<line num="294" type="stmt" count="3"/>
|
4890 |
+
<line num="295" type="stmt" count="3"/>
|
4891 |
+
<line num="296" type="stmt" count="3"/>
|
4892 |
+
<line num="297" type="stmt" count="3"/>
|
4893 |
+
<line num="299" type="stmt" count="3"/>
|
4894 |
+
<line num="300" type="stmt" count="1"/>
|
|
|
4895 |
<line num="303" type="stmt" count="3"/>
|
4896 |
+
<line num="305" type="stmt" count="3"/>
|
|
|
4897 |
<line num="306" type="stmt" count="1"/>
|
4898 |
+
<line num="309" type="stmt" count="3"/>
|
|
|
4899 |
<line num="311" type="stmt" count="3"/>
|
4900 |
<line num="312" type="stmt" count="3"/>
|
4901 |
+
<line num="313" type="stmt" count="2"/>
|
4902 |
+
<line num="314" type="stmt" count="2"/>
|
4903 |
+
<line num="315" type="stmt" count="3"/>
|
4904 |
+
<line num="317" type="stmt" count="3"/>
|
4905 |
+
<line num="319" type="stmt" count="3"/>
|
4906 |
+
<line num="332" type="method" name="fix_definer" visibility="public" complexity="3" crap="3" count="3"/>
|
4907 |
+
<line num="333" type="stmt" count="3"/>
|
4908 |
+
<line num="334" type="stmt" count="3"/>
|
4909 |
+
<line num="335" type="stmt" count="3"/>
|
4910 |
+
<line num="336" type="stmt" count="3"/>
|
4911 |
+
<line num="337" type="stmt" count="1"/>
|
4912 |
+
<line num="338" type="stmt" count="1"/>
|
4913 |
+
<line num="339" type="stmt" count="3"/>
|
4914 |
+
<line num="342" type="stmt" count="3"/>
|
4915 |
+
<line num="343" type="stmt" count="3"/>
|
4916 |
+
<line num="344" type="stmt" count="3"/>
|
4917 |
+
<line num="345" type="stmt" count="1"/>
|
4918 |
+
<line num="348" type="stmt" count="3"/>
|
4919 |
+
<line num="359" type="method" name="has_db_privileges" visibility="public" complexity="3" crap="3" count="6"/>
|
4920 |
+
<line num="360" type="stmt" count="6"/>
|
4921 |
+
<line num="361" type="stmt" count="6"/>
|
4922 |
+
<line num="362" type="stmt" count="6"/>
|
4923 |
+
<line num="364" type="stmt" count="1"/>
|
4924 |
+
<line num="365" type="stmt" count="1"/>
|
4925 |
+
<line num="367" type="stmt" count="1"/>
|
4926 |
+
<line num="379" type="method" name="get_db_privileges" visibility="public" complexity="7" crap="7" count="6"/>
|
4927 |
+
<line num="380" type="stmt" count="6"/>
|
4928 |
+
<line num="382" type="stmt" count="6"/>
|
4929 |
+
<line num="383" type="stmt" count="6"/>
|
4930 |
+
<line num="384" type="stmt" count="6"/>
|
4931 |
+
<line num="385" type="stmt" count="6"/>
|
4932 |
+
<line num="386" type="stmt" count="6"/>
|
4933 |
+
<line num="388" type="stmt" count="6"/>
|
4934 |
+
<line num="389" type="stmt" count="5"/>
|
4935 |
+
<line num="391" type="stmt" count="1"/>
|
4936 |
+
<line num="392" type="stmt" count="1"/>
|
4937 |
+
<line num="394" type="stmt" count="1"/>
|
4938 |
+
<line num="395" type="stmt" count="1"/>
|
4939 |
+
<line num="407" type="method" name="show_grants_query" visibility="public" complexity="1" crap="1" count="5"/>
|
4940 |
+
<line num="408" type="stmt" count="5"/>
|
4941 |
+
<line num="409" type="stmt" count="5"/>
|
4942 |
+
<line num="410" type="stmt" count="5"/>
|
4943 |
+
<line num="425" type="method" name="exec_import" visibility="public" complexity="1" crap="1" count="1"/>
|
4944 |
+
<line num="426" type="stmt" count="1"/>
|
4945 |
+
<line num="437" type="method" name="get_grants_array" visibility="public" complexity="3" crap="3" count="2"/>
|
4946 |
+
<line num="438" type="stmt" count="2"/>
|
4947 |
+
<line num="440" type="stmt" count="2"/>
|
4948 |
+
<line num="441" type="stmt" count="2"/>
|
4949 |
+
<line num="442" type="stmt" count="2"/>
|
4950 |
+
<line num="444" type="stmt" count="2"/>
|
4951 |
+
<line num="445" type="stmt" count="2"/>
|
4952 |
+
<line num="446" type="stmt" count="2"/>
|
4953 |
+
<line num="447" type="stmt" count="2"/>
|
4954 |
+
<line num="449" type="stmt" count="2"/>
|
4955 |
+
<metrics loc="451" ncloc="234" classes="1" methods="14" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="139" coveredstatements="125" elements="153" coveredelements="136"/>
|
4956 |
</file>
|
4957 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-omit.php">
|
4958 |
<class name="Boldgrid_Backup_Admin_Db_Omit" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
|
71712 |
</file>
|
71713 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-import.php">
|
71714 |
<class name="Test_Boldgrid_Backup_Admin_Db_Import" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
|
71715 |
+
<metrics complexity="11" methods="11" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="121" elements="132" coveredelements="132"/>
|
71716 |
</class>
|
71717 |
<line num="27" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="10"/>
|
71718 |
<line num="28" type="stmt" count="10"/>
|
71761 |
<line num="97" type="stmt" count="1"/>
|
71762 |
<line num="103" type="method" name="test_import_lines" visibility="public" complexity="1" crap="1" count="1"/>
|
71763 |
<line num="104" type="stmt" count="1"/>
|
71764 |
+
<line num="107" type="stmt" count="1"/>
|
71765 |
<line num="108" type="stmt" count="1"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71766 |
<line num="125" type="stmt" count="1"/>
|
71767 |
+
<line num="132" type="method" name="test_import_string" visibility="public" complexity="1" crap="1" count="1"/>
|
71768 |
+
<line num="133" type="stmt" count="1"/>
|
71769 |
+
<line num="134" type="stmt" count="1"/>
|
71770 |
+
<line num="135" type="stmt" count="1"/>
|
71771 |
<line num="136" type="stmt" count="1"/>
|
71772 |
+
<line num="137" type="stmt" count="1"/>
|
71773 |
<line num="139" type="stmt" count="1"/>
|
71774 |
+
<line num="140" type="stmt" count="1"/>
|
71775 |
+
<line num="147" type="method" name="test_fix_view_statements" visibility="public" complexity="1" crap="1" count="1"/>
|
71776 |
+
<line num="148" type="stmt" count="1"/>
|
|
|
|
|
|
|
|
|
71777 |
<line num="150" type="stmt" count="1"/>
|
71778 |
<line num="151" type="stmt" count="1"/>
|
71779 |
+
<line num="153" type="stmt" count="1"/>
|
71780 |
+
<line num="154" type="stmt" count="1"/>
|
71781 |
+
<line num="156" type="stmt" count="1"/>
|
71782 |
+
<line num="157" type="stmt" count="1"/>
|
71783 |
+
<line num="158" type="stmt" count="1"/>
|
71784 |
<line num="159" type="stmt" count="1"/>
|
71785 |
<line num="161" type="stmt" count="1"/>
|
71786 |
<line num="162" type="stmt" count="1"/>
|
71787 |
<line num="163" type="stmt" count="1"/>
|
71788 |
+
<line num="170" type="method" name="test_fix_definer" visibility="public" complexity="1" crap="1" count="1"/>
|
|
|
|
|
|
|
|
|
71789 |
<line num="171" type="stmt" count="1"/>
|
71790 |
+
<line num="173" type="stmt" count="1"/>
|
71791 |
+
<line num="174" type="stmt" count="1"/>
|
71792 |
+
<line num="175" type="stmt" count="1"/>
|
71793 |
+
<line num="177" type="stmt" count="1"/>
|
71794 |
+
<line num="178" type="stmt" count="1"/>
|
71795 |
+
<line num="179" type="stmt" count="1"/>
|
71796 |
+
<line num="181" type="stmt" count="1"/>
|
71797 |
<line num="182" type="stmt" count="1"/>
|
71798 |
<line num="183" type="stmt" count="1"/>
|
71799 |
<line num="184" type="stmt" count="1"/>
|
71800 |
+
<line num="191" type="method" name="test_has_db_privileges" visibility="public" complexity="1" crap="1" count="1"/>
|
|
|
|
|
|
|
|
|
|
|
71801 |
<line num="192" type="stmt" count="1"/>
|
|
|
71802 |
<line num="194" type="stmt" count="1"/>
|
71803 |
<line num="195" type="stmt" count="1"/>
|
71804 |
<line num="196" type="stmt" count="1"/>
|
71805 |
<line num="197" type="stmt" count="1"/>
|
71806 |
+
<line num="198" type="stmt" count="1"/>
|
71807 |
<line num="199" type="stmt" count="1"/>
|
71808 |
<line num="200" type="stmt" count="1"/>
|
71809 |
+
<line num="201" type="stmt" count="1"/>
|
71810 |
<line num="203" type="stmt" count="1"/>
|
71811 |
<line num="204" type="stmt" count="1"/>
|
71812 |
<line num="205" type="stmt" count="1"/>
|
71813 |
<line num="206" type="stmt" count="1"/>
|
71814 |
<line num="207" type="stmt" count="1"/>
|
71815 |
+
<line num="208" type="stmt" count="1"/>
|
71816 |
+
<line num="209" type="stmt" count="1"/>
|
71817 |
+
<line num="211" type="stmt" count="1"/>
|
71818 |
+
<line num="212" type="stmt" count="1"/>
|
71819 |
+
<line num="214" type="stmt" count="1"/>
|
71820 |
<line num="215" type="stmt" count="1"/>
|
71821 |
<line num="216" type="stmt" count="1"/>
|
71822 |
<line num="217" type="stmt" count="1"/>
|
71823 |
<line num="218" type="stmt" count="1"/>
|
71824 |
<line num="219" type="stmt" count="1"/>
|
71825 |
+
<line num="226" type="method" name="test_get_grants_array" visibility="public" complexity="1" crap="1" count="1"/>
|
71826 |
<line num="227" type="stmt" count="1"/>
|
71827 |
<line num="228" type="stmt" count="1"/>
|
71828 |
<line num="229" type="stmt" count="1"/>
|
71829 |
+
<line num="230" type="stmt" count="1"/>
|
71830 |
+
<line num="231" type="stmt" count="1"/>
|
71831 |
+
<line num="238" type="method" name="test_get_db_privileges" visibility="public" complexity="1" crap="1" count="1"/>
|
|
|
|
|
71832 |
<line num="239" type="stmt" count="1"/>
|
71833 |
<line num="240" type="stmt" count="1"/>
|
71834 |
<line num="241" type="stmt" count="1"/>
|
|
|
71835 |
<line num="244" type="stmt" count="1"/>
|
71836 |
<line num="245" type="stmt" count="1"/>
|
71837 |
+
<line num="246" type="stmt" count="1"/>
|
71838 |
<line num="248" type="stmt" count="1"/>
|
71839 |
+
<line num="249" type="stmt" count="1"/>
|
71840 |
+
<line num="251" type="stmt" count="1"/>
|
71841 |
+
<line num="252" type="stmt" count="1"/>
|
71842 |
+
<line num="253" type="stmt" count="1"/>
|
71843 |
+
<line num="254" type="stmt" count="1"/>
|
71844 |
+
<line num="256" type="stmt" count="1"/>
|
71845 |
+
<line num="257" type="stmt" count="1"/>
|
71846 |
+
<line num="259" type="stmt" count="1"/>
|
71847 |
+
<line num="260" type="stmt" count="1"/>
|
71848 |
+
<line num="262" type="stmt" count="1"/>
|
71849 |
+
<metrics loc="263" ncloc="168" classes="1" methods="11" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="121" coveredstatements="121" elements="132" coveredelements="132"/>
|
71850 |
</file>
|
71851 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-notices.php">
|
71852 |
<class name="Test_Boldgrid_Backup_Admin_Notice_Counts" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Notice">
|
76724 |
<metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
|
76725 |
</file>
|
76726 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
|
76727 |
+
<class name="ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894" namespace="Composer\Autoload">
|
76728 |
<metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
|
76729 |
</class>
|
76730 |
<line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
|
76816 |
<metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
|
76817 |
</file>
|
76818 |
<file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
|
76819 |
+
<class name="ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894" namespace="global">
|
76820 |
<metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
|
76821 |
</class>
|
76822 |
<line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
|
96035 |
<line num="16" type="stmt" count="0"/>
|
96036 |
<metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
|
96037 |
</file>
|
96038 |
+
<metrics files="961" loc="192815" ncloc="117581" classes="870" methods="3583" coveredmethods="307" conditionals="0" coveredconditionals="0" statements="86544" coveredstatements="4583" elements="90127" coveredelements="4890"/>
|
96039 |
</project>
|
96040 |
</coverage>
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894::getLoader();
|
vendor/boldgrid/library/build/toggles-full.css
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.toggle-slide {
|
2 |
+
overflow: hidden;
|
3 |
+
cursor: pointer;
|
4 |
+
-webkit-user-select: none;
|
5 |
+
-moz-user-select: none;
|
6 |
+
-ms-user-select: none;
|
7 |
+
user-select: none;
|
8 |
+
direction: ltr;
|
9 |
+
text-align: center;
|
10 |
+
}
|
11 |
+
div.disabled > .toggle-slide {
|
12 |
+
opacity: 0.7;
|
13 |
+
pointer-events: none;
|
14 |
+
}
|
15 |
+
.toggle-slide .toggle-on,
|
16 |
+
.toggle-slide .toggle-off,
|
17 |
+
.toggle-slide .toggle-blob {
|
18 |
+
float: left;
|
19 |
+
}
|
20 |
+
.toggle-slide .toggle-blob {
|
21 |
+
position: relative;
|
22 |
+
z-index: 99;
|
23 |
+
cursor: hand;
|
24 |
+
cursor: grab;
|
25 |
+
}
|
26 |
+
.toggle-dark .toggle-slide {
|
27 |
+
border-radius: 5px;
|
28 |
+
box-shadow: 0 0 0 1px #242529, 0 1px 0 1px #666;
|
29 |
+
}
|
30 |
+
.toggle-dark .toggle-on,
|
31 |
+
.toggle-dark .toggle-off,
|
32 |
+
.toggle-dark .toggle-blob {
|
33 |
+
color: rgba(255, 255, 255, 0.7);
|
34 |
+
font-size: 11px;
|
35 |
+
}
|
36 |
+
.toggle-dark .toggle-on,
|
37 |
+
.toggle-dark .toggle-select .toggle-inner .active {
|
38 |
+
background: -webkit-linear-gradient(#1A70BE, #31A2E1);
|
39 |
+
background: linear-gradient(#1A70BE, #31A2E1);
|
40 |
+
}
|
41 |
+
.toggle-dark .toggle-off,
|
42 |
+
.toggle-dark .toggle-select .toggle-on {
|
43 |
+
background: -webkit-linear-gradient(#242529, #34363B);
|
44 |
+
background: linear-gradient(#242529, #34363B);
|
45 |
+
}
|
46 |
+
.toggle-dark .toggle-blob {
|
47 |
+
border-radius: 4px;
|
48 |
+
background: -webkit-linear-gradient(#CFCFCF, whiteSmoke);
|
49 |
+
background: linear-gradient(#CFCFCF, whiteSmoke);
|
50 |
+
box-shadow: inset 0 0 0 1px #888, inset 0 0 0 2px white;
|
51 |
+
}
|
52 |
+
.toggle-dark .toggle-blob:hover {
|
53 |
+
background: -webkit-linear-gradient(#c0c0c0, #dadada);
|
54 |
+
background: linear-gradient(#c0c0c0, #dadada);
|
55 |
+
box-shadow: inset 0 0 0 1px #888,inset 0 0 0 2px #ddd;
|
56 |
+
}
|
57 |
+
.toggle-iphone .toggle-slide {
|
58 |
+
border-radius: 9999px;
|
59 |
+
box-shadow: 0 0 0 1px #999;
|
60 |
+
}
|
61 |
+
.toggle-iphone .toggle-on,
|
62 |
+
.toggle-iphone .toggle-off {
|
63 |
+
color: white;
|
64 |
+
font-size: 18px;
|
65 |
+
font-weight: bold;
|
66 |
+
text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
|
67 |
+
}
|
68 |
+
.toggle-iphone .toggle-on {
|
69 |
+
border-radius: 9999px 0 0 9999px;
|
70 |
+
background: #037bda;
|
71 |
+
box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4);
|
72 |
+
}
|
73 |
+
.toggle-iphone .toggle-on:after {
|
74 |
+
background: -webkit-linear-gradient(#1189f1, #3797ef);
|
75 |
+
background: linear-gradient(#1189f1, #3797ef);
|
76 |
+
height: 50%;
|
77 |
+
content: '';
|
78 |
+
margin-top: -19%;
|
79 |
+
display: block;
|
80 |
+
border-radius: 9999px;
|
81 |
+
margin-left: 10%;
|
82 |
+
}
|
83 |
+
.toggle-iphone .toggle-off {
|
84 |
+
box-shadow: inset -2px 2px 5px rgba(0, 0, 0, 0.4);
|
85 |
+
border-radius: 0 9999px 9999px 0;
|
86 |
+
color: #828282;
|
87 |
+
background: #ECECEC;
|
88 |
+
text-shadow: 0 0 1px white;
|
89 |
+
}
|
90 |
+
.toggle-iphone .toggle-off:after {
|
91 |
+
background: -webkit-linear-gradient(#fafafa, #fdfdfd);
|
92 |
+
background: linear-gradient(#fafafa, #fdfdfd);
|
93 |
+
height: 50%;
|
94 |
+
content: '';
|
95 |
+
margin-top: -19%;
|
96 |
+
display: block;
|
97 |
+
margin-right: 10%;
|
98 |
+
border-radius: 9999px;
|
99 |
+
}
|
100 |
+
.toggle-iphone .toggle-blob {
|
101 |
+
border-radius: 50px;
|
102 |
+
background: -webkit-linear-gradient(#d1d1d1, #fafafa);
|
103 |
+
background: linear-gradient(#d1d1d1, #fafafa);
|
104 |
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 2px white, 0 0 3px rgba(0, 0, 0, 0.6);
|
105 |
+
}
|
106 |
+
.toggle-light .toggle-slide {
|
107 |
+
border-radius: 9999px;
|
108 |
+
box-shadow: 0 0 0 1px #999;
|
109 |
+
}
|
110 |
+
.toggle-light .toggle-on,
|
111 |
+
.toggle-light .toggle-off {
|
112 |
+
font-size: 11px;
|
113 |
+
font-weight: 500;
|
114 |
+
}
|
115 |
+
.toggle-light .toggle-on,
|
116 |
+
.toggle-light .toggle-select .toggle-inner .active {
|
117 |
+
background: #45a31f;
|
118 |
+
box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2);
|
119 |
+
text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
|
120 |
+
color: rgba(255, 255, 255, 0.8);
|
121 |
+
}
|
122 |
+
.toggle-light .toggle-off,
|
123 |
+
.toggle-light .toggle-select .toggle-on {
|
124 |
+
color: rgba(0, 0, 0, 0.6);
|
125 |
+
text-shadow: 0 1px rgba(255, 255, 255, 0.2);
|
126 |
+
background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
|
127 |
+
background: linear-gradient(#cfcfcf, #f5f5f5);
|
128 |
+
}
|
129 |
+
.toggle-light .toggle-blob {
|
130 |
+
border-radius: 50px;
|
131 |
+
background: -webkit-linear-gradient(#f5f5f5, #cfcfcf);
|
132 |
+
background: linear-gradient(#f5f5f5, #cfcfcf);
|
133 |
+
box-shadow: 1px 1px 2px #888;
|
134 |
+
}
|
135 |
+
.toggle-light .toggle-blob:hover {
|
136 |
+
background: -webkit-linear-gradient(#e4e4e4, #f9f9f9);
|
137 |
+
background: linear-gradient(#e4e4e4, #f9f9f9);
|
138 |
+
}
|
139 |
+
.toggle-modern .toggle-slide {
|
140 |
+
border-radius: 4px;
|
141 |
+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.2);
|
142 |
+
background: -webkit-linear-gradient(#c0c5c9, #a1a9af);
|
143 |
+
background: linear-gradient(#c0c5c9, #a1a9af);
|
144 |
+
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.15);
|
145 |
+
}
|
146 |
+
.toggle-modern .toggle-on,
|
147 |
+
.toggle-modern .toggle-off {
|
148 |
+
-webkit-transition: all 0.1s ease-out;
|
149 |
+
transition: all 0.1s ease-out;
|
150 |
+
color: white;
|
151 |
+
text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
|
152 |
+
font-size: 11px;
|
153 |
+
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.2);
|
154 |
+
}
|
155 |
+
.toggle-modern .toggle-select .toggle-off,
|
156 |
+
.toggle-modern .toggle-select .toggle-on {
|
157 |
+
background: none;
|
158 |
+
}
|
159 |
+
.toggle-modern .toggle-off,
|
160 |
+
.toggle-modern .toggle-off.active {
|
161 |
+
background: -webkit-linear-gradient(#737e8d, #3f454e);
|
162 |
+
background: linear-gradient(#737e8d, #3f454e);
|
163 |
+
}
|
164 |
+
.toggle-modern .toggle-on,
|
165 |
+
.toggle-modern .toggle-on.active {
|
166 |
+
background: -webkit-linear-gradient(#4894cd, #2852a6);
|
167 |
+
background: linear-gradient(#4894cd, #2852a6);
|
168 |
+
}
|
169 |
+
.toggle-modern .toggle-blob {
|
170 |
+
background: -webkit-linear-gradient(#c0c6c9, #81898f);
|
171 |
+
background: linear-gradient(#c0c6c9, #81898f);
|
172 |
+
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.2);
|
173 |
+
border-radius: 3px;
|
174 |
+
}
|
175 |
+
.toggle-modern .toggle-blob:hover {
|
176 |
+
background-image: -webkit-linear-gradient(#a1a9af, #a1a9af);
|
177 |
+
background-image: linear-gradient(#a1a9af, #a1a9af);
|
178 |
+
}
|
179 |
+
.toggle-soft .toggle-slide {
|
180 |
+
border-radius: 5px;
|
181 |
+
box-shadow: 0 0 0 1px #999;
|
182 |
+
}
|
183 |
+
.toggle-soft .toggle-on,
|
184 |
+
.toggle-soft .toggle-off {
|
185 |
+
color: rgba(0, 0, 0, 0.7);
|
186 |
+
font-size: 11px;
|
187 |
+
text-shadow: 1px 1px white;
|
188 |
+
}
|
189 |
+
.toggle-soft .toggle-on,
|
190 |
+
.toggle-soft .toggle-select .toggle-inner .active {
|
191 |
+
background: -webkit-linear-gradient(#d2ff52, #91e842);
|
192 |
+
background: linear-gradient(#d2ff52, #91e842);
|
193 |
+
}
|
194 |
+
.toggle-soft .toggle-off,
|
195 |
+
.toggle-soft .toggle-select .toggle-on {
|
196 |
+
background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
|
197 |
+
background: linear-gradient(#cfcfcf, #f5f5f5);
|
198 |
+
}
|
199 |
+
.toggle-soft .toggle-blob {
|
200 |
+
border-radius: 4px;
|
201 |
+
background: -webkit-linear-gradient(#cfcfcf, #f5f5f5);
|
202 |
+
background: linear-gradient(#cfcfcf, #f5f5f5);
|
203 |
+
box-shadow: inset 0 0 0 1px #bbb, inset 0 0 0 2px white;
|
204 |
+
}
|
205 |
+
.toggle-soft .toggle-blob:hover {
|
206 |
+
background: -webkit-linear-gradient(#e4e4e4, #f9f9f9);
|
207 |
+
background: linear-gradient(#e4e4e4, #f9f9f9);
|
208 |
+
box-shadow: inset 0 0 0 1px #ddd,inset 0 0 0 2px #ddd;
|
209 |
+
}
|
vendor/boldgrid/library/build/toggles.min.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
jQuery Toggles v4.0.0
|
3 |
+
Copyright 2012 - 2015 Simon Tabor - MIT License
|
4 |
+
https://github.com/simontabor/jquery-toggles / http://simontabor.com/labs/toggles
|
5 |
+
*/
|
6 |
+
(function(g){function p(q){var p=g.Toggles=function(c,a){var g=this;if("boolean"===typeof a&&c.data("toggles"))c.data("toggles").toggle(a);else{for(var k="on drag click width height animate easing type checkbox".split(" "),b={},l=0;l<k.length;l++){var t=c.data("toggle-"+k[l]);"undefined"!==typeof t&&(b[k[l]]=t)}a=q.extend({drag:!0,click:!0,text:{on:"ON",off:"OFF"},on:!1,animate:250,easing:"swing",checkbox:null,clicker:null,width:0,height:0,type:"compact",event:"toggle"},a||{},b);c.data("toggles",
|
7 |
+
g);var f=!a.on,n="select"===a.type,p=q(a.checkbox),k=a.clicker&&q(a.clicker),d=a.height||c.height()||20,m=a.width||c.width()||50;c.height(d);c.width(m);var b=function(a){return q('<div class="toggle-'+a+'">')},r=b("slide"),s=b("inner"),w=b("on"),x=b("off"),h=b("blob"),b=d/2,l=m-b,t=a.text;w.css({height:d,width:l,textIndent:n?"":-d/3,lineHeight:d+"px"}).html(t.on);x.css({height:d,width:l,marginLeft:n?"":-b,textIndent:n?"":d/3,lineHeight:d+"px"}).html(t.off);h.css({height:d,width:d,marginLeft:-b});
|
8 |
+
s.css({width:2*m-d,marginLeft:n?0:-m+d});n&&(r.addClass("toggle-select"),c.css("width",2*l),h.hide());s.append(w,h,x);r.html(s);c.html(r);var v=g.toggle=function(b,e,A){f!==b&&(f=g.active=!f,c.data("toggle-active",f),x.toggleClass("active",!f),w.toggleClass("active",f),p.prop("checked",f),A||c.trigger(a.event,f),n||(b=f?0:-m+d,s.stop().animate({marginLeft:b},e?0:a.animate,a.easing)))},b=function(b){c.hasClass("disabled")||b.target===h[0]&&a.drag||v()};if(a.click&&(!k||!k.has(c).length))c.on("click",
|
9 |
+
b);if(k)k.on("click",b);if(a.drag&&!n){var e,y=(m-d)/4,z=function(b){c.off("mousemove");r.off("mouseleave");h.off("mouseup");!e&&a.click&&"mouseleave"!==b.type?v():(f?e<-y:e>y)?v():s.stop().animate({marginLeft:f?0:-m+d},a.animate/2,a.easing)},u=-m+d;h.on("mousedown",function(a){if(!c.hasClass("disabled")){e=0;h.off("mouseup");r.off("mouseleave");var b=a.pageX;c.on("mousemove",h,function(a){e=a.pageX-b;f?(a=e,0<e&&(a=0),e<u&&(a=u)):(a=e+u,0>e&&(a=u),e>-u&&(a=0));s.css("margin-left",a)});h.on("mouseup",
|
10 |
+
z);r.on("mouseleave",z)}})}v(a.on,!0,!0)}};q.fn.toggles=function(c){return this.each(function(){new p(q(this),c)})}}"function"===typeof define&&define.amd?define(["jquery"],p):p(g.jQuery||g.Zepto||g.ender||g.$||$)})(this);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0c421976a240c121c845318e30b370ff
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit0c421976a240c121c845318e30b370ff
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit7dbb8a0a083de0357ac72f3ea5247894', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire7dbb8a0a083de0357ac72f3ea5247894($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire7dbb8a0a083de0357ac72f3ea5247894($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
@@ -91,9 +91,9 @@ class ComposerStaticInit0c421976a240c121c845318e30b370ff
|
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
-
$loader->prefixLengthsPsr4 =
|
95 |
-
$loader->prefixDirsPsr4 =
|
96 |
-
$loader->classMap =
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
91 |
public static function getInitializer(ClassLoader $loader)
|
92 |
{
|
93 |
return \Closure::bind(function () use ($loader) {
|
94 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$prefixLengthsPsr4;
|
95 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$prefixDirsPsr4;
|
96 |
+
$loader->classMap = ComposerStaticInit7dbb8a0a083de0357ac72f3ea5247894::$classMap;
|
97 |
|
98 |
}, null, ClassLoader::class);
|
99 |
}
|