Commit f512e7aa authored by Foad Tahmasebi's avatar Foad Tahmasebi
Browse files

init

parents
# Redirect to https
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.rtl\.daskhat\.ir$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "https\:\/\/rtl\.daskhat\.ir\/" [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
<?xml version="1.0" standalone="no"?><!-- Generator: Gravit.io --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="0 0 512 512" width="512" height="512"><defs><clipPath id="_clipPath_O77yBLUZouAdixhSCtTv3yI3R4pVobmL"><rect width="512" height="512"/></clipPath></defs><g clip-path="url(#_clipPath_O77yBLUZouAdixhSCtTv3yI3R4pVobmL)"><rect width="512" height="512" style="fill:rgb(74,134,232)"/><g><path d=" M 79.108 323.005 L 79.108 323.005 Q 75.242 323.005 72.757 320.335 L 72.757 320.335 L 72.757 320.335 Q 70.271 317.666 70.271 313.8 L 70.271 313.8 L 70.271 310.118 L 70.271 310.118 Q 70.271 306.068 72.757 303.398 L 72.757 303.398 L 72.757 303.398 Q 75.242 300.729 79.108 300.729 L 79.108 300.729 L 82.974 300.729 L 82.974 300.729 Q 86.84 300.729 89.326 303.398 L 89.326 303.398 L 89.326 303.398 Q 91.811 306.068 91.811 310.118 L 91.811 310.118 L 91.811 313.8 L 91.811 313.8 Q 91.811 317.666 89.326 320.335 L 89.326 320.335 L 89.326 320.335 Q 86.84 323.005 82.974 323.005 L 82.974 323.005 L 79.108 323.005 L 79.108 323.005 Z M 170.422 325.766 L 170.422 325.766 Q 138.389 325.766 120.807 308.921 L 120.807 308.921 L 120.807 308.921 Q 103.225 292.076 103.225 260.411 L 103.225 260.411 L 103.225 260.411 Q 103.225 228.561 120.439 211.808 L 120.439 211.808 L 120.439 211.808 Q 137.652 195.055 169.686 195.055 L 169.686 195.055 L 169.686 195.055 Q 183.125 195.055 194.079 197.724 L 194.079 197.724 L 194.079 197.724 Q 205.033 200.394 212.581 205.364 L 212.581 205.364 L 212.581 205.364 Q 214.422 206.653 214.422 208.31 L 214.422 208.31 L 214.422 208.31 Q 214.422 209.783 213.318 211.44 L 213.318 211.44 L 206.874 222.67 L 206.874 222.67 Q 205.586 224.695 204.297 224.695 L 204.297 224.695 L 204.297 224.695 Q 203.192 224.695 201.167 223.59 L 201.167 223.59 L 201.167 223.59 Q 189.385 216.963 173.368 216.963 L 173.368 216.963 L 173.368 216.963 Q 154.406 216.963 143.912 227.917 L 143.912 227.917 L 143.912 227.917 Q 133.418 238.871 133.418 260.411 L 133.418 260.411 L 133.418 260.411 Q 133.418 282.134 144.372 292.996 L 144.372 292.996 L 144.372 292.996 Q 155.326 303.858 174.288 303.858 L 174.288 303.858 L 174.288 303.858 Q 191.594 303.858 203.376 297.231 L 203.376 297.231 L 203.376 297.231 Q 205.402 296.126 206.506 296.126 L 206.506 296.126 L 206.506 296.126 Q 207.795 296.126 209.084 298.151 L 209.084 298.151 L 216.263 310.486 L 216.263 310.486 Q 217 311.775 217 312.695 L 217 312.695 L 217 312.695 Q 217 313.8 214.791 315.457 L 214.791 315.457 L 214.791 315.457 Q 200.431 325.766 170.422 325.766 L 170.422 325.766 L 170.422 325.766 Z M 279.778 325.766 L 279.778 325.766 Q 265.418 325.766 252.255 322.729 L 252.255 322.729 L 252.255 322.729 Q 239.092 319.691 230.992 314.168 L 230.992 314.168 L 230.992 314.168 Q 228.23 312.143 228.23 310.486 L 228.23 310.486 L 228.23 310.486 Q 228.23 309.381 229.151 307.909 L 229.151 307.909 L 236.699 295.942 L 236.699 295.942 Q 237.803 294.101 239.092 294.101 L 239.092 294.101 L 239.092 294.101 Q 240.197 294.101 241.854 295.206 L 241.854 295.206 L 241.854 295.206 Q 248.665 299.072 257.502 301.465 L 257.502 301.465 L 257.502 301.465 Q 266.339 303.858 275.36 303.858 L 275.36 303.858 L 275.36 303.858 Q 286.038 303.858 291.193 300.453 L 291.193 300.453 L 291.193 300.453 Q 296.347 297.047 296.347 289.683 L 296.347 289.683 L 296.347 289.683 Q 296.347 284.712 293.862 281.582 L 293.862 281.582 L 293.862 281.582 Q 291.377 278.452 286.498 276.059 L 286.498 276.059 L 286.498 276.059 Q 281.619 273.666 271.494 269.8 L 271.494 269.8 L 271.494 269.8 Q 259.711 265.381 251.519 260.779 L 251.519 260.779 L 251.519 260.779 Q 243.326 256.176 238.079 248.904 L 238.079 248.904 L 238.079 248.904 Q 232.833 241.632 232.833 231.139 L 232.833 231.139 L 232.833 231.139 Q 232.833 213.649 245.536 204.352 L 245.536 204.352 L 245.536 204.352 Q 258.238 195.055 279.042 195.055 L 279.042 195.055 L 279.042 195.055 Q 306.473 195.055 321.017 205.364 L 321.017 205.364 L 321.017 205.364 Q 323.778 207.574 323.778 209.046 L 323.778 209.046 L 323.778 209.046 Q 323.778 210.151 322.858 211.624 L 322.858 211.624 L 315.31 223.59 L 315.31 223.59 Q 314.205 225.431 312.916 225.431 L 312.916 225.431 L 312.916 225.431 Q 311.812 225.431 310.155 224.327 L 310.155 224.327 L 310.155 224.327 Q 298.925 216.963 282.908 216.963 L 282.908 216.963 L 282.908 216.963 Q 263.025 216.963 263.025 231.323 L 263.025 231.323 L 263.025 231.323 Q 263.025 236.109 265.326 239.147 L 265.326 239.147 L 265.326 239.147 Q 267.628 242.185 271.678 244.302 L 271.678 244.302 L 271.678 244.302 Q 275.728 246.419 284.381 249.733 L 284.381 249.733 L 289.536 251.758 L 289.536 251.758 Q 302.975 257.097 310.707 261.791 L 310.707 261.791 L 310.707 261.791 Q 318.44 266.486 322.582 273.298 L 322.582 273.298 L 322.582 273.298 Q 326.724 280.109 326.724 290.787 L 326.724 290.787 L 326.724 290.787 Q 326.724 306.804 314.665 316.285 L 314.665 316.285 L 314.665 316.285 Q 302.607 325.766 279.778 325.766 L 279.778 325.766 L 279.778 325.766 Z M 389.871 325.766 L 389.871 325.766 Q 375.511 325.766 362.348 322.729 L 362.348 322.729 L 362.348 322.729 Q 349.184 319.691 341.084 314.168 L 341.084 314.168 L 341.084 314.168 Q 338.322 312.143 338.322 310.486 L 338.322 310.486 L 338.322 310.486 Q 338.322 309.381 339.243 307.909 L 339.243 307.909 L 346.791 295.942 L 346.791 295.942 Q 347.896 294.101 349.184 294.101 L 349.184 294.101 L 349.184 294.101 Q 350.289 294.101 351.946 295.206 L 351.946 295.206 L 351.946 295.206 Q 358.758 299.072 367.594 301.465 L 367.594 301.465 L 367.594 301.465 Q 376.431 303.858 385.452 303.858 L 385.452 303.858 L 385.452 303.858 Q 396.13 303.858 401.285 300.453 L 401.285 300.453 L 401.285 300.453 Q 406.44 297.047 406.44 289.683 L 406.44 289.683 L 406.44 289.683 Q 406.44 284.712 403.954 281.582 L 403.954 281.582 L 403.954 281.582 Q 401.469 278.452 396.59 276.059 L 396.59 276.059 L 396.59 276.059 Q 391.712 273.666 381.586 269.8 L 381.586 269.8 L 381.586 269.8 Q 369.804 265.381 361.611 260.779 L 361.611 260.779 L 361.611 260.779 Q 353.419 256.176 348.172 248.904 L 348.172 248.904 L 348.172 248.904 Q 342.925 241.632 342.925 231.139 L 342.925 231.139 L 342.925 231.139 Q 342.925 213.649 355.628 204.352 L 355.628 204.352 L 355.628 204.352 Q 368.331 195.055 389.134 195.055 L 389.134 195.055 L 389.134 195.055 Q 416.565 195.055 431.109 205.364 L 431.109 205.364 L 431.109 205.364 Q 433.871 207.574 433.871 209.046 L 433.871 209.046 L 433.871 209.046 Q 433.871 210.151 432.95 211.624 L 432.95 211.624 L 425.402 223.59 L 425.402 223.59 Q 424.298 225.431 423.009 225.431 L 423.009 225.431 L 423.009 225.431 Q 421.904 225.431 420.247 224.327 L 420.247 224.327 L 420.247 224.327 Q 409.017 216.963 393 216.963 L 393 216.963 L 393 216.963 Q 373.118 216.963 373.118 231.323 L 373.118 231.323 L 373.118 231.323 Q 373.118 236.109 375.419 239.147 L 375.419 239.147 L 375.419 239.147 Q 377.72 242.185 381.77 244.302 L 381.77 244.302 L 381.77 244.302 Q 385.82 246.419 394.473 249.733 L 394.473 249.733 L 399.628 251.758 L 399.628 251.758 Q 413.067 257.097 420.8 261.791 L 420.8 261.791 L 420.8 261.791 Q 428.532 266.486 432.674 273.298 L 432.674 273.298 L 432.674 273.298 Q 436.816 280.109 436.816 290.787 L 436.816 290.787 L 436.816 290.787 Q 436.816 306.804 424.758 316.285 L 424.758 316.285 L 424.758 316.285 Q 412.699 325.766 389.871 325.766 L 389.871 325.766 L 389.871 325.766 Z " fill-rule="evenodd" fill="rgb(255,255,255)"/></g></g></svg>
\ No newline at end of file
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : Mar 28, 2014, 12:45:54 AM
Author : Foad
*/
* {
margin : 0;
padding : 0;
box-sizing : border-box;
-webkit-box-sizing : border-box
}
html {
background-color : #f3f3f3;
}
body {
font-family : "Open Sans";
}
.wrap {
width : 100%;
padding : 50px;
background-color : #ffffff;
}
#wrapper {
width : 100%;
/*margin : 10px auto;*/
/*border : 1px solid #DDD;*/
/*border-radius : 3px;*/
/*padding : 10px 0 50px;*/
/*background : #f4f4f4;*/
overflow : hidden;
text-align : center;
}
.ltr {
border : none;
width : 49.5%;
float : left;
margin : 0 .25%;
border-radius : 3px;
color : #444444;
}
#ltr-editor {
width : 100%;
height : 55vh;
border-radius : 3px;
margin : 10px 0 10px;
}
.rtl {
border-left : none;
width : 49.5%;
float : right;
margin : 0 .25%;
border-radius : 3px;
color : #444444;
}
#rtl-editor {
width : 100%;
height : 55vh;
border-radius : 3px;
margin : 10px 0 10px;
}
.ltr-hint {
padding : 0 20px;
text-align : left;
font-size : 13px;
color : #555555;
}
.red {
color : rgba(255, 17, 0, 0.67);
}
.clear {
clear : both;
}
.right {
float : right;
}
.left {
float : left;
}
.center {
text-align : center;
margin : auto;
}
textarea {
height : 70vh;
width : 100%;
}
input[type="submit"] {
padding : 5px 10px;
font : bold 12px Tahoma;
margin : 5px auto;
}
form input[type="checkbox"] {
margin : 30px 0 10px 30px;
}
form label {
font-size : 14px;
color : #444444;
vertical-align : middle;
display : inline-block;
}
input[type=checkbox][disabled] + label {
color : #cccccc;
}
.green-btn {
color : #ffffff;
border : 2px solid #27ae60;
padding : 7px 100px;
background-color : #2ecc71;
border-radius : 3px;
font-weight : bold;
margin-top : 10px;
text-decoration : none;
}
.green-btn:hover {
background : #27ae60;
cursor : pointer;
}
header {
width : 100%;
min-height : 80px;
border-bottom : 1px solid #e3e3e3;
background : #ffffff;
padding : 15px;
box-shadow : 0 1px 1px rgba(150, 150, 150, .1);
color : #444444;
}
footer {
width : 100%;
height : 80px;
padding : 30px 50px;
background : #f0f7f7;
color : #444444;
box-shadow : 0 5px 1px rgba(150, 150, 150, .1);
font-weight : 200;
font-size : 14px;
border-top : 3px solid #dde8e8;
}
h1, h2, h3, h4, h5, h6 {
font-family : "Open Sans", serif;
}
nav ul {
}
nav ul li {
list-style : none;
float : left;
margin-left : 20px;
}
nav ul li a {
text-decoration : none;
color : #444444;
}
nav ul li a:hover {
text-decoration : underline
}
#stat {
border-top : 1px solid #e3e3e3;
background-color : #e3e3e3;
padding : 60px 0 10px;
}
#stat ul {
width : 100%;
text-align : center;
margin-bottom : 30px;
}
#stat ul li {
width : 32%;
list-style : none;
display : inline-block;
color : #888888;
}
#stat ul li span {
font-size : 40px;
clear : both;
display : block;
color : #000000;
}
#stat p {
font-size : 12px;
text-align : center;
padding : 0 50px;
color : #888888;
}
#content {
width : 100%;
border-top : 1px solid #dddddd;
}
.title {
text-align : left;
width : 100%;
}
.title span {
font-size : 12px;
color : #666666;
}
.tips {
width : 100%;
margin : 10px 0;
overflow : hidden;
}
.tips p {
padding : 10px;
font : 16px "Open Sans";
line-height : 22px;
}
pre {
height : 85px;
}
.code {
border-top : 1px solid #dddddd;
width : 100%;
padding : 5px;
margin : 0;
white-space : pre-line;
border-radius : 0 0 3px 3px;
}
.hint {
font-size : 14px;
margin-top : 20px;
}
.hint > span {
color : #aaaaaa;
}
.pay-hint {
font-size : 12px;
margin-top : 20px;
color : #999999;
}
.donate {
display : block;
text-align : center;
background-color : #f9f9f9;
border-bottom : 1px solid #f3f3f3;
padding : 30px;
width : 100%;
}
.gift {
text-align : center;
background-color : #f9f9f9;
padding : 30px 30px 10px;
width : 100%;
color : #888888;
text-decoration : none;
}
#donate-btn {
display : none;
}
.love {
width : 100%;
background : #ffffff;
padding : 70px;
border : 1px solid #dddddd;
}
.love-inner {
width : fit-content;
width : -moz-fit-content;
margin : auto;
position : relative;
display : table;
}
.love-stat {
margin-left : 50px;
}
.loves_number {
margin-top : 50px;
/*font-weight: bold;*/
font-size : 32px;
color : #444444;
}
.heart {
width : 100px;
height : 100px;
position : absolute;
left : 10%;
top : 50%;
transform : translate(-50%, -50%);
background : url(heart.png) no-repeat 0 0;
cursor : pointer;
animation : fave-heart 1s steps(28);
}
.heart:hover {
background-position : -2800px 0;
transition : background 1s steps(28);
}
.tabl {
width : 280px;
height : 66px;
border : 1px solid #2980b9;
border-radius : 5px;
position : fixed;
right : 10px;
bottom : 10px;
z-index : 99;
background : #FFF;
/*overflow : hidden;*/
}
.tabl .image {
width : 65px;
height : 100%;
float : left;
border-right : 1px solid #2980b9;
text-align : center;
}
.tabl .image img {
background : #FFF;
zoom : .8;
width: 100%;
}
.tabl .tabl-entry {
float : left;
padding : 10px;
font-family : "Open Sans", serif;
}
.tabl .tabl-entry a {
font-family : Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
font-size : 13px;
color : #444444;
text-decoration : none;
}
.tabl i {
color : #2980b9;
}
@keyframes fave-heart {
0% {
background-position : 0 0;
}
100% {
background-position : -2800px 0;
}
}
@media only screen and(max-width : 769px) {
.rtl, .ltr {
width : 100%;
}
#stat ul li {
width : 100%;
display : block;
margin-bottom : 20px;
}
.tabl {
display : none;
}
}
\ No newline at end of file
*{margin:0;padding:0;box-sizing:border-box;-webkit-box-sizing:border-box}html{background-color:#f3f3f3}body{font-family:"Open Sans"}.wrap{width:100%;padding:50px;background-color:#fff}#wrapper{width:100%;margin:0 auto;padding:0;overflow:hidden;text-align:center}.ltr{border:0;width:49.5%;float:left;margin:0 .25%;border-radius:3px;color:#444}#ltr-editor{width:100%;height:55vh;border-radius:3px;margin:10px 0 10px}.rtl{border-left:0;width:49.5%;float:right;margin:0 .25%;border-radius:3px;color:#444}#rtl-editor{width:100%;height:55vh;border-radius:3px;margin:10px 0 10px}.ltr-hint{padding:0 20px;text-align:left;font-size:13px;color:#555}.red{color:rgba(255,17,0,0.67)}.clear{clear:both}.right{float:right}.left{float:left}.center{text-align:center;margin:auto}textarea{height:70vh;width:100%}input[type="submit"]{padding:5px 10px;font:bold 12px Tahoma;margin:5px auto}form input[type="checkbox"]{margin:30px 0 10px 30px}form label{font-size:14px;color:#444;vertical-align:middle;display:inline-block}input[type=checkbox][disabled]+label{color:#ccc}.green-btn{color:#fff;border:2px solid #27ae60;padding:7px 100px;background-color:#2ecc71;border-radius:3px;font-weight:bold;margin-top:10px;text-decoration:none}.green-btn:hover{background:#27ae60;cursor:pointer}header{width:100%;min-height:80px;border-bottom:1px solid #e3e3e3;background:#fff;padding:15px;box-shadow:0 1px 1px rgba(150,150,150,.1);color:#444}footer{width:100%;height:80px;padding:30px 50px;background:#f0f7f7;color:#444;box-shadow:0 5px 1px rgba(150,150,150,.1);font-weight:200;font-size:14px;border-top:3px solid #dde8e8}h1,h2,h3,h4,h5,h6{font-family:"Open Sans",serif}nav ul li{list-style:none;float:left;margin-left:20px}nav ul li a{text-decoration:none;color:#444}nav ul li a:hover{text-decoration:underline}#stat{border-top:1px solid #e3e3e3;background-color:#e3e3e3;padding:60px 0 10px}#stat ul{width:100%;text-align:center;margin-bottom:30px}#stat ul li{width:32%;list-style:none;display:inline-block;color:#888}#stat ul li span{font-size:40px;clear:both;display:block;color:#000}#stat p{font-size:12px;text-align:center;padding:0 50px;color:#888}#content{width:100%;border-top:1px solid #ddd}.title{text-align:left;width:100%}.title span{font-size:12px;color:#666}.tips{width:100%;margin:10px 0;overflow:hidden}.tips p{padding:10px;font:16px "Open Sans";line-height:22px}pre{height:85px}.code{border-top:1px solid #ddd;width:100%;padding:5px;margin:0;white-space:pre-line;border-radius:0 0 3px 3px}.hint{font-size:14px;margin-top:20px}.hint>span{color:#aaa}.pay-hint{font-size:12px;margin-top:20px;color:#999}.donate{display:block;text-align:center;background-color:#f9f9f9;border-bottom:1px solid #f3f3f3;padding:30px;width:100%}.gift{text-align:center;background-color:#f9f9f9;padding:30px 30px 10px;width:100%;color:#888;text-decoration:none}#donate-btn{display:none}.love{width:100%;background:#fff;padding:70px;border:1px solid #ddd}.love-inner{width:fit-content;width:-moz-fit-content;margin:auto;position:relative;display:table}.love-stat{margin-left:50px}.loves_number{margin-top:50px;font-size:32px;color:#444}.heart{width:100px;height:100px;position:absolute;left:10%;top:50%;transform:translate(-50%,-50%);background:url(heart.png) no-repeat 0 0;cursor:pointer;animation:fave-heart 1s steps(28)}.heart:hover{background-position:-2800px 0;transition:background 1s steps(28)}.tabl{width:280px;height:66px;border:1px solid #2980b9;border-radius:5px;position:fixed;right:10px;bottom:10px;z-index:99;background:#FFF;overflow:hidden}.tabl .image{width:65px;height:100%;float:left;border-right:1px solid #2980b9;text-align:center}.tabl .image img{background:#FFF;zoom:.8;width:100%}.tabl .tabl-entry{float:left;padding:10px;font-family:"Open Sans",serif}.tabl .tabl-entry span{font-family:Monaco,Menlo,"Ubuntu Mono",Consolas,source-code-pro,monospace;font-size:13px;color:#444;text-decoration:none}.tabl a{font-family:"Open Sans",serif;color:#444;text-decoration:none}.tabl i{color:#2980b9}@keyframes fave-heart{0{background-position:0 0}100%{background-position:-2800px 0}}@media only screen and (max-width :769px){.rtl,.ltr{width:100%}#stat ul li{width:100%;display:block;margin-bottom:20px}.tabl{display:none}}
\ No newline at end of file
<?php
define( 'DOMAIN', 'https://rtl.daskhat.ir' );
define( 'AJAX_URL', 'https://rtl.daskhat.ir/convert.php' );
define( 'PRODUCTION', true );
// Turn off error reporting
if ( PRODUCTION ) {
error_reporting( 0 );
@ini_set( 'display_errors', 0 );
}
<?php
require_once 'config.php';
require_once 'include/cssparser.php';
require_once 'include/rtl.php';
require_once 'include/convert.php';
if( !isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) || !( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) ){
die("please don't use directly!"); // allow access....
}
if ( isset( $_REQUEST['ltr'] ) ) {
if ( ! empty( $_REQUEST['ltr'] ) ) {
convert( $_REQUEST['ltr'] );
}
}
function convert( $raw_css ) {
$complete = ( $_REQUEST['complete'] === 'true' ) ? true : false;
$minify = ( $_REQUEST['minify'] === 'true' ) ? true : false;
$reset = false;
if ( ! $complete ) {
$reset = ( $_REQUEST['reset'] === 'true' ) ? true : false;
}
$convert = new Convert( $raw_css );
$rtl_css = $convert->get_rtl( $complete, $reset, $minify );
$count_convert_file = file_get_contents( 'files/count-convert.txt' );
$count_convert_array = explode( ',', $count_convert_file );
if ( count( $count_convert_array ) == 3 ) {
$count_convert_array[0] ++; // number of convert task.
$count_convert_array[1] += ( $convert->property_count > 0 ) ? $convert->property_count : 0;// number of checked properties.
$count_convert_array[2] += ( $convert->rtl_property_count > 0 ) ? $convert->rtl_property_count : 0;// number of converted properties.
file_put_contents( 'files/count-convert.txt', implode( ',', $count_convert_array ) );
}
echo "/* " . $convert->rtl_property_count . " of " . $convert->property_count . " CSS properties converted by rtl.daskhat.ir \n These properties should be override originals. \n just load rtl css file after original css file.*/ \n\n/* body {direction:rtl;} */\n\n" . $rtl_css;
}
655
\ No newline at end of file
27047
\ No newline at end of file
/*
This is a sample style sheet
please insert your css code here and click on "Convert" button.
if you want to see how ıt works, just press "Convert" button.
@copyright 2018 Daskhat
@author Foad Tahmasebi
*/
/* Directions */
body {
direction : ltr;
}
/* Floats */
.left {
float : left
}
.right {
float : right
}
/* Text Aaligns */
#text-right {
text-align : right;
}
/* Image Position */
.background{
background: lightblue url("img_tree.gif") no-repeat 10% 6% ;
}
.background2{
background: lightblue url("img_car.gif") no-repeat fixed left 20px top 300px /50px 100px ;
}
.background3{
background-position: left ;
}
.background4{
background-position: 600px top;
}
.background5{
background-position-x: 60%; /*IE 8*/
}
/* Borders */
.borders {
border : 1px solid #CCC;
}
.borders-detailed {
border-bottom-right-radius : 3px;
border-right-width : 1px;
border-right-color : #DDD;
border-right-style : dashed;
}